1 #ifndef __STDAIR_BOM_BOMROOT_HPP 2 #define __STDAIR_BOM_BOMROOT_HPP 18 namespace serialization {
33 template <
typename BOM>
friend class FacBom;
36 friend class boost::serialization::access;
59 return _frat5CurveHolder.getFRAT5Curve (iKey);
64 return _ffDisutilityCurveHolder.getFFDisutilityCurve (iKey);
77 Inventory* getInventory (
const std::string& iInventoryKeyStr)
const;
94 _frat5CurveHolder.addCurve (iKey, iCurve);
100 _ffDisutilityCurveHolder.addCurve (iKey, iCurve);
126 std::string toString()
const;
132 return _key.toString();
148 template<
class Archive>
149 void serialize (Archive& ar,
const unsigned int iFileVersion);
159 void serialisationImplementationExport()
const;
160 void serialisationImplementationImport();
210 #endif // __STDAIR_BOM_BOMROOT_HPP Handle on the StdAir library context.
Utility class for linking StdAir-based objects.
FFDisutilityCurveHolderStruct _ffDisutilityCurveHolder
void addFRAT5Curve(const std::string &iKey, const FRAT5Curve_T &iCurve)
Class representing the actual attributes for the Bom root.
std::map< const std::type_info *, BomAbstract * > HolderMap_T
void addFFDisutilityCurve(const std::string &iKey, const FFDisutilityCurve_T &iCurve)
const HolderMap_T & getHolderMap() const
const FFDisutilityCurve_T & getFFDisutilityCurve(const std::string &iKey) const
Base class for the Business Object Model (BOM) layer.
const FRAT5Curve_T & getFRAT5Curve(const std::string &iKey) const
Base class for Factory layer.
const Key_T & getKey() const
Key of a given inventory, made of the airline code.
Class representing the actual attributes for an airline inventory.
std::map< const DTD_T, double > FFDisutilityCurve_T
FRAT5CurveHolderStruct _frat5CurveHolder
Base class for Factory layer.
void toStream(std::ostream &ioOut) const
Key of the BOM structure root.
const std::string describeKey() const
void fromStream(std::istream &ioIn)
std::map< const DTD_T, FRAT5_T > FRAT5Curve_T