CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CondCore/DBCommon/interface/SharedLibraryName.h

Go to the documentation of this file.
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