StdAir Logo  1.00.19
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
13namespace 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 {
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
47 };
48}
49
50#endif // __STDAIR_TST_STDAIR_TEST_LIB_HPP
BookingClass(const std::string &iClassCode)
std::string toString() const
BookingClass _bookingClass
Cabin(const BookingClass &iBkgClass)
std::string toString() const