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

#include <libmythtv/dtvconfparserhelpers.h>

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

Public Types

enum  Types : std::uint8_t { 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 DTVParamHelperVec kConfTable
 
static const DTVParamHelperVec kVdrTable
 
static const DTVParamHelperVec kParseTable
 
static const DTVParamStringVec kParseStrings
 kInversionOff More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from DTVParamHelper
static bool ParseParam (const QString &symbol, int &value, const DTVParamHelperVec &table)
 
static QString toString (const DTVParamStringVec &strings, int index)
 
- Protected Attributes inherited from DTVParamHelper
int m_value
 

Detailed Description

Definition at line 162 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

enum DTVInversion::Types : std::uint8_t
Enumerator
kInversionOff 
kInversionOn 
kInversionAuto 

Definition at line 171 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVInversion()

DTVInversion::DTVInversion ( Types  _default = kInversionAuto)
inlineexplicit

Definition at line 184 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 186 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

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

Definition at line 189 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 193 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 198 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 200 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

◆ toString() [1/2]

QString DTVInversion::toString ( ) const
inline

◆ toChar()

QChar DTVInversion::toChar ( ) const
inline

Definition at line 206 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

◆ toString() [2/2]

static QString DTVInversion::toString ( int  _value)
inlinestatic

Definition at line 213 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ kConfTable

const DTVParamHelperVec DTVInversion::kConfTable
staticprotected
Initial value:
{
{ "INVERSION_AUTO", kInversionAuto },
{ "INVERSION_OFF", kInversionOff },
{ "INVERSION_ON", kInversionOn },
{ nullptr, kInversionAuto },
}

Definition at line 165 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ kVdrTable

const DTVParamHelperVec DTVInversion::kVdrTable
staticprotected
Initial value:
{
{ "999", kInversionAuto },
{ "0", kInversionOff },
{ "1", kInversionOn },
{ nullptr, kInversionAuto },
}

Definition at line 166 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ kParseTable

const DTVParamHelperVec DTVInversion::kParseTable
staticprotected
Initial value:
{
{ "a", kInversionAuto },
{ "0", kInversionOff },
{ "1", kInversionOn },
{ nullptr, kInversionAuto },
}

Definition at line 167 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kParseStrings

const DTVParamStringVec DTVInversion::kParseStrings
staticprotected
Initial value:
{
"0",
"1",
"a"
}

kInversionOff

kInversionOn kInversionAuto

Definition at line 168 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
DTVInversion::kInversionOn
@ kInversionOn
Definition: dtvconfparserhelpers.h:174
DTVInversion::kInversionOff
@ kInversionOff
Definition: dtvconfparserhelpers.h:173
DTVInversion::kInversionAuto
@ kInversionAuto
Definition: dtvconfparserhelpers.h:175