1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
DatePeriod.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_DATEPERIOD_HPP
2
#define __STDAIR_BOM_DATEPERIOD_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STDAIR
8
#include <
stdair/bom/BomAbstract.hpp
>
9
#include <
stdair/bom/DatePeriodKey.hpp
>
10
#include <
stdair/bom/DatePeriodTypes.hpp
>
11
12
// Forward declaration
13
namespace
stdair
{
14
18
class
DatePeriod
:
public
BomAbstract
{
19
template
<
typename
BOM>
friend
class
FacBom
;
20
template
<
typename
BOM>
friend
class
FacCloneBom
;
21
friend
class
FacBomManager
;
22
23
public
:
24
// //////////// Type definitions //////////////
28
typedef
DatePeriodKey
Key_T
;
29
30
public
:
31
// /////////// Display support methods /////////
37
void
toStream
(std::ostream& ioOut)
const
{
38
ioOut <<
toString
();
39
}
40
46
void
fromStream
(std::istream& ioIn) {
47
}
48
52
std::string
toString
()
const
;
53
57
const
std::string
describeKey
()
const
{
58
return
_key
.toString();
59
}
60
61
public
:
62
// ////////// Getters ////////////
66
const
Key_T
&
getKey
()
const
{
67
return
_key
;
68
}
69
73
BomAbstract
*
const
getParent
()
const
{
74
return
_parent
;
75
}
76
80
const
HolderMap_T
&
getHolderMap
()
const
{
81
return
_holderMap
;
82
}
83
87
const
DatePeriod_T
&
getDatePeriod
()
const
{
88
return
_key
.getDatePeriod();
89
}
90
91
92
public
:
93
// ////////////// Business methods ///////////////
98
bool
isDepartureDateValid
(
const
Date_T
&)
const
;
99
100
protected
:
101
// ////////// Constructors and destructors /////////
105
DatePeriod
(
const
Key_T
&);
109
virtual
~DatePeriod
();
110
111
private
:
115
DatePeriod
();
119
DatePeriod
(
const
DatePeriod
&);
120
121
protected
:
122
// ///////////// Attributes /////////////
126
Key_T
_key
;
127
131
BomAbstract
*
_parent
;
132
136
HolderMap_T
_holderMap
;
137
138
};
139
140
}
141
#endif
// __STDAIR_BOM_DATEPERIOD_HPP
142
BomAbstract.hpp
DatePeriodKey.hpp
DatePeriodTypes.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::Date_T
boost::gregorian::date Date_T
Definition
stdair_date_time_types.hpp:20
stdair::HolderMap_T
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Definition
BomAbstract.hpp:63
stdair::DatePeriod_T
boost::gregorian::date_period DatePeriod_T
Definition
stdair_date_time_types.hpp:29
stdair::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:53
stdair::DatePeriod
Class representing the actual attributes for a fare date-period.
Definition
DatePeriod.hpp:18
stdair::DatePeriod::_holderMap
HolderMap_T _holderMap
Definition
DatePeriod.hpp:136
stdair::DatePeriod::_parent
BomAbstract * _parent
Definition
DatePeriod.hpp:131
stdair::DatePeriod::DatePeriod
DatePeriod(const Key_T &)
Definition
DatePeriod.cpp:27
stdair::DatePeriod::isDepartureDateValid
bool isDepartureDateValid(const Date_T &) const
Definition
DatePeriod.cpp:44
stdair::DatePeriod::getKey
const Key_T & getKey() const
Definition
DatePeriod.hpp:66
stdair::DatePeriod::describeKey
const std::string describeKey() const
Definition
DatePeriod.hpp:57
stdair::DatePeriod::fromStream
void fromStream(std::istream &ioIn)
Definition
DatePeriod.hpp:46
stdair::DatePeriod::getParent
BomAbstract *const getParent() const
Definition
DatePeriod.hpp:73
stdair::DatePeriod::toStream
void toStream(std::ostream &ioOut) const
Definition
DatePeriod.hpp:37
stdair::DatePeriod::_key
Key_T _key
Definition
DatePeriod.hpp:126
stdair::DatePeriod::~DatePeriod
virtual ~DatePeriod()
Definition
DatePeriod.cpp:32
stdair::DatePeriod::Key_T
DatePeriodKey Key_T
Definition
DatePeriod.hpp:28
stdair::DatePeriod::toString
std::string toString() const
Definition
DatePeriod.cpp:36
stdair::DatePeriod::FacBom
friend class FacBom
Definition
DatePeriod.hpp:19
stdair::DatePeriod::FacCloneBom
friend class FacCloneBom
Definition
DatePeriod.hpp:20
stdair::DatePeriod::FacBomManager
friend class FacBomManager
Definition
DatePeriod.hpp:21
stdair::DatePeriod::getHolderMap
const HolderMap_T & getHolderMap() const
Definition
DatePeriod.hpp:80
stdair::DatePeriod::getDatePeriod
const DatePeriod_T & getDatePeriod() const
Definition
DatePeriod.hpp:87
stdair::DatePeriodKey
Key of date-period.
Definition
DatePeriodKey.hpp:14
Generated for StdAir by
1.17.0