CMS 3D CMS Logo

Public Member Functions

ora::SharedLibraryName Struct Reference

#include <SharedLibraryName.h>

List of all members.

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 getHLTPrescaleColumns::path.

                                                                 {
#ifdef _WIN32
      return boost::filesystem::path(name + ".dll");
#elif defined __DARWIN
      return boost::filesystem::path("lib" + name + ".dylib");
#elif defined __hpux
      return boost::filesystem::path("lib" + name + ".sl");
#else
      return boost::filesystem::path("lib" + name + ".so");
#endif
    }