OpenTREP Logo  0.07.7
C++ Open Travel Request Parsing Library
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
OPENTREP::PlaceHolder::toShortString
std::string toShortString() const
Definition: PlaceHolder.cpp:57
OPENTREP::PlaceHolder::describeShortKey
std::string describeShortKey() const
Definition: PlaceHolder.cpp:30
OPENTREP::LocationList_T
std::list< Location > LocationList_T
Definition: LocationList.hpp:13
OPENTREP::FacPlaceHolder
Definition: FacPlaceHolder.hpp:17
OPENTREP
Definition: BasChronometer.cpp:10
PlaceList.hpp
OPENTREP::PlaceHolder
Definition: PlaceHolder.hpp:16
OPENTREP::PlaceHolder::fromStream
void fromStream(std::istream &ioIn)
Definition: PlaceHolder.cpp:78
Location.hpp
OPENTREP::PlaceHolder::getPlaceList
const PlaceList_T & getPlaceList() const
Definition: PlaceHolder.hpp:21
OPENTREP::BomAbstract
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:17
OPENTREP::PlaceHolder::createLocations
void createLocations(LocationList_T &) const
Definition: PlaceHolder.cpp:82
BomAbstract.hpp
OPENTREP::PlaceHolder::toString
std::string toString() const
Definition: PlaceHolder.cpp:41
OPENTREP_Types.hpp
OPENTREP::PlaceHolder::describeKey
std::string describeKey() const
Definition: PlaceHolder.cpp:36
OPENTREP::PlaceOrderedList_T
std::list< Place * > PlaceOrderedList_T
Definition: PlaceList.hpp:21
OPENTREP::PlaceHolder::toStream
void toStream(std::ostream &ioOut) const
Definition: PlaceHolder.cpp:73
OPENTREP::PlaceList_T
std::multimap< std::string, Place * > PlaceList_T
Definition: PlaceList.hpp:14