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

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types { kInversionOff, kInversionOn, kInversionAuto }
 

Public Member Functions

 DTVInversion (Types _default=kInversionAuto)
 
DTVInversionoperator= (const Types _value)
 
DTVInversionoperator= (const fe_spectral_inversion_t type)
 
bool IsCompatible (const DTVInversion &other) const
 
bool ParseConf (const QString &_value)
 
bool ParseVDR (const QString &_value)
 
bool Parse (const QString &_value)
 
QString toString () const
 
QChar toChar () 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 = 3
 
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 158 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kInversionOff 
kInversionOn 
kInversionAuto 

Definition at line 168 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVInversion()

DTVInversion::DTVInversion ( Types  _default = kInversionAuto)
inlineexplicit

Definition at line 180 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 182 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVInversion& DTVInversion::operator= ( const fe_spectral_inversion_t  type)
inline

Definition at line 185 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 189 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 194 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 196 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

◆ toString() [1/2]

QString DTVInversion::toString ( void  ) const
inline

◆ toChar()

QChar DTVInversion::toChar ( ) const
inline

Definition at line 202 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

◆ toString() [2/2]

static QString DTVInversion::toString ( int  _value)
inlinestatic

Definition at line 206 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVInversion::s_confTable
staticprotected
Initial value:
=
{
{ "INVERSION_AUTO", kInversionAuto },
{ "INVERSION_OFF", kInversionOff },
{ "INVERSION_ON", kInversionOn },
{ nullptr, kInversionAuto },
}

Definition at line 161 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

const DTVParamHelperStruct DTVInversion::s_vdrTable
staticprotected
Initial value:
=
{
{ "999", kInversionAuto },
{ "0", kInversionOff },
{ "1", kInversionOn },
{ nullptr, kInversionAuto },
}

Definition at line 162 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

const DTVParamHelperStruct DTVInversion::s_parseTable
staticprotected
Initial value:
=
{
{ "a", kInversionAuto },
{ "0", kInversionOff },
{ "1", kInversionOn },
{ nullptr, kInversionAuto },
}

Definition at line 163 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVInversion::kDBStrCnt = 3
staticprotected

Definition at line 164 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVInversion::s_dbStr
staticprotected
Initial value:
=
{
"0",
"1",
"a"
}

Definition at line 165 of file dtvconfparserhelpers.h.

Referenced by toString().


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