0.08.01
C++ Open Travel Request Parsing Library
Toggle main menu visibility
Loading...
Searching...
No Matches
World.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_BOM_WORLD_HPP
2
#define __OPENTREP_BOM_WORLD_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <ostream>
9
#include <istream>
10
#include <string>
11
// OpenTrep
12
#include <
opentrep/OPENTREP_Types.hpp
>
13
#include <
opentrep/bom/BomAbstract.hpp
>
14
#include <
opentrep/bom/GenericBom.hpp
>
15
#include <
opentrep/bom/PlaceList.hpp
>
16
17
namespace
OPENTREP
{
18
20
class
World :
public
BomAbstract
{
21
friend
class
FacWorld
;
22
friend
class
DbaWorld
;
23
public
:
24
// //////////// Getters /////////////
30
32
const
PlaceOrderedList_T
&
getSimplePlaceList
()
const
{
33
return
_placeOrderedList;
34
}
35
36
// //////////// Setters /////////////
37
38
39
// ///////// Display methods ////////
42
void
toStream
(std::ostream&)
const
;
43
46
void
fromStream
(std::istream&);
47
49
std::string
toString
()
const
;
50
53
std::string
describeKey
()
const
;
54
57
std::string
describeShortKey
()
const
;
58
60
std::string
display
()
const
;
61
63
std::string
shortDisplay
()
const
;
64
66
GenericBom_T
getGenericBom
(
const
XapianDocID_T
& iDocID)
const
;
67
68
private
:
70
World
();
71
World
(
const
World
&);
72
74
virtual
~World
();
75
76
private
:
78
GenericBomList_T
_genericBomList;
79
83
// PlaceDirectList_T _placeList;
84
88
PlaceOrderedList_T
_placeOrderedList;
89
};
90
91
// ///////////// Type definitions ////////////////////
92
typedef
std::size_t
WorldID_T
;
93
94
}
95
#endif
// __OPENTREP_BOM_WORLD_HPP
BomAbstract.hpp
GenericBom.hpp
OPENTREP_Types.hpp
PlaceList.hpp
OPENTREP::BomAbstract::BomAbstract
BomAbstract()
Definition
BomAbstract.hpp:57
OPENTREP::World
Definition
World.hpp:20
OPENTREP::World::display
std::string display() const
Definition
World.cpp:60
OPENTREP::World::describeKey
std::string describeKey() const
Definition
World.cpp:34
OPENTREP::World::FacWorld
friend class FacWorld
Definition
World.hpp:21
OPENTREP::World::toString
std::string toString() const
Definition
World.cpp:39
OPENTREP::World::getSimplePlaceList
const PlaceOrderedList_T & getSimplePlaceList() const
Definition
World.hpp:32
OPENTREP::World::shortDisplay
std::string shortDisplay() const
Definition
World.cpp:53
OPENTREP::World::DbaWorld
friend class DbaWorld
Definition
World.hpp:22
OPENTREP::World::fromStream
void fromStream(std::istream &)
Definition
World.cpp:49
OPENTREP::World::toStream
void toStream(std::ostream &) const
Definition
World.cpp:44
OPENTREP::World::getGenericBom
GenericBom_T getGenericBom(const XapianDocID_T &iDocID) const
Definition
World.cpp:77
OPENTREP::World::describeShortKey
std::string describeShortKey() const
Definition
World.cpp:28
OPENTREP
Definition
BasChronometer.cpp:10
OPENTREP::GenericBomList_T
std::map< std::size_t, GenericBom_T > GenericBomList_T
Definition
GenericBom.hpp:22
OPENTREP::PlaceOrderedList_T
std::list< Place * > PlaceOrderedList_T
Definition
PlaceList.hpp:21
OPENTREP::GenericBom_T
std::pair< BomType::EN_BomType, BomAbstract * > GenericBom_T
Definition
GenericBom.hpp:19
OPENTREP::WorldID_T
std::size_t WorldID_T
Definition
World.hpp:92
OPENTREP::XapianDocID_T
unsigned int XapianDocID_T
Definition
OPENTREP_Types.hpp:650
Generated on
for OpenTREP by
1.17.0