Namespace for helpers and utilities, which are not directly related to image processing. More...
Namespaces | |
| namespace | SystemInfo |
| Namespace for helper functions related to system or CVB installation information. | |
Classes | |
| class | LicenseInfo |
| Information about CVB licenses. More... | |
| class | MagicNumberEntry |
| A single Magic Number entry. More... | |
| class | RateCounter |
| Frame rate measurement counter with selectable averaging window. More... | |
| class | StopWatch |
| Speed measurement object. More... | |
Typedefs | |
| using | StopWatchPtr = std::shared_ptr<StopWatch> |
| Convenience shared pointer for StopWatch. | |
| using | RateCounterPtr = std::shared_ptr<RateCounter> |
| Convenience shared pointer for RateCounter. | |
Enumerations | |
| enum class | StopWatchMode { MultiCPU , SingleCPU } |
| Mode at which the StopWatch should work. More... | |
Functions | |
| String | HeaderVersion () noexcept |
| Returns the version of these headers. | |
| String | VersionBuild () noexcept |
| Gets the CVB version this header set was build/validated with. | |
| String | VersionMin () noexcept |
| Gets the minimum CVB required for these headers. | |
| String | DataPath () |
| Directory where Common Vision Blox stores its settings. | |
| String | ExpandPath (const String &path) |
| Expands a path containing an environment variable. | |
| std::vector< LicenseInfo > | GetLicenseInfo () |
| Get information about available licenses. | |
| std::vector< MagicNumberEntry > | GetMagicNumberEntries () |
| Query the set of currently available Magic Numbers. | |
| String | InstallPath () |
| Directory Common Vision Blox has been installed to. | |
| template<class Rep, class Period> | |
| WaitStatus | WaitForLicense (const std::chrono::duration< Rep, Period > &timeSpan) noexcept |
| Wait for a given time for the license to become available. | |
Namespace for helpers and utilities, which are not directly related to image processing.
|
strong |
Mode at which the StopWatch should work.
| Enumerator | |
|---|---|
| MultiCPU | The StopWatch works safe in multi-CPU environments. For that, some degree of accuracy is lost, because under Windows the timers, that are safe to use on a multi-CPU system, are limited to 1 ms granularity. |
| SingleCPU | The StopWatch works with a granularity of less than 1 ms (basically with what the Windows SDK function QueryPerformanceFrequency returns). However, a time generated with this mode will not be safe to use in a multi-CPU (not multi-core!) environment because, a thread may travel between CPUs and the timers are not synchronized between CPUs. |
|
inline |
Directory where Common Vision Blox stores its settings.
| Any | exception derived from std::exception including CvbException. |
Expands a path containing an environment variable.
| [in] | path | Path with environment variable in windows notation. |
| Any | exception derived from std::exception including CvbException. |
|
inline |
Get information about available licenses.
| Any | exception derived from std::exception including CvbException. |
In theory, the collection of available licenses can change any time. However, it is fairly unlikely that during runtime someone unplugs a dongle or removes a Node Locked license, so Common Vision Blox does not implement a costly push/event model for notifying clients during runtime about the presence of new licenses or the loss of a license. Instead, the license information can and needs to be queried using this method.
|
inline |
Query the set of currently available Magic Numbers.
| Any | exception derived from std::exception including CvbException. |
In theory, the collection of available Magic Numbers can change any time. However, it is fairly unlikely that during runtime someone unplugs a dongle or removes a Node Locked license, so Common Vision Blox does not implement a costly push/event model for notifying clients during runtime about the presence of new Magic Numbers or the loss of a Magic Number. Instead, the Magic Number information can and needs to be queried using this method.
|
inlinenoexcept |
|
inline |
Directory Common Vision Blox has been installed to.
| Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Gets the CVB version this header set was build/validated with.
| Does | not throw any exception. |
Usually this is the same as VersionMin(), except for nightlys that are build against the next upcomming CVB version.
|
inlinenoexcept |
Gets the minimum CVB required for these headers.
| Does | not throw any exception. |
Even older versions might work in for a subset.
|
inlinenoexcept |
Wait for a given time for the license to become available.
| [in] | timeSpan | Time to wait for license. |
| Does | not throw any exception. |
This is useful if your application is automatically started after the operating system. E.g. the license service might not be up and running yet. So your application will start without a license. By calling this function you can make sure your application sees a valid license before actually requiring it.