StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
stdair::BomManager Class Reference

Utility class for StdAir-based objects. More...

#include <stdair/bom/BomManager.hpp>

List of all members.

Public Member Functions

template<>
bool hasList (const SegmentDate &ioSegmentDate)
template<>
const BomHolder< SegmentDate >
::BomList_T & 
getList (const SegmentDate &ioSegmentDate)
template<>
bool hasMap (const SegmentDate &ioSegmentDate)

Static Public Member Functions

template<typename OBJECT2 , typename OBJECT1 >
static const BomHolder
< OBJECT2 >::BomList_T & 
getList (const OBJECT1 &)
template<typename OBJECT2 , typename OBJECT1 >
static const BomHolder
< OBJECT2 >::BomMap_T & 
getMap (const OBJECT1 &)
template<typename OBJECT2 , typename OBJECT1 >
static bool hasList (const OBJECT1 &)
template<typename OBJECT2 , typename OBJECT1 >
static bool hasMap (const OBJECT1 &)
template<typename PARENT , typename CHILD >
static PARENT * getParentPtr (const CHILD &)
template<typename PARENT , typename CHILD >
static PARENT & getParent (const CHILD &)
template<typename OBJECT2 , typename OBJECT1 >
static OBJECT2 * getObjectPtr (const OBJECT1 &, const MapKey_T &)
template<typename OBJECT2 , typename OBJECT1 >
static OBJECT2 & getObject (const OBJECT1 &, const MapKey_T &)

Friends

class FacBomManager

Detailed Description

Utility class for StdAir-based objects.

Most of those methods work for objects specified and instantianted outside StdAir, as long as those objects inherit from StdAir objects.


Member Function Documentation

template<typename OBJECT2 , typename OBJECT1 >
const BomHolder< OBJECT2 >::BomList_T & stdair::BomManager::getList ( const OBJECT1 &  iObject1) [static]

Get the container (STL list) of OBJECT2 objects within the OBJECT1 object.

Definition at line 127 of file BomManager.hpp.

References stdair::BomHolder::_bomList.

template<typename OBJECT2 , typename OBJECT1 >
const BomHolder< OBJECT2 >::BomMap_T & stdair::BomManager::getMap ( const OBJECT1 &  iObject1) [static]

Get the container (STL map) of OBJECT2 objects within the OBJECT1 object.

Definition at line 138 of file BomManager.hpp.

References stdair::BomHolder::_bomMap.

template<typename OBJECT2 , typename OBJECT1 >
bool stdair::BomManager::hasList ( const OBJECT1 &  iObject1) [static]

Check if the list of object2 has been initialised.

Definition at line 157 of file BomManager.hpp.

References stdair::BomHolder::_bomList.

template<typename OBJECT2 , typename OBJECT1 >
bool stdair::BomManager::hasMap ( const OBJECT1 &  iObject1) [static]

Check if the map of object2 has been initialised.

Definition at line 177 of file BomManager.hpp.

References stdair::BomHolder::_bomMap.

template<typename PARENT , typename CHILD >
PARENT * stdair::BomManager::getParentPtr ( const CHILD &  iChild) [static]

Get the PARENT of the given CHILD.

If the types do not match, NULL is returned.

Definition at line 196 of file BomManager.hpp.

template<typename PARENT , typename CHILD >
PARENT & stdair::BomManager::getParent ( const CHILD &  iChild) [static]

Get the PARENT of the given CHILD.

Definition at line 206 of file BomManager.hpp.

template<typename OBJECT2 , typename OBJECT1 >
OBJECT2 * stdair::BomManager::getObjectPtr ( const OBJECT1 &  iObject1,
const MapKey_T iKey 
) [static]

Get the OBJECT2 pointer corresponding to the given string key.

If such a OBJECT2 does not exist, return NULL.

Definition at line 217 of file BomManager.hpp.

References stdair::BomHolder::_bomMap.

template<typename OBJECT2 , typename OBJECT1 >
OBJECT2 & stdair::BomManager::getObject ( const OBJECT1 &  iObject1,
const MapKey_T iKey 
) [static]

Get the OBJECT2 corresponding the the given string key.

Definition at line 259 of file BomManager.hpp.

References STDAIR_LOG_ERROR.

template<>
bool stdair::BomManager::hasList ( const SegmentDate ioSegmentDate) [inline]

Definition at line 304 of file BomManager.hpp.

template<>
const BomHolder<SegmentDate>::BomList_T& stdair::BomManager::getList ( const SegmentDate ioSegmentDate) [inline]

Definition at line 319 of file BomManager.hpp.

template<>
bool stdair::BomManager::hasMap ( const SegmentDate ioSegmentDate) [inline]

Definition at line 332 of file BomManager.hpp.


Friends And Related Function Documentation

friend class FacBomManager [friend]

Definition at line 33 of file BomManager.hpp.


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