StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
BomRootKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_BOMROOTKEY_HPP
2 #define __STDAIR_BOM_BOMROOTKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 // StdAir
12 
14 namespace boost {
15  namespace serialization {
16  class access;
17  }
18 }
19 
20 namespace stdair {
21 
25  struct BomRootKey : public KeyAbstract {
27 
28  // /////////// Constructors and destructors ///////////
29  public:
33  BomRootKey ();
34 
38  BomRootKey (const std::string& iIdentification);
39 
43  BomRootKey (const BomRootKey&);
44 
48  ~BomRootKey();
49 
50 
51  public:
52  // /////////// Getters //////////
56  const std::string& getID() const {
57  return _id;
58  }
59 
60 
61  public:
62  // /////////// Display support methods /////////
68  void toStream (std::ostream& ioOut) const;
69 
75  void fromStream (std::istream& ioIn);
76 
86  const std::string toString() const;
87 
88 
89  public:
90  // /////////// (Boost) Serialisation support methods /////////
94  template<class Archive>
95  void serialize (Archive& ar, const unsigned int iFileVersion);
96 
97  private:
102  void serialisationImplementationExport() const;
103  void serialisationImplementationImport();
104 
105 
106  private:
107  // ///////////////// Attributes ///////////////
111  std::string _id;
112  };
113 
114 }
115 #endif // __STDAIR_BOM_BOMROOTKEY_HPP
Handle on the StdAir library context.
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
Key of the BOM structure root.
Definition: BomRootKey.hpp:25
const std::string & getID() const
Definition: BomRootKey.hpp:56
void fromStream(std::istream &ioIn)
Definition: BomRootKey.cpp:42
Forward declarations.
void serialize(Archive &ar, const unsigned int iFileVersion)
Definition: BomRootKey.cpp:68
const std::string toString() const
Definition: BomRootKey.cpp:46
void toStream(std::ostream &ioOut) const
Definition: BomRootKey.cpp:37
friend class boost::serialization::access
Definition: BomRootKey.hpp:26