TSDuck v3.46-4965
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::UString::RegisterChronoUnit Class Reference

#include <tsUString.h>

Public Member Functions

 RegisterChronoUnit (std::intmax_t num, std::intmax_t den, const UChar *sname, const UChar *lname=nullptr, const UChar *pname=nullptr)

Detailed Description

A class to register new std::chrono::duration units. The registration is performed using constructors. Thus, it is possible to perform a registration in a source file, outside any code.

See also
TS_REGISTER_CHRONO_UNIT

Constructor & Destructor Documentation

◆ RegisterChronoUnit()

ts::UString::RegisterChronoUnit::RegisterChronoUnit ( std::intmax_t num,
std::intmax_t den,
const UChar * sname,
const UChar * lname = nullptr,
const UChar * pname = nullptr )

The constructor registers a new std::chrono::duration unit name.

Parameters
[in]numRatio numerator.
[in]denRatio denominator.
[in]snameThe short name to assign to the corresponding std::chrono::duration type.
[in]lnameThe long name to assign to the corresponding std::chrono::duration type. Default: same as lname.
[in]pnameThe plural form of long name. Default: add "s" to lname.

The documentation for this class was generated from the following file: