AirSched Logo  0.1.4
C++ Simulated Airline Schedule Manager Library
AIRSCHED_Types.hpp
Go to the documentation of this file.
00001 #ifndef __AIRSCHED_AIRSCHED_TYPES_HPP
00002 #define __AIRSCHED_AIRSCHED_TYPES_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // Boost
00008 #include <boost/shared_ptr.hpp>
00009 // StdAir
00010 #include <stdair/stdair_exceptions.hpp>
00011 
00012 namespace AIRSCHED {
00013 
00014   // Forward declarations
00015   class AIRSCHED_Service;
00016 
00017 
00018   // ///////// Exceptions ///////////
00023   class SegmentDateNotFoundException : public stdair::ParserException {
00024   public:
00028     SegmentDateNotFoundException (const std::string& iWhat)
00029       : stdair::ParserException (iWhat) {}
00030   };
00031 
00035   class OnDInputFileNotFoundException : public stdair::FileNotFoundException {
00036   public:
00040     OnDInputFileNotFoundException (const std::string& iWhat)
00041       : stdair::FileNotFoundException (iWhat) {}
00042   };
00043 
00047   class ScheduleInputFileNotFoundException
00048     : public stdair::FileNotFoundException {
00049   public:
00053     ScheduleInputFileNotFoundException (const std::string& iWhat)
00054       : stdair::FileNotFoundException (iWhat) {}
00055   };
00056 
00057 
00058   // //////// Type definitions specific to AirSched /////////
00062   typedef boost::shared_ptr<AIRSCHED_Service> AIRSCHED_ServicePtr_T;
00063   
00064 }
00065 #endif // __AIRSCHED_AIRSCHED_TYPES_HPP