MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
DTVModulation Class Reference

#include <dtvconfparserhelpers.h>

Inheritance diagram for DTVModulation:
Inheritance graph
[legend]
Collaboration diagram for DTVModulation:
Collaboration graph
[legend]

Public Types

enum  Types {
  kModulationQPSK, kModulationQAM16, kModulationQAM32, kModulationQAM64,
  kModulationQAM128, kModulationQAM256, kModulationQAMAuto, kModulation8VSB,
  kModulation16VSB, kModulation8PSK, kModulation16APSK, kModulation32APSK,
  kModulationDQPSK, kModulationInvalid = 0x100, kModulationAnalog = 0x200
}
 

Public Member Functions

 DTVModulation (Types _default=kModulationQAMAuto)
 
DTVModulationoperator= (const Types _value)
 
DTVModulationoperator= (const fe_modulation_t modulation)
 
bool IsCompatible (const DTVModulation &other) const
 
bool ParseConf (const QString &_value)
 
bool ParseVDR (const QString &_value)
 
bool Parse (const QString &_value)
 
QString toString () const
 
- Public Member Functions inherited from DTVParamHelper
 DTVParamHelper (int _value)
 
DTVParamHelperoperator= (int _value)
 
 operator int () const
 
bool operator== (const int &v) const
 
bool operator!= (const int &v) const
 

Static Public Member Functions

static QString toString (int _value)
 

Static Protected Attributes

static const DTVParamHelperStruct s_confTable []
 
static const DTVParamHelperStruct s_vdrTable []
 
static const DTVParamHelperStruct s_parseTable []
 
static const uint kDBStrCnt = 13
 
static const char * s_dbStr [kDBStrCnt]
 

Additional Inherited Members

- Static Protected Member Functions inherited from DTVParamHelper
static bool ParseParam (const QString &symbol, int &value, const DTVParamHelperStruct *table)
 
static QString toString (const char *strings[], int index, uint strings_size)
 
- Protected Attributes inherited from DTVParamHelper
int value
 

Detailed Description

Definition at line 321 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kModulationQPSK 
kModulationQAM16 
kModulationQAM32 
kModulationQAM64 
kModulationQAM128 
kModulationQAM256 
kModulationQAMAuto 
kModulation8VSB 
kModulation16VSB 
kModulation8PSK 
kModulation16APSK 
kModulation32APSK 
kModulationDQPSK 
kModulationInvalid 
kModulationAnalog 

Definition at line 331 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVModulation()

DTVModulation::DTVModulation ( Types  _default = kModulationQAMAuto)
inlineexplicit

Definition at line 355 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

DTVModulation& DTVModulation::operator= ( const Types  _value)
inline

Definition at line 357 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVModulation& DTVModulation::operator= ( const fe_modulation_t  modulation)
inline

Definition at line 360 of file dtvconfparserhelpers.h.

◆ IsCompatible()

bool DTVModulation::IsCompatible ( const DTVModulation other) const
inline

Definition at line 364 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

bool DTVModulation::ParseConf ( const QString &  _value)
inline

Definition at line 369 of file dtvconfparserhelpers.h.

◆ ParseVDR()

bool DTVModulation::ParseVDR ( const QString &  _value)
inline

Definition at line 371 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

bool DTVModulation::Parse ( const QString &  _value)
inline

◆ toString() [1/2]

QString DTVModulation::toString ( void  ) const
inline

◆ toString() [2/2]

static QString DTVModulation::toString ( int  _value)
inlinestatic

Definition at line 378 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVModulation::s_confTable
staticprotected
Initial value:
=
{
{ "QAM_AUTO", kModulationQAMAuto },
{ "QAM_16", kModulationQAM16 },
{ "QAM_32", kModulationQAM32 },
{ "QAM_64", kModulationQAM64 },
{ "QAM_128", kModulationQAM128 },
{ "QAM_256", kModulationQAM256 },
{ "QPSK", kModulationQPSK },
{ "8VSB", kModulation8VSB },
{ "16VSB", kModulation16VSB },
{ "8PSK", kModulation8PSK },
{ "16APSK", kModulation16APSK },
{ "32APSK", kModulation32APSK },
{ "DQPSK", kModulationDQPSK },
{ "16PSK", kModulationInvalid },
{ "2VSB", kModulationInvalid },
{ "4VSB", kModulationInvalid },
{ "BPSK", kModulationInvalid },
{ "analog", kModulationAnalog },
{ nullptr, kModulationQAMAuto },
}

Definition at line 324 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

const DTVParamHelperStruct DTVModulation::s_vdrTable
staticprotected
Initial value:
=
{
{ "998", kModulationQAMAuto },
{ "16", kModulationQAM16 },
{ "32", kModulationQAM32 },
{ "64", kModulationQAM64 },
{ "128", kModulationQAM128 },
{ "256", kModulationQAM256 },
{ "2", kModulationQPSK },
{ "5", kModulation8PSK },
{ "10", kModulation8VSB },
{ "11", kModulation16VSB },
{ nullptr, kModulationQAMAuto },
}

Definition at line 325 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

const DTVParamHelperStruct DTVModulation::s_parseTable
staticprotected

Definition at line 326 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVModulation::kDBStrCnt = 13
staticprotected

Definition at line 327 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVModulation::s_dbStr
staticprotected
Initial value:
=
{
"qpsk",
"qam_16",
"qam_32",
"qam_64",
"qam_128",
"qam_256",
"auto",
"8vsb",
"16vsb",
"8psk",
"16apsk",
"32apsk",
"dqpsk"
}

Definition at line 328 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files: