TSDuck v3.40-4120
MPEG Transport Stream Toolkit
|
A class to register a feature of the application. More...
#include <tsVersionInfo.h>
Public Types | |
using | GetVersionFunc = UString(*)() |
Profile of a function return a version string. | |
enum | Support { ALWAYS , SUPPORTED , UNSUPPORTED } |
Describe the level of support for a feature. More... | |
Public Member Functions | |
RegisterFeature (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.
ts::VersionInfo::RegisterFeature::RegisterFeature | ( | const UString & | option, |
const UString & | name, | ||
Support | support, | ||
GetVersionFunc | get_version | ||
) |
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). |