AirRAC Logo  1.00.0
C++ Simulated Revenue Accounting (RAC) System Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
AIRRAC_Types.hpp
Go to the documentation of this file.
1 #ifndef __AIRRAC_AIRRAC_TYPES_HPP
2 #define __AIRRAC_AIRRAC_TYPES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <vector>
9 #include <string>
10 // Boost
11 #include <boost/shared_ptr.hpp>
12 // StdAir
13 #include <stdair/stdair_exceptions.hpp>
14 #include <stdair/stdair_file.hpp>
15 
16 namespace AIRRAC {
17 
18  // ///////// Exceptions ///////////
19  class AirportPairNotFoundException : public stdair::ObjectNotFoundException {
20  public:
22  AirportPairNotFoundException (const std::string& iWhat)
23  : stdair::ObjectNotFoundException (iWhat) {}
24  };
25 
26  class PosOrChannelNotFoundException : public stdair::ObjectNotFoundException {
27  public:
29  PosOrChannelNotFoundException (const std::string& iWhat)
30  : stdair::ObjectNotFoundException (iWhat) {}
31  };
32 
33  class FlightDateNotFoundException : public stdair::ObjectNotFoundException {
34  public:
36  FlightDateNotFoundException (const std::string& iWhat)
37  : stdair::ObjectNotFoundException (iWhat) {}
38  };
39 
40  class FlightTimeNotFoundException : public stdair::ObjectNotFoundException {
41  public:
43  FlightTimeNotFoundException (const std::string& iWhat)
44  : stdair::ObjectNotFoundException (iWhat) {}
45  };
46 
47  class FeaturesNotFoundException : public stdair::ObjectNotFoundException {
48  public:
50  FeaturesNotFoundException (const std::string& iWhat)
51  : stdair::ObjectNotFoundException (iWhat) {}
52  };
53 
54  class AirlineNotFoundException : public stdair::ObjectNotFoundException {
55  public:
57  AirlineNotFoundException (const std::string& iWhat)
58  : stdair::ObjectNotFoundException (iWhat) {}
59  };
60 
61  class YieldInputFileNotFoundException : public stdair::FileNotFoundException {
62  public:
64  YieldInputFileNotFoundException (const std::string& iWhat)
65  : stdair::FileNotFoundException (iWhat) {}
66  };
67 
68  class YieldFileParsingFailedException : public stdair::ParsingFileFailedException {
69  public:
71  YieldFileParsingFailedException (const std::string& iWhat)
72  : stdair::ParsingFileFailedException (iWhat) {}
73  };
74 
75  class QuotingException : public stdair::RootException {
76  };
77 
78  // ///////// Files ///////////
82  class YieldFilePath : public stdair::InputFilePath {
83  public:
87  explicit YieldFilePath (const stdair::Filename_T& iFilename)
88  : stdair::InputFilePath (iFilename) {}
89  };
90 
91  // //////// Type definitions specific to AirRAC /////////
96  typedef boost::shared_ptr<AIRRAC_Service> AIRRAC_ServicePtr_T;
97 
98 
102  typedef unsigned int YieldID_T;
103 }
104 #endif // __AIRRAC_AIRRAC_TYPES_HPP
105