00001 00021 #ifndef OBJECT_DATABASE_CONFIG_H_ 00022 #define OBJECT_DATABASE_CONFIG_H_ 00023 00024 #include <boost/filesystem.hpp> 00025 #include <string> 00026 #include "typedef.h" 00027 00028 namespace object_database { 00029 namespace fs = boost::filesystem; 00030 class ObjectDatabaseConfig { 00031 typedef boost::shared_ptr<ObjectDatabaseConfig> ObjectDatabaseConfigPtr; 00032 public: 00037 ObjectDatabaseConfig(const fs::path configFile = fs::path()); 00038 00039 // dtor 00040 virtual ~ObjectDatabaseConfig() { } 00041 00047 bool read(const fs::path config_file); 00048 00052 const ObjectDatabaseRecognizerPtrMap getObjectCategories(); 00053 00059 const ObjectDatabaseRecognizerPtr getRecognizer(const std::string recognizerName); 00060 private: 00064 ObjectDatabaseRecognizerPtrMap mObjectCategories; 00065 }; 00066 } 00067 00068 #endif /* OBJECT_DATABASE_CONFIG_H_ */