TSDuck v3.40-4120
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::Names::NameValue Struct Reference

A structure used in the constructor of a Names instance. More...

#include <tsNames.h>

Collaboration diagram for ts::Names::NameValue:

Public Member Functions

template<typename T >
requires ts::int_enum<T>
 NameValue (const UChar *n, T v)
 Constructor.
 
template<typename T1 , typename T2 >
requires ts::int_enum<T1> && ts::int_enum<T2>
 NameValue (const UChar *n, T1 f, T2 l)
 Constructor.
 
template<typename T >
requires ts::int_enum<T>
 NameValue (const UString &n, T v)
 Constructor.
 
template<typename T1 , typename T2 >
requires ts::int_enum<T1> && ts::int_enum<T2>
 NameValue (const UString &n, T1 f, T2 l)
 Constructor.
 

Public Attributes

const uint_t first
 First value for the name, in unsigned form.
 
const uint_t last
 Last value for the name, in unsigned form.
 
const UString name
 Name for the value.
 
const bool neg_first
 First value was set from a negative value of a signed type.
 
const bool neg_last
 Last value was set from a negative value of a signed type.
 

Detailed Description

A structure used in the constructor of a Names instance.

Constructor & Destructor Documentation

◆ NameValue() [1/4]

template<typename T >
requires ts::int_enum<T>
ts::Names::NameValue::NameValue ( const UString n,
v 
)
inline

Constructor.

Parameters
[in]nName for the value.
[in]vUnique value for the name.

◆ NameValue() [2/4]

template<typename T >
requires ts::int_enum<T>
ts::Names::NameValue::NameValue ( const UChar n,
v 
)
inline

Constructor.

Parameters
[in]nName for the value.
[in]vUnique value for the name.

◆ NameValue() [3/4]

template<typename T1 , typename T2 >
requires ts::int_enum<T1> && ts::int_enum<T2>
ts::Names::NameValue::NameValue ( const UString n,
T1  f,
T2  l 
)
inline

Constructor.

Parameters
[in]nName for the value.
[in]fFirst value for the name.
[in]lLast value for the name.

◆ NameValue() [4/4]

template<typename T1 , typename T2 >
requires ts::int_enum<T1> && ts::int_enum<T2>
ts::Names::NameValue::NameValue ( const UChar n,
T1  f,
T2  l 
)
inline

Constructor.

Parameters
[in]nName for the value.
[in]fFirst value for the name.
[in]lLast value for the name.

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