StdAir Logo  1.00.16
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
11
12namespace stdair {
13
14 // ////////////////////////////////////////////////////////////////////
17
18 // ////////////////////////////////////////////////////////////////////
20 : _code (iAirlineStruct._code), _name (iAirlineStruct._name) {
21 }
22
23 // ////////////////////////////////////////////////////////////////////
25 const std::string& iAirlineName)
26 : _code (iAirlineCode), _name (iAirlineName) {
27 }
28
29 // ////////////////////////////////////////////////////////////////////
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}
Handle on the StdAir library context.
std::string AirlineCode_T
const std::string describe() const
void fromStream(std::istream &ioIn)
AirlineStruct(const AirlineCode_T &, const std::string &iAirlineName)
void toStream(std::ostream &ioOut) const