Belle II Software light-2406-ragdoll
|
Class to store variables with their name which were sent to the logging service. More...
#include <LogVariableStream.h>
Public Member Functions | |
template<class TVarType > | |
LogVar (const std::string &name, const TVarType &v) | |
Constructor which accepts any type as value and relies on boost lexical cast. | |
std::string | getValue () const |
Returns the value stored for this variable. | |
std::string | getName () const |
Returns the name stored for this variable. | |
bool | operator== (const LogVar &lv) const |
Custom comparison operator. | |
Private Attributes | |
std::string | m_name |
Stores the name of the variable. | |
std::string | m_value |
String conversion of the value. | |
Class to store variables with their name which were sent to the logging service.
Definition at line 24 of file LogVariableStream.h.
|
inline |
Constructor which accepts any type as value and relies on boost lexical cast.
name | String to identify the logged value |
v | Value to log, can be of any type which boost::lexical_cast is able to convert to a string. |
Definition at line 33 of file LogVariableStream.h.
|
inline |
Returns the name stored for this variable.
Definition at line 50 of file LogVariableStream.h.
|
inline |
Returns the value stored for this variable.
Definition at line 42 of file LogVariableStream.h.
|
inline |
Custom comparison operator.
Definition at line 58 of file LogVariableStream.h.
|
private |
Stores the name of the variable.
Best is a short string to describe which variable is presented, like "node number" etc.
Definition at line 66 of file LogVariableStream.h.
|
private |
String conversion of the value.
Definition at line 70 of file LogVariableStream.h.