#include <SharedLibraryName.h>
Public Member Functions | |
const boost::filesystem::path | operator() (const std::string &name) |
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.
const boost::filesystem::path ora::SharedLibraryName::operator() | ( | const std::string & | name | ) | [inline] |
Definition at line 14 of file SharedLibraryName.h.
References scaleCards::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 }