00001 #ifndef ROUTINGLUMPLOADER_H_ 00002 #define ROUTINGLUMPLOADER_H_ 00003 00004 #include "RoutingLump.h" 00005 #include <string> 00006 #include "iarchive.h" 00007 00008 namespace routing 00009 { 00010 class RoutingLumpLoader 00011 { 00012 private: 00013 // the loaded routing data 00014 routing::RoutingLump _routingLump; 00015 00016 void loadRoutingLump (ArchiveFile& file); 00017 00018 public: 00019 RoutingLumpLoader (); 00020 00021 // loads the routing lump for the given bsp file 00022 void loadRouting(const std::string& bspFileName); 00023 00024 virtual ~RoutingLumpLoader (); 00025 00026 // returns the loaded routing lump 00027 routing::RoutingLump& getRoutingLump (); 00028 }; 00029 } 00030 #endif /* ROUTINGLUMPLOADER_H_ */