StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
SnapshotStruct.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_SNAPSHOTSTRUCT_HPP
2 #define __STDAIR_BOM_SNAPSHOTSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 // StdAir
15 
16 namespace stdair {
17 
19  struct SnapshotStruct : public StructAbstract {
20  public:
21  // /////////////// Getters /////////////////
23  const AirlineCode_T& getAirlineCode() const {
24  return _airlineCode;
25  }
26 
28  const DateTime_T& getSnapshotTime() const {
29  return _snapshotTime;
30  }
31 
32  // /////////// Display support method /////////////
35  void toStream (std::ostream& ioOut) const;
36 
39  void fromStream (std::istream& ioIn);
40 
42  const std::string describe() const;
43 
44 
45  // /////////////// Constructors and Destructors /////////////////
46  public:
48  SnapshotStruct (const AirlineCode_T&, const DateTime_T&);
49 
52 
53  private:
56  SnapshotStruct ();
57 
58  public:
61 
62 
63  private:
64  // /////////////// Attributes /////////////////
66  const AirlineCode_T _airlineCode;
67 
69  const DateTime_T _snapshotTime;
70  };
71 
72 }
73 #endif // __STDAIR_BOM_SNAPSHOTSTRUCT_HPP
boost::posix_time::ptime DateTime_T
const DateTime_T & getSnapshotTime() const
Handle on the StdAir library context.
std::string AirlineCode_T
void toStream(std::ostream &ioOut) const
Base class for the light structures.
const AirlineCode_T & getAirlineCode() const
const std::string describe() const
void fromStream(std::istream &ioIn)