SimFQT Logo  1.00.8
C++ Simulated Fare Quote System Library
Loading...
Searching...
No Matches
SIMFQT_Types.hpp
Go to the documentation of this file.
1#ifndef __SIMFQT_SIMFQT_TYPES_HPP
2#define __SIMFQT_SIMFQT_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
16namespace SIMFQT {
17
18 // Forward declarations
19 class SIMFQT_Service;
20
21
22 // ///////// Exceptions ///////////
27 : public stdair::ParsingFileFailedException {
28 public:
32 FareFileParsingFailedException (const std::string& iWhat)
33 : stdair::ParsingFileFailedException (iWhat) {}
34 };
35
39 class AirportPairNotFoundException : public stdair::ObjectNotFoundException {
40 public:
44 AirportPairNotFoundException (const std::string& iWhat)
45 : stdair::ObjectNotFoundException (iWhat) {}
46 };
47
51 class PosOrChannelNotFoundException : public stdair::ObjectNotFoundException {
52 public:
56 PosOrChannelNotFoundException (const std::string& iWhat)
57 : stdair::ObjectNotFoundException (iWhat) {}
58 };
59
63 class FlightDateNotFoundException : public stdair::ObjectNotFoundException {
64 public:
68 FlightDateNotFoundException (const std::string& iWhat)
69 : stdair::ObjectNotFoundException (iWhat) {}
70 };
71
75 class FlightTimeNotFoundException : public stdair::ObjectNotFoundException {
76 public:
80 FlightTimeNotFoundException (const std::string& iWhat)
81 : stdair::ObjectNotFoundException (iWhat) {}
82 };
83
87 class FeaturesNotFoundException : public stdair::ObjectNotFoundException {
88 public:
92 FeaturesNotFoundException (const std::string& iWhat)
93 : stdair::ObjectNotFoundException (iWhat) {}
94 };
95
99 class AirlineNotFoundException : public stdair::ObjectNotFoundException {
100 public:
104 AirlineNotFoundException (const std::string& iWhat)
105 : stdair::ObjectNotFoundException (iWhat) {}
106 };
107
111 class FareInputFileNotFoundException : public stdair::FileNotFoundException {
112 public:
116 FareInputFileNotFoundException (const std::string& iWhat)
117 : stdair::FileNotFoundException (iWhat) {}
118 };
119
123 class QuotingException : public stdair::RootException {
124 };
125
126 // ///////// Files ///////////
130 class FareFilePath : public stdair::InputFilePath {
131 public:
135 explicit FareFilePath (const stdair::Filename_T& iFilename)
136 : stdair::InputFilePath (iFilename) {}
137 };
138
139 // //////// Type definitions specific to SimFQT /////////
143 typedef unsigned int FareQuoteID_T;
144
148 typedef boost::shared_ptr<SIMFQT_Service> SIMFQT_ServicePtr_T;
149}
150#endif // __SIMFQT_SIMFQT_TYPES_HPP
AirlineNotFoundException(const std::string &iWhat)
AirportPairNotFoundException(const std::string &iWhat)
FareFileParsingFailedException(const std::string &iWhat)
FareFilePath(const stdair::Filename_T &iFilename)
FareInputFileNotFoundException(const std::string &iWhat)
FeaturesNotFoundException(const std::string &iWhat)
FlightDateNotFoundException(const std::string &iWhat)
FlightTimeNotFoundException(const std::string &iWhat)
PosOrChannelNotFoundException(const std::string &iWhat)
unsigned int FareQuoteID_T
boost::shared_ptr< SIMFQT_Service > SIMFQT_ServicePtr_T
Forward declarations.