lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::HistoryEntry Class Reference

#include <HistoryEntry.h>

Public Member Functions

 HistoryEntry (std::string processName, std::string serviceName, std::string label, std::string text, const std::chrono::sys_time< std::chrono::microseconds > &createdTimestamp)
 
 HistoryEntry (const AbstractServiceInterface &service, std::string label, std::string text)
 
const std::string & getProcessName () const
 
const std::string & getServiceName () const
 
const std::string & getLabel () const
 
const std::string & getText () const
 
const std::string & getUuid () const
 
const std::chrono::sys_time< std::chrono::microseconds > & getCreatedTimestamp () const
 
bool operator== (const HistoryEntry &rhs) const
 
bool operator!= (const HistoryEntry &rhs) const
 

Detailed Description

Represents a single history entry with process/service context, a label, text, and timestamp.

Constructor & Destructor Documentation

◆ HistoryEntry() [1/2]

lintel::HistoryEntry::HistoryEntry ( std::string  processName,
std::string  serviceName,
std::string  label,
std::string  text,
const std::chrono::sys_time< std::chrono::microseconds > &  createdTimestamp 
)

Constructor.

Parameters
processNamename of the process
serviceNamename of the service
labelentry label
textentry text
createdTimestampcreation timestamp

◆ HistoryEntry() [2/2]

lintel::HistoryEntry::HistoryEntry ( const AbstractServiceInterface &  service,
std::string  label,
std::string  text 
)

Constructor inferring process and service name from an AbstractServiceInterface.

Parameters
servicethe service interface
labelentry label
textentry text

Member Function Documentation

◆ getCreatedTimestamp()

const std::chrono::sys_time< std::chrono::microseconds > & lintel::HistoryEntry::getCreatedTimestamp ( ) const
Returns
creation timestamp

◆ getLabel()

const std::string & lintel::HistoryEntry::getLabel ( ) const
Returns
entry label

◆ getProcessName()

const std::string & lintel::HistoryEntry::getProcessName ( ) const
Returns
process name

◆ getServiceName()

const std::string & lintel::HistoryEntry::getServiceName ( ) const
Returns
service name

◆ getText()

const std::string & lintel::HistoryEntry::getText ( ) const
Returns
entry text

◆ getUuid()

const std::string & lintel::HistoryEntry::getUuid ( ) const
Returns
entry UUID

◆ operator!=()

bool lintel::HistoryEntry::operator!= ( const HistoryEntry &  rhs) const
Returns
true if entries are not equal

◆ operator==()

bool lintel::HistoryEntry::operator== ( const HistoryEntry &  rhs) const
Returns
true if entries are equal

The documentation for this class was generated from the following file: