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

#include <stdair/bom/ConfigHolderStruct.hpp>

+ Inheritance diagram for stdair::ConfigHolderStruct:

Public Member Functions

void add (const bpt::ptree &)
 
bool addValue (const std::string &iValue, const std::string &iPath)
 
template<typename ValueType >
bool exportValue (ValueType &ioValue, const std::string &iPath) const
 
void updateAirlineFeatures (BomRoot &)
 
void toStream (std::ostream &ioOut) const
 
void fromStream (std::istream &ioIn)
 
const std::string describe () const
 
const std::string jsonExport () const
 
 ConfigHolderStruct ()
 
 ConfigHolderStruct (const ConfigHolderStruct &)
 
 ~ConfigHolderStruct ()
 
template<>
bool exportValue (Date_T &ioValue, const std::string &iPath) const
 

Detailed Description

Structure holding the configuration of the simulation.

Definition at line 40 of file ConfigHolderStruct.hpp.

Constructor & Destructor Documentation

◆ ConfigHolderStruct() [1/2]

stdair::ConfigHolderStruct::ConfigHolderStruct ( )

Constructor.

Definition at line 28 of file ConfigHolderStruct.cpp.

◆ ConfigHolderStruct() [2/2]

stdair::ConfigHolderStruct::ConfigHolderStruct ( const ConfigHolderStruct & iConfigHolderStruct)

Copy constructor.

Definition at line 32 of file ConfigHolderStruct.cpp.

◆ ~ConfigHolderStruct()

stdair::ConfigHolderStruct::~ConfigHolderStruct ( )

Destructor.

Definition at line 38 of file ConfigHolderStruct.cpp.

Member Function Documentation

◆ add()

void stdair::ConfigHolderStruct::add ( const bpt::ptree & iConfigPropertyTree)

Merge the given property tree with the existing configuration property tree gathering all the configuration information.

Parameters
constbpt::ptree& Property tree to add to the configuration tree.

Definition at line 145 of file ConfigHolderStruct.cpp.

References add().

Referenced by add(), stdair::BomINIImport::importINIConfig(), and stdair::BomJSONImport::jsonImportConfig().

◆ addValue()

bool stdair::ConfigHolderStruct::addValue ( const std::string & iValue,
const std::string & iPath )

Create the given specified path in the configuration tree and add the corresponding given value (or replace the value if the path already exists).

Parameters
conststd::string& Value to add at the given path.
conststd::string& Path to create (or to look for).

Definition at line 192 of file ConfigHolderStruct.cpp.

Referenced by stdair::STDAIR_Service::importConfigValue().

◆ exportValue() [1/2]

template<typename ValueType >
bool stdair::ConfigHolderStruct::exportValue ( ValueType & ioValue,
const std::string & iPath ) const

Look for the specified path in the configuration tree and, if existing, try to extract the corresponding value. The type of the value to extract is a template parameter.

Parameters
ValueType&Value to add in the configuration tree.
conststd::string& Path to look for.

Definition at line 144 of file ConfigHolderStruct.hpp.

Referenced by stdair::STDAIR_Service::exportConfigValue().

◆ updateAirlineFeatures()

◆ toStream()

void stdair::ConfigHolderStruct::toStream ( std::ostream & ioOut) const

Dump a Business Object into an output stream.

Parameters
ostream&the output stream.

Definition at line 42 of file ConfigHolderStruct.cpp.

References describe().

◆ fromStream()

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

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Reimplemented from stdair::StructAbstract.

Definition at line 47 of file ConfigHolderStruct.cpp.

◆ describe()

const std::string stdair::ConfigHolderStruct::describe ( ) const
virtual

Display of the structure.

Implements stdair::StructAbstract.

Definition at line 51 of file ConfigHolderStruct.cpp.

Referenced by stdair::STDAIR_Service::configDisplay(), and toStream().

◆ jsonExport()

const std::string stdair::ConfigHolderStruct::jsonExport ( ) const

Display of the configuration in a JSON-ified format.

Definition at line 135 of file ConfigHolderStruct.cpp.

Referenced by stdair::STDAIR_Service::jsonExportConfiguration().

◆ exportValue() [2/2]

template<>
bool stdair::ConfigHolderStruct::exportValue ( Date_T & ioValue,
const std::string & iPath ) const
inline

Definition at line 174 of file ConfigHolderStruct.hpp.


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