CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ora::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 13 of file SharedLibraryName.h.

Member Function Documentation

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

Definition at line 14 of file SharedLibraryName.h.

References scaleCards::path.

14  {
15 #ifdef _WIN32
16  return boost::filesystem::path(name + ".dll");
17 #elif defined __DARWIN
18  return boost::filesystem::path("lib" + name + ".dylib");
19 #elif defined __hpux
20  return boost::filesystem::path("lib" + name + ".sl");
21 #else
22  return boost::filesystem::path("lib" + name + ".so");
23 #endif
24  }
list path
Definition: scaleCards.py:51