1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
BomHolder.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_BOMHOLDER_HPP
2
#define __STDAIR_BOM_BOMHOLDER_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <iosfwd>
9
#include <string>
10
#include <list>
11
#include <map>
12
// StdAir
13
#include <
stdair/bom/key_types.hpp
>
14
#include <
stdair/bom/BomAbstract.hpp
>
15
#include <
stdair/bom/BomHolderKey.hpp
>
16
17
namespace
stdair
{
18
23
template
<
typename
BOM>
24
class
BomHolder
:
public
stdair::BomAbstract
{
26
template
<
typename
>
friend
class
FacBom
;
27
friend
class
FacBomManager
;
28
29
public
:
30
// ///////////////// Type definitions ////////////////
34
typedef
stdair::BomHolderKey
Key_T
;
35
39
typedef
std::list<BOM*>
BomList_T
;
40
44
typedef
std::map<const MapKey_T, BOM*>
BomMap_T
;
45
46
47
public
:
48
// /////////// Display support methods /////////
54
void
toStream
(std::ostream& ioOut)
const
{
55
ioOut <<
toString
();
56
}
57
63
void
fromStream
(std::istream& ioIn) {
64
}
65
69
std::string
toString
()
const
{
70
return
"BomHolder"
;
71
}
72
76
const
std::string
describeKey
()
const
{
77
return
"BomHolder"
;
78
}
79
80
protected
:
84
BomHolder
();
85
89
BomHolder
(
const
BomHolder
&);
90
94
BomHolder
(
const
Key_T
& iKey) :
_key
(iKey) { }
95
99
~BomHolder
() { };
100
101
public
:
102
// //////////////// Attributes //////////////////
106
Key_T
_key
;
107
111
BomList_T
_bomList
;
112
116
BomMap_T
_bomMap
;
117
};
118
119
}
120
#endif
// __STDAIR_BOM_BOMHOLDER_HPP
BomAbstract.hpp
BomHolderKey.hpp
key_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::BomAbstract
Base class for the Business Object Model (BOM) layer.
Definition
BomAbstract.hpp:24
stdair::BomHolder::toStream
void toStream(std::ostream &ioOut) const
Definition
BomHolder.hpp:54
stdair::BomHolder::BomMap_T
std::map< const MapKey_T, BOM * > BomMap_T
Definition
BomHolder.hpp:44
stdair::BomHolder::describeKey
const std::string describeKey() const
Definition
BomHolder.hpp:76
stdair::BomHolder::~BomHolder
~BomHolder()
Definition
BomHolder.hpp:99
stdair::BomHolder::_bomMap
BomMap_T _bomMap
Definition
BomHolder.hpp:116
stdair::BomHolder::Key_T
stdair::BomHolderKey Key_T
Definition
BomHolder.hpp:34
stdair::BomHolder::toString
std::string toString() const
Definition
BomHolder.hpp:69
stdair::BomHolder::fromStream
void fromStream(std::istream &ioIn)
Definition
BomHolder.hpp:63
stdair::BomHolder::BomHolder
BomHolder(const BomHolder &)
stdair::BomHolder::BomList_T
std::list< BOM * > BomList_T
Definition
BomHolder.hpp:39
stdair::BomHolder::FacBom
friend class FacBom
Definition
BomHolder.hpp:26
stdair::BomHolder::FacBomManager
friend class FacBomManager
Definition
BomHolder.hpp:27
stdair::BomHolder::BomHolder
BomHolder(const Key_T &iKey)
Definition
BomHolder.hpp:94
stdair::BomHolder::BomHolder
BomHolder()
stdair::BomHolder::_key
Key_T _key
Definition
BomHolder.hpp:106
stdair::BomHolder::_bomList
BomList_T _bomList
Definition
BomHolder.hpp:111
stdair::BomHolderKey
Definition
BomHolderKey.hpp:12
Generated for StdAir by
1.17.0