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

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types {
  kFECNone, kFEC_1_2, kFEC_2_3, kFEC_3_4,
  kFEC_4_5, kFEC_5_6, kFEC_6_7, kFEC_7_8,
  kFEC_8_9, kFECAuto, kFEC_3_5, kFEC_9_10
}
 

Public Member Functions

 DTVCodeRate (Types _default=kFECAuto)
 
DTVCodeRateoperator= (const Types _value)
 
DTVCodeRateoperator= (const fe_code_rate_t rate)
 
bool IsCompatible (const DTVCodeRate &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 = 12
 
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 263 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kFECNone 
kFEC_1_2 
kFEC_2_3 
kFEC_3_4 
kFEC_4_5 
kFEC_5_6 
kFEC_6_7 
kFEC_7_8 
kFEC_8_9 
kFECAuto 
kFEC_3_5 
kFEC_9_10 

Definition at line 273 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVCodeRate()

DTVCodeRate::DTVCodeRate ( Types  _default = kFECAuto)
inlineexplicit

Definition at line 294 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 296 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVCodeRate& DTVCodeRate::operator= ( const fe_code_rate_t  rate)
inline

Definition at line 299 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 303 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 308 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 310 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

◆ toString() [1/2]

QString DTVCodeRate::toString ( void  ) const
inline

◆ toString() [2/2]

static QString DTVCodeRate::toString ( int  _value)
inlinestatic

Definition at line 317 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVCodeRate::s_confTable
staticprotected
Initial value:
=
{
{ "FEC_AUTO", kFECAuto },
{ "FEC_1_2", kFEC_1_2 },
{ "FEC_2_3", kFEC_2_3 },
{ "FEC_3_4", kFEC_3_4 },
{ "FEC_4_5", kFEC_4_5 },
{ "FEC_5_6", kFEC_5_6 },
{ "FEC_6_7", kFEC_6_7 },
{ "FEC_7_8", kFEC_7_8 },
{ "FEC_8_9", kFEC_8_9 },
{ "FEC_NONE", kFECNone },
{ "FEC_3_5", kFEC_3_5 },
{ "FEC_9_10", kFEC_9_10 },
{ nullptr, kFECAuto },
}

Definition at line 266 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

const DTVParamHelperStruct DTVCodeRate::s_vdrTable
staticprotected
Initial value:
=
{
{ "999", kFECAuto },
{ "12", kFEC_1_2 },
{ "23", kFEC_2_3 },
{ "34", kFEC_3_4 },
{ "45", kFEC_4_5 },
{ "56", kFEC_5_6 },
{ "67", kFEC_6_7 },
{ "78", kFEC_7_8 },
{ "89", kFEC_8_9 },
{ "0", kFECNone },
{ "35", kFEC_3_5 },
{ "910", kFEC_9_10 },
{ nullptr, kFECAuto }
}

Definition at line 267 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

const DTVParamHelperStruct DTVCodeRate::s_parseTable
staticprotected
Initial value:
=
{
{ "auto", kFECAuto },
{ "1/2", kFEC_1_2 },
{ "2/3", kFEC_2_3 },
{ "3/4", kFEC_3_4 },
{ "4/5", kFEC_4_5 },
{ "5/6", kFEC_5_6 },
{ "6/7", kFEC_6_7 },
{ "7/8", kFEC_7_8 },
{ "8/9", kFEC_8_9 },
{ "none", kFECNone },
{ "3/5", kFEC_3_5 },
{ "9/10", kFEC_9_10},
{ nullptr, kFECAuto }
}

Definition at line 268 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVCodeRate::kDBStrCnt = 12
staticprotected

Definition at line 269 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVCodeRate::s_dbStr
staticprotected
Initial value:
=
{
"none",
"1/2",
"2/3",
"3/4",
"4/5",
"5/6",
"6/7",
"7/8",
"8/9",
"auto",
"3/5",
"9/10",
}

Definition at line 270 of file dtvconfparserhelpers.h.

Referenced by toString().


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