TSDuck v3.38-3696
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsNamesFile.h File Reference

Representation of a ".names" file, containing names for identifiers. More...

Classes

struct  ts::EnableBitMaskOperators< ts::NamesFlags >
 Template specialization on type ts::NamesFlags
More...
 
class  ts::NamesFile
 Representation of a ".names" file, containing names for identifiers. More...
 
class  ts::NamesFile::RegisterExtensionFile
 A class to register additional names files to merge with the TSDuck names file. More...
 

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Macros

#define TS_REGISTER_NAMES_FILE(filename)
 Registration of an extension names file inside the ts::PSIRepository singleton.
 

Enumerations

enum class  ts::NamesFlags : uint16_t {
  ts::NamesFlags::NAME = 0x0000 ,
  ts::NamesFlags::VALUE = 0x0001 ,
  ts::NamesFlags::FIRST = 0x0002 ,
  ts::NamesFlags::HEXA = 0x0004 ,
  ts::NamesFlags::DECIMAL = 0x0008 ,
  ts::NamesFlags::BOTH = HEXA | DECIMAL ,
  ts::NamesFlags::HEXA_FIRST = FIRST | HEXA ,
  ts::NamesFlags::DECIMAL_FIRST = FIRST | DECIMAL ,
  ts::NamesFlags::BOTH_FIRST = FIRST | HEXA | DECIMAL ,
  ts::NamesFlags::ALTERNATE = 0x0010 ,
  ts::NamesFlags::NAME_OR_VALUE = 0x0020
}
 Flags to be used in the formating of names in NamesFile. More...
 

Functions

template<typename INT , typename std::enable_if< std::is_integral< INT >::value||std::is_enum< INT >::value, int >::type = 0>
UString ts::NameFromDTV (const UString &sectionName, INT value, NamesFlags flags=NamesFlags::NAME, size_t bits=0, INT alternateValue=static_cast< INT >(0))
 Get a name from a specified section in the DTV names file.
 
template<typename INT , typename std::enable_if< std::is_integral< INT >::value||std::is_enum< INT >::value, int >::type = 0>
UString ts::NameFromDTVWithFallback (const UString &sectionName, INT value1, INT value2, NamesFlags flags=NamesFlags::NAME, size_t bits=0, INT alternateValue=static_cast< INT >(0))
 Get a name from a specified section in the DTV names file, with alternate fallback value.
 
UString ts::NameFromOUI (uint32_t oui, NamesFlags flags=NamesFlags::NAME)
 Get the name of an OUI (IEEE-assigned Organizationally Unique Identifier), 24 bits.
 

Detailed Description

Representation of a ".names" file, containing names for identifiers.

Macro Definition Documentation

◆ TS_REGISTER_NAMES_FILE

#define TS_REGISTER_NAMES_FILE (   filename)

Registration of an extension names file inside the ts::PSIRepository singleton.

This macro is typically used in the .cpp file of a TSDuck extension.