CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
cond::SharedLibraryName Struct Reference

#include <SharedLibraryName.h>

Public Member Functions

const boost::filesystem::path operator() (const std::string &name)
 

Detailed Description

Utility functor. Return a shared library name that follows the system conventions for naming shared library. name is the basic name of the shared library, without the name prefix ("lib" on unix) or the extension (".so", ".sl", ".dylib" or ".dll"). name must not have any directory components.

Definition at line 12 of file SharedLibraryName.h.

Member Function Documentation

const boost::filesystem::path cond::SharedLibraryName::operator() ( const std::string &  name)
inline

Definition at line 13 of file SharedLibraryName.h.

References path().

13  {
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  }
int path() const
Definition: HLTadd.h:3