1.00.21
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
PosChannel.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
#include <sstream>
7
// StdAir
8
#include <
stdair/basic/BasConst_Request.hpp
>
9
#include <
stdair/service/Logger.hpp
>
10
#include <
stdair/bom/PosChannel.hpp
>
11
12
namespace
stdair
{
13
14
// ////////////////////////////////////////////////////////////////////
15
PosChannel::PosChannel
()
16
: _key (
DEFAULT_POS
,
17
DEFAULT_CHANNEL
),
18
_parent (NULL) {
19
// That constructor is used by the serialisation process
20
}
21
22
// ////////////////////////////////////////////////////////////////////
23
PosChannel::PosChannel (
const
PosChannel& iPosChannel)
24
: _key (iPosChannel.getKey()), _parent (NULL) {
25
}
26
27
// ////////////////////////////////////////////////////////////////////
28
PosChannel::PosChannel
(
const
Key_T
& iKey)
29
:
_key
(iKey),
_parent
(NULL) {
30
}
31
32
// ////////////////////////////////////////////////////////////////////
33
PosChannel::~PosChannel
() {
34
}
35
36
// ////////////////////////////////////////////////////////////////////
37
std::string
PosChannel::toString
()
const
{
38
std::ostringstream oStr;
39
oStr <<
describeKey
();
40
return
oStr.str();
41
}
42
}
BasConst_Request.hpp
PosChannel.hpp
Logger.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::DEFAULT_CHANNEL
const ChannelLabel_T DEFAULT_CHANNEL
Definition
BasConst_Request.hpp:48
stdair::DEFAULT_POS
const CityCode_T DEFAULT_POS
stdair::PosChannel::Key_T
PosChannelKey Key_T
Definition
PosChannel.hpp:29
stdair::PosChannel::PosChannel
PosChannel(const Key_T &)
Definition
PosChannel.cpp:28
stdair::PosChannel::describeKey
const std::string describeKey() const
Definition
PosChannel.hpp:58
stdair::PosChannel::toString
std::string toString() const
Definition
PosChannel.cpp:37
stdair::PosChannel::_key
Key_T _key
Definition
PosChannel.hpp:127
stdair::PosChannel::~PosChannel
virtual ~PosChannel()
Definition
PosChannel.cpp:33
stdair::PosChannel::_parent
BomAbstract * _parent
Definition
PosChannel.hpp:132
Generated for StdAir by
1.13.2