StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stdair::BasLogParams Struct Reference

Structure holding parameters for logging. More...

#include <stdair/basic/BasLogParams.hpp>

+ Inheritance diagram for stdair::BasLogParams:

List of all members.

Public Member Functions

const LOG::EN_LogLevelgetLogLevel () 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

Detailed Description

Structure holding parameters for logging.

Definition at line 19 of file BasLogParams.hpp.


Constructor & Destructor Documentation

stdair::BasLogParams::BasLogParams ( const LOG::EN_LogLevel  iLogLevel,
std::ostream &  ioLogOutputStream,
const bool  iForceMultipleInstance = false 
)

Main Constructor.

Parameters:
[in]constLOG::EN_LogLevel Level of the log (e.g., DEBUG)
[in,out]std::ostream&(STL) Stream to log into.
[in]constbool 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.


Member Function Documentation

const LOG::EN_LogLevel& stdair::BasLogParams::getLogLevel ( ) const
inline

Get the log level.

Definition at line 26 of file BasLogParams.hpp.

std::ostream& stdair::BasLogParams::getLogStream ( ) const
inline

Get the log output stream.

Definition at line 33 of file BasLogParams.hpp.

const bool stdair::BasLogParams::getForcedInitialisationFlag ( ) const
inline

State whether or not multiple initialisations are to be forced.

Definition at line 40 of file BasLogParams.hpp.

void stdair::BasLogParams::setForcedInitialisationFlag ( const bool  iForceMultipleInstance)
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.

const std::string stdair::BasLogParams::describe ( ) const
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().


Friends And Related Function Documentation

friend class Logger
friend

Definition at line 20 of file BasLogParams.hpp.


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