$treeview $search $mathjax
00001 #ifndef __AIRRAC_AIRRAC_TYPES_HPP 00002 #define __AIRRAC_AIRRAC_TYPES_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <vector> 00009 #include <string> 00010 // Boost 00011 #include <boost/shared_ptr.hpp> 00012 // StdAir 00013 #include <stdair/stdair_exceptions.hpp> 00014 #include <stdair/stdair_file.hpp> 00015 00016 namespace AIRRAC { 00017 00018 // ///////// Exceptions /////////// 00019 class AirportPairNotFoundException : public stdair::ObjectNotFoundException { 00020 public: 00022 AirportPairNotFoundException (const std::string& iWhat) 00023 : stdair::ObjectNotFoundException (iWhat) {} 00024 }; 00025 00026 class PosOrChannelNotFoundException : public stdair::ObjectNotFoundException { 00027 public: 00029 PosOrChannelNotFoundException (const std::string& iWhat) 00030 : stdair::ObjectNotFoundException (iWhat) {} 00031 }; 00032 00033 class FlightDateNotFoundException : public stdair::ObjectNotFoundException { 00034 public: 00036 FlightDateNotFoundException (const std::string& iWhat) 00037 : stdair::ObjectNotFoundException (iWhat) {} 00038 }; 00039 00040 class FlightTimeNotFoundException : public stdair::ObjectNotFoundException { 00041 public: 00043 FlightTimeNotFoundException (const std::string& iWhat) 00044 : stdair::ObjectNotFoundException (iWhat) {} 00045 }; 00046 00047 class FeaturesNotFoundException : public stdair::ObjectNotFoundException { 00048 public: 00050 FeaturesNotFoundException (const std::string& iWhat) 00051 : stdair::ObjectNotFoundException (iWhat) {} 00052 }; 00053 00054 class AirlineNotFoundException : public stdair::ObjectNotFoundException { 00055 public: 00057 AirlineNotFoundException (const std::string& iWhat) 00058 : stdair::ObjectNotFoundException (iWhat) {} 00059 }; 00060 00061 class YieldInputFileNotFoundException : public stdair::FileNotFoundException { 00062 public: 00064 YieldInputFileNotFoundException (const std::string& iWhat) 00065 : stdair::FileNotFoundException (iWhat) {} 00066 }; 00067 00068 class YieldFileParsingFailedException : public stdair::ParsingFileFailedException { 00069 public: 00071 YieldFileParsingFailedException (const std::string& iWhat) 00072 : stdair::ParsingFileFailedException (iWhat) {} 00073 }; 00074 00075 class QuotingException : public stdair::RootException { 00076 }; 00077 00078 // ///////// Files /////////// 00082 class YieldFilePath : public stdair::InputFilePath { 00083 public: 00087 explicit YieldFilePath (const stdair::Filename_T& iFilename) 00088 : stdair::InputFilePath (iFilename) {} 00089 }; 00090 00091 // //////// Type definitions specific to AirRAC ///////// 00095 class AIRRAC_Service; 00096 typedef boost::shared_ptr<AIRRAC_Service> AIRRAC_ServicePtr_T; 00097 00098 00102 typedef unsigned int YieldID_T; 00103 } 00104 #endif // __AIRRAC_AIRRAC_TYPES_HPP 00105