StdAir Logo  1.00.19
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
stdair::FareFamilyKey Struct Reference

Key of a given fare family, made of a fare family code. More...

#include <stdair/bom/FareFamilyKey.hpp>

+ Inheritance diagram for stdair::FareFamilyKey:

Public Member Functions

 FareFamilyKey (const FamilyCode_T &iFamilyCode)
 
 FareFamilyKey (const FareFamilyKey &)
 
 ~FareFamilyKey ()
 
const FamilyCode_TgetFamilyCode () const
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
const std::string toString () const
 
template<class Archive>
void serialize (Archive &ar, const unsigned int iFileVersion)
 

Friends

class boost::serialization::access
 

Detailed Description

Key of a given fare family, made of a fare family code.

Definition at line 26 of file FareFamilyKey.hpp.

Constructor & Destructor Documentation

◆ FareFamilyKey() [1/2]

stdair::FareFamilyKey::FareFamilyKey ( const FamilyCode_T & iFamilyCode)

Constructor.

Definition at line 28 of file FareFamilyKey.cpp.

◆ FareFamilyKey() [2/2]

stdair::FareFamilyKey::FareFamilyKey ( const FareFamilyKey & iFareFamilyKey)

Copy constructor.

Definition at line 23 of file FareFamilyKey.cpp.

◆ ~FareFamilyKey()

stdair::FareFamilyKey::~FareFamilyKey ( )

Destructor.

Definition at line 33 of file FareFamilyKey.cpp.

Member Function Documentation

◆ getFamilyCode()

const FamilyCode_T & stdair::FareFamilyKey::getFamilyCode ( ) const
inline

Get the family code.

Definition at line 56 of file FareFamilyKey.hpp.

◆ toStream()

void stdair::FareFamilyKey::toStream ( std::ostream & ioOut) const
virtual

Dump a Business Object Key into an output stream.

Parameters
ostream&the output stream.

Reimplemented from stdair::KeyAbstract.

Definition at line 37 of file FareFamilyKey.cpp.

References toString().

◆ fromStream()

void stdair::FareFamilyKey::fromStream ( std::istream & ioIn)
virtual

Read a Business Object Key from an input stream.

Parameters
istream&the input stream.

Reimplemented from stdair::KeyAbstract.

Definition at line 42 of file FareFamilyKey.cpp.

◆ toString()

const std::string stdair::FareFamilyKey::toString ( ) const
virtual

Get the serialised version of the Business Object Key.

That string is unique, at the level of a given Business Object, when among children of a given parent Business Object.

For instance, "H" and "K" allow to differentiate among two marketing classes for the same segment-date.

Reimplemented from stdair::KeyAbstract.

Definition at line 46 of file FareFamilyKey.cpp.

Referenced by toStream().

◆ serialize()

template<class Archive>
void stdair::FareFamilyKey::serialize ( Archive & ar,
const unsigned int iFileVersion )

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 27 of file FareFamilyKey.hpp.

References boost::serialization::access.

Referenced by boost::serialization::access.


The documentation for this struct was generated from the following files: