1.00.10
C++ Standard Airline IT Object Library
BasLogParams.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BAS_BASLOGPARAMS_HPP
2
#define __STDAIR_BAS_BASLOGPARAMS_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
// Stdair
11
#include <
stdair/stdair_log.hpp
>
12
#include <
stdair/basic/StructAbstract.hpp
>
13
14
namespace
stdair
{
15
19
struct
BasLogParams
:
public
StructAbstract
{
20
friend
class
Logger
;
21
public
:
22
// ///////// Getters ////////
26
const
LOG::EN_LogLevel
&
getLogLevel
()
const
{
27
return
_logLevel;
28
}
29
33
std::ostream&
getLogStream
()
const
{
34
return
_logStream;
35
}
36
40
const
bool
getForcedInitialisationFlag
()
const
{
41
return
_forceMultipleInit;
42
}
43
44
45
// ///////// Setters //////////
49
void
setForcedInitialisationFlag
(
const
bool
iForceMultipleInstance) {
50
_forceMultipleInit = iForceMultipleInstance;
51
}
52
53
54
public
:
55
// ///////// Busines methods ////////
59
bool
check
()
const
;
60
61
62
public
:
63
// ///////// Display methods ////////
67
const
std::string
describe
()
const
;
68
72
std::string
toShortString
()
const
;
73
77
std::string
toString
()
const
;
78
79
80
public
:
89
BasLogParams
(
const
LOG::EN_LogLevel
iLogLevel,
90
std::ostream& ioLogOutputStream,
91
const
bool
iForceMultipleInstance =
false
);
92
96
BasLogParams
(
const
BasLogParams
&);
97
101
~BasLogParams
();
102
103
private
:
107
BasLogParams
();
108
109
110
private
:
111
// /////// Attributes /////////
115
const
LOG::EN_LogLevel
_logLevel;
116
120
std::ostream& _logStream;
121
135
bool
_forceMultipleInit;
136
};
137
138
}
139
#endif // __STDAIR_BAS_BASLOGPARAMS_HPP
stdair::BasLogParams::toShortString
std::string toShortString() const
Definition:
BasLogParams.cpp:44
stdair::BasLogParams::getLogStream
std::ostream & getLogStream() const
Definition:
BasLogParams.hpp:33
stdair
Handle on the StdAir library context.
Definition:
BasChronometer.cpp:9
stdair::BasLogParams::check
bool check() const
stdair::BasLogParams::~BasLogParams
~BasLogParams()
Definition:
BasLogParams.cpp:35
stdair::BasLogParams::getForcedInitialisationFlag
const bool getForcedInitialisationFlag() const
Definition:
BasLogParams.hpp:40
stdair::LOG::EN_LogLevel
EN_LogLevel
Definition:
stdair_log.hpp:18
stdair::BasLogParams::describe
const std::string describe() const
Definition:
BasLogParams.cpp:39
StructAbstract.hpp
stdair::BasLogParams::getLogLevel
const LOG::EN_LogLevel & getLogLevel() const
Definition:
BasLogParams.hpp:26
stdair::BasLogParams::setForcedInitialisationFlag
void setForcedInitialisationFlag(const bool iForceMultipleInstance)
Definition:
BasLogParams.hpp:49
stdair::BasLogParams::toString
std::string toString() const
Definition:
BasLogParams.cpp:52
stdair::BasLogParams
Structure holding parameters for logging.
Definition:
BasLogParams.hpp:19
stdair::Logger
Definition:
Logger.hpp:48
stdair_log.hpp
stdair::StructAbstract
Base class for the light structures.
Definition:
StructAbstract.hpp:16
Generated for StdAir by
1.8.18