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

A structure used in the constructor of an Enumeration. More...

#include <tsEnumeration.h>

Collaboration diagram for ts::Enumeration::NameValue:

Public Member Functions

template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >::value||std::is_enum< INTENUM >::value >::type * = nullptr>
 NameValue (const UChar *n, INTENUM v)
 Constructor.
 
template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >::value||std::is_enum< INTENUM >::value >::type * = nullptr>
 NameValue (const UString &n, INTENUM v)
 Constructor.
 

Public Attributes

UString name {}
 Name for the value.
 
int_t value = 0
 Value for the name.
 

Detailed Description

A structure used in the constructor of an Enumeration.

Constructor & Destructor Documentation

◆ NameValue() [1/2]

template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >::value||std::is_enum< INTENUM >::value >::type * = nullptr>
ts::Enumeration::NameValue::NameValue ( const UString n,
INTENUM  v 
)
inline

Constructor.

Template Parameters
INTENUMAn integer or enumeration type representing the values.
Parameters
nName for the value.
vValue for the name.

◆ NameValue() [2/2]

template<typename INTENUM , typename std::enable_if< std::is_integral< INTENUM >::value||std::is_enum< INTENUM >::value >::type * = nullptr>
ts::Enumeration::NameValue::NameValue ( const UChar n,
INTENUM  v 
)
inline

Constructor.

Template Parameters
INTENUMAn integer or enumeration type representing the values.
Parameters
nName for the value.
vValue for the name.

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