TSDuck v3.40-4033
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 >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM>
 NameValue (const UChar *n, INTENUM v)
 Constructor.
 
template<typename INTENUM >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM>
 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 >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM>
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 >
requires std::integral<INTENUM> || std::is_enum_v<INTENUM>
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: