StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stdair::PosChannel Class Reference

Class representing the actual attributes for a fare point of sale. More...

#include <stdair/bom/PosChannel.hpp>

+ Inheritance diagram for stdair::PosChannel:

Public Types

typedef PosChannelKey Key_T

Public Member Functions

void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
std::string toString () const
const std::string describeKey () const
const Key_TgetKey () const
BomAbstract *const getParent () const
const stdair::HolderMap_TgetHolderMap () const
const CityCode_TgetPos () const
const ChannelLabel_TgetChannel () const

Protected Member Functions

 PosChannel (const Key_T &)
virtual ~PosChannel ()

Protected Attributes

Key_T _key
BomAbstract_parent
HolderMap_T _holderMap

Friends

class FacBom
class FacBomManager

Detailed Description

Class representing the actual attributes for a fare point of sale.

Definition at line 19 of file PosChannel.hpp.

Member Typedef Documentation

Definition allowing to retrieve the associated BOM key type.

Definition at line 28 of file PosChannel.hpp.

Constructor & Destructor Documentation

stdair::PosChannel::PosChannel ( const Key_T iKey)
protected

Main constructor.

Definition at line 29 of file PosChannel.cpp.

stdair::PosChannel::~PosChannel ( )
protectedvirtual

Destructor.

Definition at line 34 of file PosChannel.cpp.

Member Function Documentation

void stdair::PosChannel::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 37 of file PosChannel.hpp.

References toString().

void stdair::PosChannel::fromStream ( std::istream &  ioIn)
inlinevirtual

Read a Business Object from an input stream.

Parameters
istream&the input stream.

Implements stdair::BomAbstract.

Definition at line 46 of file PosChannel.hpp.

std::string stdair::PosChannel::toString ( ) const
virtual

Get the serialised version of the Business Object.

Implements stdair::BomAbstract.

Definition at line 38 of file PosChannel.cpp.

References describeKey().

Referenced by toStream().

const std::string stdair::PosChannel::describeKey ( ) const
inline

Get a string describing the key.

Definition at line 57 of file PosChannel.hpp.

References _key, and stdair::PosChannelKey::toString().

Referenced by toString().

const Key_T& stdair::PosChannel::getKey ( ) const
inline

Get the primary key (pos, channel).

Definition at line 66 of file PosChannel.hpp.

References _key.

BomAbstract* const stdair::PosChannel::getParent ( ) const
inline

Get a reference on the parent object instance.

Definition at line 73 of file PosChannel.hpp.

References _parent.

const stdair::HolderMap_T& stdair::PosChannel::getHolderMap ( ) const
inline

Get a reference on the children holder.

Definition at line 80 of file PosChannel.hpp.

References _holderMap.

const CityCode_T& stdair::PosChannel::getPos ( ) const
inline

Get the point-of-sale.

Definition at line 87 of file PosChannel.hpp.

References _key, and stdair::PosChannelKey::getPos().

const ChannelLabel_T& stdair::PosChannel::getChannel ( ) const
inline

Get the channel.

Definition at line 94 of file PosChannel.hpp.

References _key, and stdair::PosChannelKey::getChannel().

Friends And Related Function Documentation

friend class FacBom
friend

Definition at line 20 of file PosChannel.hpp.

friend class FacBomManager
friend

Definition at line 21 of file PosChannel.hpp.

Member Data Documentation

Key_T stdair::PosChannel::_key
protected

Primary key (flight number and departure date).

Definition at line 126 of file PosChannel.hpp.

Referenced by describeKey(), getChannel(), getKey(), and getPos().

BomAbstract* stdair::PosChannel::_parent
protected

Pointer on the parent class.

Definition at line 131 of file PosChannel.hpp.

Referenced by getParent().

HolderMap_T stdair::PosChannel::_holderMap
protected

Map holding the children.

Definition at line 136 of file PosChannel.hpp.

Referenced by getHolderMap().


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