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

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types { kRollOff_35, kRollOff_20, kRollOff_25, kRollOff_Auto }
 

Public Member Functions

 DTVRollOff (Types _default=kRollOff_35)
 
DTVRollOffoperator= (const Types _value)
 
DTVRollOffoperator= (fe_rolloff_t type)
 
bool IsCompatible (const DTVRollOff &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 kConfTable []
 
static const DTVParamHelperStruct kVdrTable []
 
static const DTVParamHelperStruct kParseTable []
 
static const uint kDBStrCnt = 4
 
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 m_value
 

Detailed Description

Definition at line 664 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kRollOff_35 
kRollOff_20 
kRollOff_25 
kRollOff_Auto 

Definition at line 674 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVRollOff()

DTVRollOff::DTVRollOff ( Types  _default = kRollOff_35)
inlineexplicit

Definition at line 687 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 689 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVRollOff& DTVRollOff::operator= ( fe_rolloff_t  type)
inline

Definition at line 692 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 696 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 701 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 703 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 705 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_S2().

◆ toString() [1/2]

QString DTVRollOff::toString ( ) const
inline

◆ toString() [2/2]

static QString DTVRollOff::toString ( int  _value)
inlinestatic

Definition at line 710 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ kConfTable

const DTVParamHelperStruct DTVRollOff::kConfTable
staticprotected
Initial value:
=
{
{ "ROLLOFF_35", kRollOff_35 },
{ "ROLLOFF_20", kRollOff_20 },
{ "ROLLOFF_25", kRollOff_25 },
{ "ROLLOFF_AUTO", kRollOff_Auto },
{ nullptr, kRollOff_35 },
}

Definition at line 667 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ kVdrTable

const DTVParamHelperStruct DTVRollOff::kVdrTable
staticprotected
Initial value:
=
{
{ "35", kRollOff_35 },
{ "20", kRollOff_20 },
{ "25", kRollOff_25 },
{ "0", kRollOff_Auto },
{ nullptr, kRollOff_35 },
}

Definition at line 668 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ kParseTable

const DTVParamHelperStruct DTVRollOff::kParseTable
staticprotected
Initial value:
=
{
{ "0.35", kRollOff_35 },
{ "0.20", kRollOff_20 },
{ "0.25", kRollOff_25 },
{ "auto", kRollOff_Auto },
{ nullptr, kRollOff_35 },
}

Definition at line 669 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVRollOff::kDBStrCnt = 4
staticprotected

Definition at line 670 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVRollOff::s_dbStr
staticprotected
Initial value:
=
{
"0.35",
"0.20",
"0.25",
"auto",
}

Definition at line 671 of file dtvconfparserhelpers.h.

Referenced by toString().


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