StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
SnapshotStruct.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_SNAPSHOTSTRUCT_HPP
00002 #define __STDAIR_BOM_SNAPSHOTSTRUCT_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <iosfwd>
00009 #include <string>
00010 // StdAir
00011 #include <stdair/stdair_inventory_types.hpp>
00012 #include <stdair/stdair_demand_types.hpp>
00013 #include <stdair/basic/StructAbstract.hpp>
00014 #include <stdair/bom/SnapshotTypes.hpp>
00015 
00016 namespace stdair {
00017 
00019   struct SnapshotStruct : public StructAbstract {
00020   public:
00021     // /////////////// Getters /////////////////
00023     const AirlineCode_T& getAirlineCode() const {
00024       return _airlineCode;
00025     }
00026 
00028     const DateTime_T& getSnapshotTime() const {
00029       return _snapshotTime;
00030     }
00031     
00032     // /////////// Display support method /////////////
00035     void toStream (std::ostream& ioOut) const;
00036 
00039     void fromStream (std::istream& ioIn);
00040 
00042     const std::string describe() const;
00043 
00044     
00045     // /////////////// Constructors and Destructors /////////////////
00046   public:
00048     SnapshotStruct (const AirlineCode_T&, const DateTime_T&);
00049 
00051     SnapshotStruct (const SnapshotStruct&);
00052     
00053   private:
00056     SnapshotStruct ();
00057 
00058   public:
00060     ~SnapshotStruct();
00061     
00062 
00063   private:
00064     // /////////////// Attributes /////////////////
00066     const AirlineCode_T _airlineCode;
00067 
00069     const DateTime_T _snapshotTime;
00070   };
00071 
00072 }
00073 #endif // __STDAIR_BOM_SNAPSHOTSTRUCT_HPP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines