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

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

#include <stdair/bom/BomManager.hpp>

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 &)
 
template<>
bool hasList (const SegmentDate &ioSegmentDate)
 
template<>
const BomHolder< SegmentDate >::BomList_T & getList (const SegmentDate &ioSegmentDate)
 
template<>
bool hasMap (const SegmentDate &ioSegmentDate)
 
template<>
bool hasList (const Inventory &ioInventory)
 
template<>
bool hasMap (const Inventory &ioInventory)
 
template<>
AirlineFeaturegetObjectPtr (const Inventory &iInventory, const MapKey_T &iKey)
 
template<>
AirlineFeaturegetObject (const Inventory &iInventory, const MapKey_T &iKey)
 

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.

Definition at line 34 of file BomManager.hpp.

Member Function Documentation

◆ getList() [1/2]

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

◆ getMap()

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 158 of file BomManager.hpp.

References stdair::BomHolder< BOM >::_bomMap.

Referenced by getObject(), and stdair::BomJSONExport::jsonExportFlightDateList().

◆ hasList() [1/3]

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 181 of file BomManager.hpp.

References stdair::BomHolder< BOM >::_bomList.

Referenced by hasList(), and stdair::BomJSONExport::jsonExportFlightDateList().

◆ hasMap() [1/3]

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 201 of file BomManager.hpp.

References stdair::BomHolder< BOM >::_bomMap.

Referenced by hasMap(), hasMap(), and stdair::BomJSONExport::jsonExportFlightDateList().

◆ getParentPtr()

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 220 of file BomManager.hpp.

Referenced by getParent(), and stdair::BomRetriever::retrieveFullKeyFromSegmentDate().

◆ getParent()

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

Get the PARENT of the given CHILD.

Definition at line 230 of file BomManager.hpp.

References getParentPtr().

Referenced by stdair::LegCabin::getFullerKey(), and stdair::SegmentCabin::getFullerKey().

◆ getObjectPtr() [1/2]

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

◆ getObject() [1/2]

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

Get the OBJECT2 corresponding to the given string key.

Definition at line 283 of file BomManager.hpp.

References getMap(), and STDAIR_LOG_ERROR.

Referenced by stdair::FacBomManager::resetYieldBasedNestingStructure().

◆ hasList() [2/3]

template<>
bool stdair::BomManager::hasList ( const SegmentDate & ioSegmentDate)
inlinestatic

◆ getList() [2/2]

template<>
const BomHolder< SegmentDate >::BomList_T & stdair::BomManager::getList ( const SegmentDate & ioSegmentDate)
inlinestatic

◆ hasMap() [2/3]

template<>
bool stdair::BomManager::hasMap ( const SegmentDate & ioSegmentDate)
inlinestatic

Definition at line 357 of file BomManager.hpp.

References hasMap().

◆ hasList() [3/3]

template<>
bool stdair::BomManager::hasList ( const Inventory & ioInventory)
inlinestatic

Definition at line 374 of file BomManager.hpp.

References hasList().

◆ hasMap() [3/3]

template<>
bool stdair::BomManager::hasMap ( const Inventory & ioInventory)
inlinestatic

Definition at line 384 of file BomManager.hpp.

References hasMap().

◆ getObjectPtr() [2/2]

template<>
AirlineFeature * stdair::BomManager::getObjectPtr ( const Inventory & iInventory,
const MapKey_T & iKey )
inlinestatic

Definition at line 394 of file BomManager.hpp.

References stdair::Inventory::getAirlineFeature().

◆ getObject() [2/2]

template<>
AirlineFeature & stdair::BomManager::getObject ( const Inventory & iInventory,
const MapKey_T & iKey )
inlinestatic

Definition at line 405 of file BomManager.hpp.

References getObjectPtr().

Friends And Related Symbol Documentation

◆ FacBomManager

friend class FacBomManager
friend

Definition at line 35 of file BomManager.hpp.

References FacBomManager.

Referenced by FacBomManager.


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