humoto
Public Member Functions | Private Attributes | Friends | List of all members
humoto::LogEntryName Class Reference

Detailed Description

Represents log entry name.

Definition at line 169 of file logger.h.

#include <logger.h>

Public Member Functions

 LogEntryName ()
 Default constructor. More...
 
 LogEntryName (const std::string &name)
 Constructor with name initialization. More...
 
 LogEntryName (const char *name)
 Constructor with name initialization. More...
 
 LogEntryName (const LogEntryName &name)
 Constructor with name initialization. More...
 
LogEntryNameadd (const char *name)
 extends entry name with a subname More...
 
LogEntryNameadd (const std::string &name)
 extends entry name with a subname More...
 
LogEntryNameadd (const std::size_t index)
 extends entry name with a subname More...
 
const std::string & getAsString () const
 Returns entry name as a string. More...
 

Private Attributes

std::string entry_name_
 

Friends

std::ostream & operator<< (std::ostream &out, const LogEntryName &log_entry_name)
 Writes the log entry name to a stream. More...
 

Constructor & Destructor Documentation

◆ LogEntryName() [1/4]

humoto::LogEntryName::LogEntryName ( )
inline

Default constructor.

Definition at line 179 of file logger.h.

◆ LogEntryName() [2/4]

humoto::LogEntryName::LogEntryName ( const std::string &  name)
inline

Constructor with name initialization.

Parameters
[in]name

Definition at line 189 of file logger.h.

◆ LogEntryName() [3/4]

humoto::LogEntryName::LogEntryName ( const char *  name)
inline

Constructor with name initialization.

Parameters
[in]name

Definition at line 199 of file logger.h.

◆ LogEntryName() [4/4]

humoto::LogEntryName::LogEntryName ( const LogEntryName name)
inline

Constructor with name initialization.

Parameters
[in]name

Definition at line 209 of file logger.h.

Member Function Documentation

◆ add() [1/3]

LogEntryName& humoto::LogEntryName::add ( const char *  name)
inline

extends entry name with a subname

Parameters
[in]namesubname
Returns
this

Definition at line 232 of file logger.h.

◆ add() [2/3]

LogEntryName& humoto::LogEntryName::add ( const std::string &  name)
inline

extends entry name with a subname

Parameters
[in]namesubname
Returns
this

Definition at line 246 of file logger.h.

◆ add() [3/3]

LogEntryName& humoto::LogEntryName::add ( const std::size_t  index)
inline

extends entry name with a subname

Parameters
[in]indexinteger index
Returns
this

Definition at line 260 of file logger.h.

◆ getAsString()

const std::string& humoto::LogEntryName::getAsString ( ) const
inline

Returns entry name as a string.

Returns
string

Definition at line 219 of file logger.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const LogEntryName log_entry_name 
)
friend

Writes the log entry name to a stream.

Parameters
[in,out]outoutput stream
[in]log_entry_name
Returns
output stream

Definition at line 275 of file logger.h.

Member Data Documentation

◆ entry_name_

std::string humoto::LogEntryName::entry_name_
private

Definition at line 172 of file logger.h.


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