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

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types { kBandwidth8MHz, kBandwidth7MHz, kBandwidth6MHz, kBandwidthAuto }
 

Public Member Functions

 DTVBandwidth (Types _default=kBandwidthAuto)
 
DTVBandwidthoperator= (const Types _value)
 
DTVBandwidthoperator= (const fe_bandwidth_t bwidth)
 
bool IsCompatible (const DTVBandwidth &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 = 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 210 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kBandwidth8MHz 
kBandwidth7MHz 
kBandwidth6MHz 
kBandwidthAuto 

Definition at line 220 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVBandwidth()

DTVBandwidth::DTVBandwidth ( Types  _default = kBandwidthAuto)
inlineexplicit

Definition at line 233 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 235 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVBandwidth& DTVBandwidth::operator= ( const fe_bandwidth_t  bwidth)
inline

Definition at line 238 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 242 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 247 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 249 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 251 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVBandwidth::toString ( void  ) const
inline

◆ toChar()

QChar DTVBandwidth::toChar ( ) const
inline

Definition at line 255 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex(), format_dvbc(), and format_dvbt().

◆ toString() [2/2]

static QString DTVBandwidth::toString ( int  _value)
inlinestatic

Definition at line 259 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVBandwidth::s_confTable
staticprotected
Initial value:
=
{
{ "BANDWIDTH_AUTO", kBandwidthAuto },
{ "BANDWIDTH_8_MHZ", kBandwidth8MHz },
{ "BANDWIDTH_7_MHZ", kBandwidth7MHz },
{ "BANDWIDTH_6_MHZ", kBandwidth6MHz },
{ nullptr, kBandwidthAuto },
}

Definition at line 213 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

const DTVParamHelperStruct DTVBandwidth::s_vdrTable
staticprotected
Initial value:
=
{
{ "999", kBandwidthAuto },
{ "8", kBandwidth8MHz },
{ "7", kBandwidth7MHz },
{ "6", kBandwidth6MHz },
{ nullptr, kBandwidthAuto },
}

Definition at line 214 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

const DTVParamHelperStruct DTVBandwidth::s_parseTable
staticprotected
Initial value:
=
{
{ "a", kBandwidthAuto },
{ "8", kBandwidth8MHz },
{ "7", kBandwidth7MHz },
{ "6", kBandwidth6MHz },
{ nullptr,kBandwidthAuto },
}

Definition at line 215 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVBandwidth::kDBStrCnt = 4
staticprotected

Definition at line 216 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVBandwidth::s_dbStr
staticprotected
Initial value:
=
{
"8",
"7",
"6",
"a"
}

Definition at line 217 of file dtvconfparserhelpers.h.

Referenced by toString().


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