TSDuck v3.40-4033
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...
 
class  ts::NamesFile::Visitor
 A visitor interface class to be implemented by applications needing ranges of values. 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 ,
  ts::NamesFlags::NO_UNKNOWN = 0x0040
}
 Flags to be used in the formating of names in NamesFile. More...
 

Functions

template<typename INT >
requires ts::int_enum<INT>
UString ts::NameFromDTV (const UString &section_name, INT value, NamesFlags flags=NamesFlags::NAME, INT alternate_value=static_cast< INT >(0))
 Get a name from a specified section in the DTV names file.
 
template<typename INT >
requires ts::int_enum<INT>
UString ts::NameFromDTVWithFallback (const UString &section_name, INT value1, INT value2, NamesFlags flags=NamesFlags::NAME, INT alternate_value=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.

Parameters
filenameName of a .names file. If the name does not include a directory, the file is searched in the default configuration directories of TSDuck.
See also
SearchConfigurationFile()