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 s_confTable []
 
static const DTVParamHelperStruct s_vdrTable []
 
static const DTVParamHelperStruct s_parseTable []
 
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 value
 

Detailed Description

Definition at line 649 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kRollOff_35 
kRollOff_20 
kRollOff_25 
kRollOff_Auto 

Definition at line 659 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVRollOff()

DTVRollOff::DTVRollOff ( Types  _default = kRollOff_35)
inlineexplicit

Definition at line 672 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 674 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

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

Definition at line 677 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 681 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 686 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 688 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 690 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_S2().

◆ toString() [1/2]

QString DTVRollOff::toString ( void  ) const
inline

◆ toString() [2/2]

static QString DTVRollOff::toString ( int  _value)
inlinestatic

Definition at line 695 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVRollOff::s_confTable
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 652 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

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

Definition at line 653 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

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

Definition at line 654 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVRollOff::kDBStrCnt = 4
staticprotected

Definition at line 655 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 656 of file dtvconfparserhelpers.h.

Referenced by toString().


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