00001 #ifndef CondCore_DBCommon_SharedLibraryName_h 00002 #define CondCore_DBCommon_SharedLibraryName_h 00003 #include <string> 00004 #include <boost/filesystem/path.hpp> 00005 namespace cond{ 00012 struct SharedLibraryName{ 00013 const boost::filesystem::path operator () (const std::string &name){ 00014 #ifdef _WIN32 00015 return boost::filesystem::path(name + ".dll"); 00016 #elif defined __DARWIN 00017 return boost::filesystem::path("lib" + name + ".dylib"); 00018 #elif defined __hpux 00019 return boost::filesystem::path("lib" + name + ".sl"); 00020 #else 00021 return boost::filesystem::path("lib" + name + ".so"); 00022 #endif 00023 } 00024 }; 00025 } 00026 #endif