Go to the documentation of this file.00001
00002
00003
00004
00005 #include <cassert>
00006 #include <sstream>
00007
00008 #include <stdair/bom/SnapshotStruct.hpp>
00009
00010 namespace stdair {
00011
00012
00013 SnapshotStruct::SnapshotStruct() {
00014 assert (false);
00015 }
00016
00017
00018 SnapshotStruct::
00019 SnapshotStruct (const SnapshotStruct& iSnapshot)
00020 : _airlineCode (iSnapshot._airlineCode),
00021 _snapshotTime (iSnapshot._snapshotTime) {
00022 }
00023
00024
00025 SnapshotStruct::
00026 SnapshotStruct (const AirlineCode_T& iAirlineCode,
00027 const DateTime_T& iSnapshotTime)
00028 : _airlineCode (iAirlineCode), _snapshotTime (iSnapshotTime) {
00029 }
00030
00031
00032 SnapshotStruct::~SnapshotStruct() {
00033 }
00034
00035
00036 void SnapshotStruct::toStream (std::ostream& ioOut) const {
00037 ioOut << describe();
00038 }
00039
00040
00041 void SnapshotStruct::fromStream (std::istream& ioIn) {
00042 }
00043
00044
00045 const std::string SnapshotStruct::describe() const {
00046 std::ostringstream oStr;
00047 oStr << _airlineCode << ", " << _snapshotTime;
00048 return oStr.str();
00049 }
00050
00051 }