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
AirlineStruct.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// STL
5
#include <cassert>
6
#include <istream>
7
#include <ostream>
8
#include <sstream>
9
// StdAir
10
#include <
stdair/bom/AirlineStruct.hpp
>
11
12
namespace
stdair {
13
14
// ////////////////////////////////////////////////////////////////////
15
AirlineStruct::AirlineStruct
() {
16
}
17
18
// ////////////////////////////////////////////////////////////////////
19
AirlineStruct::AirlineStruct
(
const
AirlineStruct
& iAirlineStruct)
20
: _code (iAirlineStruct._code), _name (iAirlineStruct._name) {
21
}
22
23
// ////////////////////////////////////////////////////////////////////
24
AirlineStruct::AirlineStruct
(
const
AirlineCode_T
& iAirlineCode,
25
const
std::string& iAirlineName)
26
: _code (iAirlineCode), _name (iAirlineName) {
27
}
28
29
// ////////////////////////////////////////////////////////////////////
30
AirlineStruct::~AirlineStruct
() {
31
}
32
33
// //////////////////////////////////////////////////////////////////////
34
void
AirlineStruct::toStream
(std::ostream& ioOut)
const
{
35
ioOut <<
describe
();
36
}
37
38
// //////////////////////////////////////////////////////////////////////
39
void
AirlineStruct::fromStream
(std::istream& ioIn) {
40
}
41
42
// //////////////////////////////////////////////////////////////////////
43
const
std::string
AirlineStruct::describe
()
const
{
44
std::ostringstream oStr;
45
oStr << _code <<
" "
<< _name;
46
return
oStr.str();
47
}
48
49
}
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1