CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SharedLibraryName.h
Go to the documentation of this file.
1 #ifndef CondCore_DBCommon_SharedLibraryName_h
2 #define CondCore_DBCommon_SharedLibraryName_h
3 #include <string>
4 #include <boost/filesystem/path.hpp>
5 namespace cond{
13  const boost::filesystem::path operator () (const std::string &name){
14 #ifdef _WIN32
15  return boost::filesystem::path(name + ".dll");
16 #elif defined __DARWIN
17  return boost::filesystem::path("lib" + name + ".dylib");
18 #elif defined __hpux
19  return boost::filesystem::path("lib" + name + ".sl");
20 #else
21  return boost::filesystem::path("lib" + name + ".so");
22 #endif
23  }
24  };
25 }
26 #endif
int path() const
Definition: HLTadd.h:3
const boost::filesystem::path operator()(const std::string &name)