32 #include <casacore/casa/aips.h> 101 DynLib (
const std::string& library,
102 const std::string& prefix=std::string(),
103 const std::string& funcName=std::string(),
104 bool closeOnDestruction=
True);
110 DynLib (
const std::string& library,
111 Bool closeOnDestruction,
112 const std::string& prefix=
"lib",
114 const std::string& suffix=
".dylib");
116 const std::string& suffix=
".so");
139 void*
getFunc (
const std::string& funcName);
151 void open (
const std::string& name);
158 const std::string& prefix);
void open(const std::string &name)
Open (load)the dynamic library.
const std::string & getError() const
Get the possible error.
DynLib(const std::string &library, const std::string &prefix=std::string(), const std::string &funcName=std::string(), bool closeOnDestruction=True)
Load the dynamic library.
Class to handle loading of dynamic libraries.
std::string tryCasacorePath(const std::string &library, const std::string &prefix)
Try if the library can be opened using CASACORE_LDPATH.
void * getHandle() const
Get the dynamic library handle.
void * getFunc(const std::string &funcName)
Get a pointer to a function in the dynamic library.
bool Bool
Define the standard types used by Casacore.
void close()
Close (unload) the dynamic library (if opened).
~DynLib()
Close the dynamic library if told so in the constructor.
this file contains all the compiler specific defines