1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
PosChannel.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_POSCHANNEL_HPP
2
#define __STDAIR_BOM_POSCHANNEL_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STDAIR
8
#include <
stdair/bom/BomAbstract.hpp
>
9
#include <
stdair/bom/PosChannelKey.hpp
>
10
#include <
stdair/bom/PosChannelTypes.hpp
>
11
12
// Forward declaration
13
namespace
stdair
{
14
19
class
PosChannel
:
public
BomAbstract
{
20
template
<
typename
BOM>
friend
class
FacBom
;
21
template
<
typename
BOM>
friend
class
FacCloneBom
;
22
friend
class
FacBomManager
;
23
24
public
:
25
// /////// Type definitions
29
typedef
PosChannelKey
Key_T
;
30
31
public
:
32
// /////////// Display support methods /////////
38
void
toStream
(std::ostream& ioOut)
const
{
39
ioOut <<
toString
();
40
}
41
47
void
fromStream
(std::istream& ioIn) {
48
}
49
53
std::string
toString
()
const
;
54
58
const
std::string
describeKey
()
const
{
59
return
_key
.toString();
60
}
61
62
public
:
63
// ////////// Getters ////////////
67
const
Key_T
&
getKey
()
const
{
68
return
_key
;
69
}
70
74
BomAbstract
*
const
getParent
()
const
{
75
return
_parent
;
76
}
77
81
const
stdair::HolderMap_T
&
getHolderMap
()
const
{
82
return
_holderMap
;
83
}
84
88
const
CityCode_T
&
getPos
()
const
{
89
return
_key
.getPos();
90
}
91
95
const
ChannelLabel_T
&
getChannel
()
const
{
96
return
_key
.getChannel();
97
}
98
99
protected
:
100
// ////////// Constructors and destructors /////////
104
PosChannel
(
const
Key_T
&);
105
109
virtual
~PosChannel
();
110
111
private
:
115
PosChannel
();
116
120
PosChannel
(
const
PosChannel
&);
121
122
protected
:
123
// ////////// Attributes /////////
127
Key_T
_key
;
128
132
BomAbstract
*
_parent
;
133
137
HolderMap_T
_holderMap
;
138
139
};
140
141
}
142
#endif
// __STDAIR_BOM_POSCHANNEL_HPP
143
BomAbstract.hpp
PosChannelKey.hpp
PosChannelTypes.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::ChannelLabel_T
std::string ChannelLabel_T
Definition
stdair_demand_types.hpp:92
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::CityCode_T
LocationCode_T CityCode_T
Definition
stdair_basic_types.hpp:25
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
stdair::PosChannel
Class representing the actual attributes for a fare point of sale.
Definition
PosChannel.hpp:19
stdair::PosChannel::_holderMap
HolderMap_T _holderMap
Definition
PosChannel.hpp:137
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::fromStream
void fromStream(std::istream &ioIn)
Definition
PosChannel.hpp:47
stdair::PosChannel::getKey
const Key_T & getKey() const
Definition
PosChannel.hpp:67
stdair::PosChannel::getChannel
const ChannelLabel_T & getChannel() const
Definition
PosChannel.hpp:95
stdair::PosChannel::_parent
BomAbstract * _parent
Definition
PosChannel.hpp:132
stdair::PosChannel::getPos
const CityCode_T & getPos() const
Definition
PosChannel.hpp:88
stdair::PosChannel::FacBom
friend class FacBom
Definition
PosChannel.hpp:20
stdair::PosChannel::FacCloneBom
friend class FacCloneBom
Definition
PosChannel.hpp:21
stdair::PosChannel::FacBomManager
friend class FacBomManager
Definition
PosChannel.hpp:22
stdair::PosChannel::toStream
void toStream(std::ostream &ioOut) const
Definition
PosChannel.hpp:38
stdair::PosChannel::getHolderMap
const stdair::HolderMap_T & getHolderMap() const
Definition
PosChannel.hpp:81
stdair::PosChannel::getParent
BomAbstract *const getParent() const
Definition
PosChannel.hpp:74
stdair::PosChannelKey
Key of point of sale and channel.
Definition
PosChannelKey.hpp:15
Generated for StdAir by
1.17.0