AirTSP Logo  1.01.0
C++ Simulated Airline Travel Solution Provider Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
airtsp::Passenger_T Struct Reference

#include <airtsp/batches/BookingRequestParser.hpp>

Public Types

enum  PassengerType_T { ADULT = 0, CHILD, PET, LAST_VALUE }
 

Public Member Functions

 Passenger_T ()
 
void display () const
 

Public Attributes

PassengerType_T _type
 
unsigned short _number
 

Static Public Attributes

static const std::string _labels [LAST_VALUE]
 

Detailed Description

Passenger.

Definition at line 71 of file BookingRequestParser.hpp.

Member Enumeration Documentation

Enumerator
ADULT 
CHILD 
PET 
LAST_VALUE 

Definition at line 73 of file BookingRequestParser.hpp.

Constructor & Destructor Documentation

airtsp::Passenger_T::Passenger_T ( )
inline

Constructor.

Definition at line 78 of file BookingRequestParser.hpp.

Member Function Documentation

void airtsp::Passenger_T::display ( ) const
inline

Definition at line 80 of file BookingRequestParser.hpp.

References _labels, _number, and _type.

Referenced by airtsp::SearchString_T::display().

Member Data Documentation

const std::string airtsp::Passenger_T::_labels
static
Initial value:
=
{ "Adult", "Child", "Pet" }

Passenger type labels.

Definition at line 74 of file BookingRequestParser.hpp.

Referenced by display().

unsigned short airtsp::Passenger_T::_number

Definition at line 76 of file BookingRequestParser.hpp.

Referenced by display(), and airtsp::store_passenger_number::operator()().


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