AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AIRINV_Types.hpp
Go to the documentation of this file.
1 #ifndef __AIRINV_AIRINV_TYPES_HPP
2 #define __AIRINV_AIRINV_TYPES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <map>
9 // Boost
10 #include <boost/shared_ptr.hpp>
11 // StdAir
12 #include <stdair/stdair_exceptions.hpp>
13 #include <stdair/stdair_inventory_types.hpp>
14 
15 namespace AIRINV {
16 
17  // Forward declarations
18  class AIRINV_Service;
19  class AIRINV_Master_Service;
20 
21 
22  // ///////// Exceptions ///////////
23 
28  : public stdair::ParsingFileFailedException {
29  public:
33  InventoryFileParsingFailedException (const std::string& iWhat)
34  : stdair::ParsingFileFailedException (iWhat) {}
35  };
36 
41  : public stdair::ParsingFileFailedException {
42  public:
46  ScheduleFileParsingFailedException (const std::string& iWhat)
47  : stdair::ParsingFileFailedException (iWhat) {}
48  };
49 
54  class SegmentDateNotFoundException : public stdair::ParserException {
55  public:
59  SegmentDateNotFoundException (const std::string& iWhat)
60  : stdair::ParserException (iWhat) {}
61  };
62 
66  class InventoryInputFileNotFoundException : public stdair::FileNotFoundException {
67  public:
71  InventoryInputFileNotFoundException (const std::string& iWhat)
72  : stdair::FileNotFoundException (iWhat) {}
73  };
74 
78  class ScheduleInputFileNotFoundException : public stdair::FileNotFoundException {
79  public:
83  ScheduleInputFileNotFoundException (const std::string& iWhat)
84  : stdair::FileNotFoundException (iWhat) {}
85  };
86 
90  class FlightDateDuplicationException : public stdair::ObjectCreationgDuplicationException {
91  public:
95  FlightDateDuplicationException (const std::string& iWhat)
96  : stdair::ObjectCreationgDuplicationException (iWhat) {}
97  };
98 
102  class BookingException : public stdair::RootException {
103  };
104 
105 
106  // //////// Type definitions /////////
110  typedef boost::shared_ptr<AIRINV_Service> AIRINV_ServicePtr_T;
111 
115  typedef boost::shared_ptr<AIRINV_Master_Service> AIRINV_Master_ServicePtr_T;
116 
121  typedef std::map<const stdair::AirlineCode_T,
123 
127  typedef std::map<const stdair::DTD_T, double> FRAT5Curve_T;
128 
129 }
130 #endif // __AIRINV_AIRINV_TYPES_HPP
131