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

#include <CommandHistoryEntry.h>

Public Member Functions

 CommandHistoryEntry (const std::string &command, const std::string &user_name, const std::chrono::sys_time< std::chrono::microseconds > &executed_timestamp, const std::string &menu)
 
std::string getCommand () const
 
std::string getUserName () const
 
std::chrono::sys_time< std::chrono::microseconds > getExecutedTimestamp () const
 
std::string getMenu () const
 
std::string asCsvEntry () const
 

Friends

bool operator== (const CommandHistoryEntry &lhs, const CommandHistoryEntry &rhs)
 
bool operator!= (const CommandHistoryEntry &lhs, const CommandHistoryEntry &rhs)
 

Detailed Description

Represents a single entry in the command history

Constructor & Destructor Documentation

◆ CommandHistoryEntry()

lintel::CommandHistoryEntry::CommandHistoryEntry ( const std::string &  command,
const std::string &  user_name,
const std::chrono::sys_time< std::chrono::microseconds > &  executed_timestamp,
const std::string &  menu 
)
inline
Parameters
commandthe executed command
user_namethe user who executed it
executed_timestamptime of execution
menuthe menu context

Member Function Documentation

◆ asCsvEntry()

std::string lintel::CommandHistoryEntry::asCsvEntry ( ) const
inline
Returns
entry serialized as CSV line

◆ getCommand()

std::string lintel::CommandHistoryEntry::getCommand ( ) const
inline
Returns
the executed command

◆ getExecutedTimestamp()

std::chrono::sys_time< std::chrono::microseconds > lintel::CommandHistoryEntry::getExecutedTimestamp ( ) const
inline
Returns
the execution timestamp

◆ getMenu()

std::string lintel::CommandHistoryEntry::getMenu ( ) const
inline
Returns
the menu context

◆ getUserName()

std::string lintel::CommandHistoryEntry::getUserName ( ) const
inline
Returns
the user name

Friends And Related Symbol Documentation

◆ operator!=

◆ operator==


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