8 #include <boost/archive/text_iarchive.hpp>
9 #include <boost/archive/text_oarchive.hpp>
10 #include <boost/serialization/access.hpp>
24 : _airlineCode (iAirlineCode) {
29 : _airlineCode (iKey._airlineCode) {
38 ioOut <<
"InventoryKey: " <<
toString();
47 std::ostringstream oStr;
53 void InventoryKey::serialisationImplementationExport()
const {
54 std::ostringstream oStr;
55 boost::archive::text_oarchive oa (oStr);
60 void InventoryKey::serialisationImplementationImport() {
61 std::istringstream iStr;
62 boost::archive::text_iarchive ia (iStr);
67 template<
class Archive>
69 const unsigned int iFileVersion) {
70 ioArchive & _airlineCode;
75 namespace ba = boost::archive;
76 template void InventoryKey::serialize<ba::text_oarchive> (ba::text_oarchive&,
78 template void InventoryKey::serialize<ba::text_iarchive> (ba::text_iarchive&,
void toStream(std::ostream &ioOut) const
Handle on the StdAir library context.
std::string AirlineCode_T
Key of a given inventory, made of the airline code.
void fromStream(std::istream &ioIn)
const AirlineCode_T DEFAULT_AIRLINE_CODE
void serialize(Archive &ar, const unsigned int iFileVersion)
const std::string toString() const