1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
StdairTestLib.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_TST_STDAIR_TEST_LIB_HPP
2
#define __STDAIR_TST_STDAIR_TEST_LIB_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
#include <string>
8
#include <sstream>
9
13
namespace
stdair_test {
14
16
struct
BookingClass
{
17
std::string
_classCode
;
19
BookingClass
(
const
std::string& iClassCode)
20
:
_classCode
(iClassCode) {
21
}
22
24
std::string
toString
()
const
{
25
std::ostringstream oStr;
26
oStr <<
_classCode
;
27
return
oStr.str();
28
}
29
};
30
32
struct
Cabin
{
33
BookingClass
_bookingClass
;
34
Cabin
(
const
BookingClass
& iBkgClass)
35
:
_bookingClass
(iBkgClass) {
36
}
37
39
std::string
toString
()
const
{
40
std::ostringstream oStr;
41
oStr <<
_bookingClass
.
_classCode
;
42
return
oStr.str();
43
}
44
46
typedef
BookingClass
child
;
47
};
48
}
49
50
#endif // __STDAIR_TST_STDAIR_TEST_LIB_HPP
Generated on Sat Dec 22 2012 16:51:54 for StdAir by
1.8.1.1