00001 #ifndef OBJY_PATH_FORMATER_H 00002 #define OBJY_PATH_FORMATER_H 00003 00004 #include <string> 00005 #include <vector> 00006 00007 namespace Anaphe { 00008 namespace AIDA_ObjectivityStore { 00009 00010 class ObjyPathFormater 00011 { 00012 public: 00013 static const ObjyPathFormater& theFormater(); 00014 00015 protected: 00016 ObjyPathFormater() {}; 00017 ObjyPathFormater( const ObjyPathFormater&); 00018 ObjyPathFormater& operator=( const ObjyPathFormater&); 00019 00020 public: 00021 ~ObjyPathFormater(){}; 00022 00023 // Decomposes a path 00024 std::vector< std::string > formPathNames( const std::string& path ) const; 00025 00026 // Form the absolute path 00027 std::string formAbsolutePath( const std::string& path ) const; 00028 }; 00029 00030 } 00031 } 00032 00033 #include "ObjyPathFormater.inl" 00034 00035 #endif