![]() |
IDS peak genericC++
v1.5.0
|
A collection of global library functions. More...
#include <peak/library/peak_library.hpp>
Static Public Member Functions | |
| static core::Version | Version () |
| Returns the library version. More... | |
Initialize / Close Library | |
| static void | Initialize () |
| Initializes the IDS peak API library. More... | |
| static void | Close () |
| Closes the IDS peak API library and cleans up any resources that are still in use. More... | |
A collection of global library functions.
Currently, this includes Library::Initialize() / Library::Close(), which must be called before/after usage of the library, and Library::Version(), to retrieve version information about the the library.
|
inlinestatic |
Closes the IDS peak API library and cleans up any resources that are still in use.
This function should be called after no function of the library is needed anymore, before unloading the library. It cleans up any resources still in use. If an DeviceManager::Update is in progress, the update will finish before the library is closed.
| std::runtime_error | when dynamic loading is active and and error occured during loading the dynamic library. |
|
inlinestatic |
Initializes the IDS peak API library.
This function must be called prior to any other function call to allow global initialization of library internals. This function is necessary since automated initialization functionality like within DllMain on MS Windows platforms is very limited.
Calling this function multiple times is ok, but note that these calls are reference counted, so you have to call Close() as many times as Initialize().
| std::runtime_error | when dynamic loading is active and and error occured during loading the dynamic library. |
|
inlinestatic |
Returns the library version.
| std::runtime_error | when dynamic loading is active and and error occured during loading the dynamic library. |