TSDuck v3.40-4133
MPEG Transport Stream Toolkit
|
Information about version identification of TSDuck. More...
#include <tsVersionInfo.h>
Classes | |
class | RegisterFeature |
A class to register a feature of the application. More... | |
Public Types | |
enum class | Format { ALL , SHORT , LONG , INTEGER , DATE } |
Types of version formatting, for predefined option --version. More... | |
Public Member Functions | |
VersionInfo (Report &report) | |
Default constructor. | |
virtual | ~VersionInfo () override |
Destructor. | |
void | startNewVersionDetection () |
Start a thread which checks the availability of a new TSDuck version. | |
Static Public Member Functions | |
static int | CompareVersions (const UString &v1, const UString &v2) |
Compare two version strings. | |
static const Names & | FormatEnum () |
Enumeration description of class Format. | |
static UString | GetVersion (Format format=Format::SHORT, const UString &applicationName=UString()) |
Get the TSDuck formatted version number. | |
static const Names & | SupportEnum () |
Enumeration of supported features. | |
Information about version identification of TSDuck.
|
strong |
Types of version formatting, for predefined option --version.
Enumerator | |
---|---|
ALL | Multi-line output with full details. |
SHORT | Short format X.Y-R. |
LONG | Full explanatory format. |
INTEGER | Integer format XXYYRRRRR. |
DATE | Build date. |
ts::VersionInfo::VersionInfo | ( | Report & | report | ) |
Default constructor.
[in,out] | report | Reference to the report object through which new versions will be reported. |
void ts::VersionInfo::startNewVersionDetection | ( | ) |
Start a thread which checks the availability of a new TSDuck version.
If a new version is found, it is reported through the Report object that was specified in the constructor. This can be done only once, further calls are ignored. The destructor of this object waits for the completion of the thread.
If the environment variable TSDUCK_NO_VERSION_CHECK is not empty, do not start the new version check. To debug new version checking, define the environment variable TS_DEBUG_NEW_VERSION to any non-empty value; debug and errors messages will be reported through the same Report object.
|
inlinestatic |
Enumeration description of class Format.
Typically used to implement the --version command line option.
|
inlinestatic |
Enumeration of supported features.
Typically used to implement the --support command line option. For each name, the value is 1 if the feature is supported and 0 if it is not.
|
static |
Get the TSDuck formatted version number.
[in] | format | Type of output, short by default. |
[in] | applicationName | Name of the application to prepend to the long format. |
Compare two version strings.
[in] | v1 | First version string. |
[in] | v2 | First version string. |