StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stdair::BomHolder< BOM > Class Template Reference

Class representing the holder of BOM object containers (list and map). More...

#include <stdair/bom/BomHolder.hpp>

+ Inheritance diagram for stdair::BomHolder< BOM >:

List of all members.

Public Types

typedef stdair::BomHolderKey Key_T
typedef std::list< BOM * > BomList_T
typedef std::map< const
MapKey_T, BOM * > 
BomMap_T

Public Member Functions

void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
std::string toString () const
const std::string describeKey () const

Public Attributes

Key_T _key
BomList_T _bomList
BomMap_T _bomMap

Protected Member Functions

 BomHolder ()
 BomHolder (const BomHolder &)
 BomHolder (const Key_T &iKey)
 ~BomHolder ()

Friends

class FacBom
class FacBomManager

Detailed Description

template<typename BOM>
class stdair::BomHolder< BOM >

Class representing the holder of BOM object containers (list and map).

Definition at line 24 of file BomHolder.hpp.


Member Typedef Documentation

template<typename BOM>
typedef stdair::BomHolderKey stdair::BomHolder< BOM >::Key_T

Definition allowing to retrieve the associated BOM key type.

Definition at line 34 of file BomHolder.hpp.

template<typename BOM>
typedef std::list<BOM*> stdair::BomHolder< BOM >::BomList_T

(STL) list of children.

Definition at line 39 of file BomHolder.hpp.

template<typename BOM>
typedef std::map<const MapKey_T, BOM*> stdair::BomHolder< BOM >::BomMap_T

(STL) map of children.

Definition at line 44 of file BomHolder.hpp.


Constructor & Destructor Documentation

template<typename BOM>
stdair::BomHolder< BOM >::BomHolder ( )
protected

Constructor.

template<typename BOM>
stdair::BomHolder< BOM >::BomHolder ( const BomHolder< BOM > &  )
protected

Copy constructor.

template<typename BOM>
stdair::BomHolder< BOM >::BomHolder ( const Key_T iKey)
inlineprotected

Main constructor.

Definition at line 94 of file BomHolder.hpp.

template<typename BOM>
stdair::BomHolder< BOM >::~BomHolder ( )
inlineprotected

Destructor.

Definition at line 99 of file BomHolder.hpp.


Member Function Documentation

template<typename BOM>
void stdair::BomHolder< BOM >::toStream ( std::ostream &  ioOut) const
inlinevirtual

Dump a Business Object into an output stream.

Parameters:
ostream&the output stream.

Implements stdair::BomAbstract.

Definition at line 54 of file BomHolder.hpp.

References stdair::BomHolder< BOM >::toString().

template<typename BOM>
void stdair::BomHolder< BOM >::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters:
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 63 of file BomHolder.hpp.

template<typename BOM>
std::string stdair::BomHolder< BOM >::toString ( ) const
inlinevirtual

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 69 of file BomHolder.hpp.

Referenced by stdair::BomHolder< BOM >::toStream().

template<typename BOM>
const std::string stdair::BomHolder< BOM >::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 76 of file BomHolder.hpp.


Friends And Related Function Documentation

template<typename BOM>
friend class FacBom
friend

Friend classes.

Definition at line 26 of file BomHolder.hpp.

template<typename BOM>
friend class FacBomManager
friend

Definition at line 27 of file BomHolder.hpp.


Member Data Documentation

template<typename BOM>
Key_T stdair::BomHolder< BOM >::_key

Key.

Definition at line 99 of file BomHolder.hpp.


The documentation for this class was generated from the following file: