fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::Logger::LogElement Struct Reference

#include <logger.hpp>

Public Member Functions

 LogElement (const thread_id_t tid, const std::string &str, Level level, const char *fl=nullptr, const unsigned val=0)
 
 LogElement (const thread_id_t tid, const std::string &str, const unsigned val=0)
 
 LogElement ()
 
 LogElement (const LogElement &from)
 
LogElementoperator= (const LogElement &that)
 

Public Attributes

thread_id_t _tid
 
std::string _str
 
Level _level
 
const char * _fileline
 
unsigned _val
 
Tickval _when {true}
 

Detailed Description

Definition at line 188 of file logger.hpp.

Constructor & Destructor Documentation

FIX8::Logger::LogElement::LogElement ( const thread_id_t  tid,
const std::string &  str,
Level  level,
const char *  fl = nullptr,
const unsigned  val = 0 
)
inline

Definition at line 197 of file logger.hpp.

198  : _tid(tid), _str(str), _level(level), _fileline(fl), _val(val) {}
const char * _fileline
Definition: logger.hpp:193
FIX8::Logger::LogElement::LogElement ( const thread_id_t  tid,
const std::string &  str,
const unsigned  val = 0 
)
inline

Definition at line 199 of file logger.hpp.

200  : _tid(tid), _str(str), _level(Info), _fileline(), _val(val) {}
const char * _fileline
Definition: logger.hpp:193
FIX8::Logger::LogElement::LogElement ( )
inline

Definition at line 201 of file logger.hpp.

FIX8::Logger::LogElement::LogElement ( const LogElement from)
inline

Definition at line 202 of file logger.hpp.

202  : _tid(from._tid), _str(from._str), _level(from._level), _fileline(from._fileline),
203  _val(from._val), _when(from._when) {}
const char * _fileline
Definition: logger.hpp:193

Member Function Documentation

LogElement& FIX8::Logger::LogElement::operator= ( const LogElement that)
inline

Definition at line 204 of file logger.hpp.

References _fileline, _level, _str, _tid, _val, and _when.

205  {
206  if (this != &that)
207  {
208  _tid = that._tid;
209  _str = that._str;
210  _level = that._level;
211  _fileline = that._fileline;
212  _val = that._val;
213  _when = that._when;
214  }
215  return *this;
216  }
const char * _fileline
Definition: logger.hpp:193

Member Data Documentation

const char* FIX8::Logger::LogElement::_fileline
Level FIX8::Logger::LogElement::_level
std::string FIX8::Logger::LogElement::_str
thread_id_t FIX8::Logger::LogElement::_tid
unsigned FIX8::Logger::LogElement::_val
Tickval FIX8::Logger::LogElement::_when {true}

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