Structure holding parameters for logging. More...
#include <stdair/basic/BasLogParams.hpp>
Public Member Functions | |
const LOG::EN_LogLevel & | getLogLevel () const |
std::ostream & | getLogStream () const |
const bool | getForcedInitialisationFlag () const |
void | setForcedInitialisationFlag (const bool iForceMultipleInstance) |
bool | check () const |
const std::string | describe () const |
std::string | toShortString () const |
std::string | toString () const |
BasLogParams (const LOG::EN_LogLevel iLogLevel, std::ostream &ioLogOutputStream, const bool iForceMultipleInstance=false) | |
BasLogParams (const BasLogParams &) | |
~BasLogParams () | |
void | toStream (std::ostream &ioOut) const |
virtual void | fromStream (std::istream &ioIn) |
Friends | |
class | Logger |
Structure holding parameters for logging.
Definition at line 19 of file BasLogParams.hpp.
stdair::BasLogParams::BasLogParams | ( | const LOG::EN_LogLevel | iLogLevel, |
std::ostream & | ioLogOutputStream, | ||
const bool | iForceMultipleInstance = false |
||
) |
Main Constructor.
[in] | const | LOG::EN_LogLevel Level of the log (e.g., DEBUG) |
[in,out] | std::ostream& | (STL) Stream to log into. |
[in] | const | bool Whether or not multiple initialisation should be forced. |
Definition at line 27 of file BasLogParams.cpp.
stdair::BasLogParams::BasLogParams | ( | const BasLogParams & | iLogParams | ) |
Copy constructor.
Definition at line 21 of file BasLogParams.cpp.
stdair::BasLogParams::~BasLogParams | ( | ) |
Destructor.
Definition at line 35 of file BasLogParams.cpp.
|
inline |
Get the log level.
Definition at line 26 of file BasLogParams.hpp.
|
inline |
Get the log output stream.
Definition at line 33 of file BasLogParams.hpp.
|
inline |
State whether or not multiple initialisations are to be forced.
Definition at line 40 of file BasLogParams.hpp.
|
inline |
State whether or not multiple initialisations are to be forced.
Definition at line 49 of file BasLogParams.hpp.
bool stdair::BasLogParams::check | ( | ) | const |
Check that all the parameters are fine.
|
virtual |
Get the serialised version of the DBParams structure.
Implements stdair::StructAbstract.
Definition at line 39 of file BasLogParams.cpp.
References toString().
std::string stdair::BasLogParams::toShortString | ( | ) | const |
Get a short display of the LOGParams structure.
Definition at line 44 of file BasLogParams.cpp.
References stdair::LOG::_logLevels.
std::string stdair::BasLogParams::toString | ( | ) | const |
Get the serialised version of the LOGParams structure.
Definition at line 52 of file BasLogParams.cpp.
References stdair::LOG::_logLevels.
Referenced by describe().
|
inlineinherited |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::TravelSolutionStruct, stdair::VirtualClassStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, and stdair::BreakPointStruct.
Definition at line 29 of file StructAbstract.hpp.
References stdair::StructAbstract::describe().
|
inlinevirtualinherited |
Read a Business Object from an input stream.
istream& | the input stream. |
Reimplemented in stdair::BookingRequestStruct, stdair::EventStruct, stdair::TravelSolutionStruct, stdair::VirtualClassStruct, stdair::ConfigHolderStruct, stdair::FareOptionStruct, stdair::OptimisationNotificationStruct, stdair::ProgressStatusSet, stdair::YieldRange, stdair::CancellationStruct, stdair::AirlineStruct, stdair::RMEventStruct, stdair::SnapshotStruct, stdair::FFDisutilityCurveHolderStruct, stdair::FRAT5CurveHolderStruct, and stdair::BreakPointStruct.
Definition at line 38 of file StructAbstract.hpp.
Referenced by operator>>().
|
friend |
Definition at line 20 of file BasLogParams.hpp.