OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
9 #include <opentrep/Location.hpp>
12 
13 namespace 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
Definition: PlaceHolder.hpp:21
std::string toShortString() const
Definition: PlaceHolder.cpp:57
void createLocations(LocationList_T &) const
Definition: PlaceHolder.cpp:82
std::multimap< std::string, Place * > PlaceList_T
Definition: PlaceList.hpp:14
std::string toString() const
Definition: PlaceHolder.cpp:41
std::list< Location > LocationList_T
void fromStream(std::istream &ioIn)
Definition: PlaceHolder.cpp:78
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:17
std::list< Place * > PlaceOrderedList_T
Definition: PlaceList.hpp:21
std::string describeKey() const
Definition: PlaceHolder.cpp:36
std::string describeShortKey() const
Definition: PlaceHolder.cpp:30
void toStream(std::ostream &ioOut) const
Definition: PlaceHolder.cpp:73