StdAir Logo  1.00.13
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
YieldFeaturesKey.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <ostream>
6#include <sstream>
7// StdAir
10
11namespace stdair {
12
13 // ////////////////////////////////////////////////////////////////////
14 YieldFeaturesKey::YieldFeaturesKey()
15 : _tripType (TRIP_TYPE_ONE_WAY),
16 _cabinCode (DEFAULT_PREFERRED_CABIN) {
17 assert (false);
18 }
19
20 // ////////////////////////////////////////////////////////////////////
21 YieldFeaturesKey::YieldFeaturesKey (const stdair::TripType_T& iTripType,
22 const stdair::CabinCode_T& iCabin)
23 : _tripType (iTripType), _cabinCode (iCabin) {
24 }
25
26 // ////////////////////////////////////////////////////////////////////
27 YieldFeaturesKey::YieldFeaturesKey (const YieldFeaturesKey& iKey)
28 : _tripType (iKey.getTripType()), _cabinCode (iKey.getCabinCode()) {
29 }
30
31 // ////////////////////////////////////////////////////////////////////
33 }
34
35 // ////////////////////////////////////////////////////////////////////
36 void YieldFeaturesKey::toStream (std::ostream& ioOut) const {
37 ioOut << "YieldFeaturesKey: " << toString() << std::endl;
38 }
39
40 // ////////////////////////////////////////////////////////////////////
41 void YieldFeaturesKey::fromStream (std::istream& ioIn) {
42 }
43
44 // ////////////////////////////////////////////////////////////////////
45 const std::string YieldFeaturesKey::toString() const {
46 std::ostringstream oStr;
47 oStr << _tripType << " -- " << _cabinCode;
48 return oStr.str();
49 }
50
51}
Handle on the StdAir library context.
std::string TripType_T
const CabinCode_T DEFAULT_PREFERRED_CABIN
const TripType_T TRIP_TYPE_ONE_WAY
std::string CabinCode_T
void toStream(std::ostream &ioOut) const
const std::string toString() const
void fromStream(std::istream &ioIn)