1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
YieldStore.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_YIELDSTORE_HPP
2
#define __STDAIR_BOM_YIELDSTORE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
// StdAir
10
#include <
stdair/stdair_inventory_types.hpp
>
11
#include <
stdair/bom/BomAbstract.hpp
>
12
#include <
stdair/bom/YieldStoreKey.hpp
>
13
#include <
stdair/bom/YieldStoreTypes.hpp
>
14
15
namespace
stdair {
16
18
class
YieldStore
:
public
BomAbstract
{
19
template
<
typename
BOM>
friend
class
FacBom
;
20
friend
class
FacBomManager
;
21
22
public
:
23
// Type definitions
25
typedef
YieldStoreKey
Key_T
;
26
27
public
:
28
// /////////// Display support methods /////////
31
void
toStream
(std::ostream& ioOut)
const
{ ioOut <<
toString
(); }
32
34
BomAbstract
*
const
getParent
()
const
{
return
_parent
; }
35
38
void
fromStream
(std::istream& ioIn) { }
39
41
std::string
toString
()
const
;
42
44
const
std::string
describeKey
()
const
{
return
_key
.
toString
(); }
45
46
public
:
47
// ////////// Getters ////////////
49
const
Key_T
&
getKey
()
const
{
return
_key
; }
50
52
const
AirlineCode_T
&
getAirlineCode
()
const
{
53
return
_key
.
getAirlineCode
();
54
}
55
56
protected
:
58
YieldStore
(
const
Key_T
&);
59
YieldStore
(
const
YieldStore
&);
61
~YieldStore
();
62
63
protected
:
64
// Attributes
66
Key_T
_key
;
67
BomAbstract
*
_parent
;
68
};
69
70
}
71
#endif // __STDAIR_BOM_YIELDSTORE_HPP
72
Generated on Sat Dec 22 2012 16:51:54 for StdAir by
1.8.1.1