00001 00013 #ifndef STATIONDB_H_INCLUDED 00014 #define STATIONDB_H_INCLUDED 00015 00016 #include "StationHandler.h" 00017 #include "LineHandler.h" 00018 #include <boost/noncopyable.hpp> 00019 00021 00026 class StationsDB : boost::noncopyable 00027 { 00028 StationHandler stationHandler_; 00029 LineHandler lineHandler_; 00030 00031 public: 00032 StationHandler& getStationHandler(); 00033 const StationHandler& getStationHandler() const; 00034 LineHandler& getLineHandler(); 00035 const LineHandler& getLineHandler() const; 00036 }; 00037 00038 00039 inline StationHandler& StationsDB::getStationHandler() 00040 { 00041 return stationHandler_; 00042 } 00043 00044 inline const StationHandler& StationsDB::getStationHandler() const 00045 { 00046 return stationHandler_; 00047 } 00048 00049 inline LineHandler& StationsDB::getLineHandler() 00050 { 00051 return lineHandler_; 00052 } 00053 00054 inline const LineHandler& StationsDB::getLineHandler() const 00055 { 00056 return lineHandler_; 00057 } 00058 00059 #endif // STATIONDB_H_INCLUDED