![]() |
TSDuck v3.43-4426
MPEG Transport Stream Toolkit
|
A class to register a feature of the application. More...
#include <tsFeatures.h>
Public Member Functions | |
Register (const UString &option, const fs::path &library) | |
Register a feature which is in another shared image. | |
Register (const UString &option, const UString &name, Support support, GetVersionFunc get_version) | |
Register a feature. | |
A class to register a feature of the application.
The registration is performed using constructors. Thus, it is possible to perform a registration in the declaration of a static object.
|
inline |
Register a feature.
[in] | option | Feature name as used in command line options. |
[in] | name | Feature name as used on display. |
[in] | support | Level of support. |
[in] | get_version | Function returning the version of the feature. Can be null (no identified version). |
|
inline |
Register a feature which is in another shared image.
If a feature with the same option name is already registered, do nothing. Otherwise, the library name is stored for later usage. The first time the feature is searched, the shared library is loaded. If the load succeeds and the initialization of the shared image registered a feature with the same name, the feature becomes defined. Otherwise, the feature is definitely marked as unsupported.
[in] | option | Feature name as used in command line options. |
[in] | library | Name of a shared image (typically without directory). |