OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
PlaceHolder.hpp
Go to the documentation of this file.
1#ifndef __OPENTREP_BOM_PLACEHOLDER_HPP
2#define __OPENTREP_BOM_PLACEHOLDER_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// OpenTREP
12
13namespace OPENTREP {
14
16 class PlaceHolder : public BomAbstract {
17 friend class FacPlaceHolder;
18 public:
19 // ////////////// Getters /////////////
21 const PlaceList_T& getPlaceList() const {
22 return _placeList;
23 }
24
25
26 // ////////////// Setters /////////////
27
28
29 public:
30 // /////////// Business methods /////////
34 void createLocations (LocationList_T&) const;
35
36
37 public:
38 // /////////// Display support methods /////////
41 void toStream (std::ostream& ioOut) const;
42
45 void fromStream (std::istream& ioIn);
46
48 std::string toString() const;
49
51 std::string toShortString() const;
52
55 std::string describeKey() const;
56
59 std::string describeShortKey() const;
60
61
62 private:
63 // ////////////// Constructors and Destructors /////////////
65 PlaceHolder ();
67 PlaceHolder (const PlaceHolder&);
69 ~PlaceHolder ();
71 void init ();
72
73
74 private:
75 // /////////////// Attributes ////////////////
77 PlaceList_T _placeList;
78
81 PlaceOrderedList_T _placeOrderedList;
82 };
83
84}
85#endif // __OPENTREP_BOM_PLACEHOLDER_HPP
const PlaceList_T & getPlaceList() const
std::string describeShortKey() const
std::string toString() const
void toStream(std::ostream &ioOut) const
std::string toShortString() const
std::string describeKey() const
void fromStream(std::istream &ioIn)
void createLocations(LocationList_T &) const
friend class FacPlaceHolder
std::list< Place * > PlaceOrderedList_T
Definition PlaceList.hpp:21
std::list< Location > LocationList_T
std::multimap< std::string, Place * > PlaceList_T
Definition PlaceList.hpp:20