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 DTVParamHelperVec kConfTable
 
static const DTVParamHelperVec kVdrTable
 
static const DTVParamHelperVec kParseTable
 
static const DTVParamStringVec kParseStrings
 kFECNone 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 280 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 289 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVCodeRate()

DTVCodeRate::DTVCodeRate ( Types  _default = kFECAuto)
inlineexplicit

Definition at line 320 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 322 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

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

Definition at line 325 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 329 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 334 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 336 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

◆ toString() [1/2]

QString DTVCodeRate::toString ( ) const
inline

◆ toString() [2/2]

static QString DTVCodeRate::toString ( int  _value)
inlinestatic

Definition at line 343 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ kConfTable

const DTVParamHelperVec DTVCodeRate::kConfTable
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 283 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ kVdrTable

const DTVParamHelperVec DTVCodeRate::kVdrTable
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 284 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ kParseTable

const DTVParamHelperVec DTVCodeRate::kParseTable
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 285 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kParseStrings

const DTVParamStringVec DTVCodeRate::kParseStrings
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",
}

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 286 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
DTVCodeRate::kFEC_3_4
@ kFEC_3_4
Definition: dtvconfparserhelpers.h:294
DTVCodeRate::kFEC_2_3
@ kFEC_2_3
Definition: dtvconfparserhelpers.h:293
DTVCodeRate::kFEC_5_6
@ kFEC_5_6
Definition: dtvconfparserhelpers.h:296
DTVCodeRate::kFECNone
@ kFECNone
Definition: dtvconfparserhelpers.h:291
DTVCodeRate::kFECAuto
@ kFECAuto
Definition: dtvconfparserhelpers.h:300
DTVCodeRate::kFEC_1_2
@ kFEC_1_2
Definition: dtvconfparserhelpers.h:292
DTVCodeRate::kFEC_3_5
@ kFEC_3_5
Definition: dtvconfparserhelpers.h:301
DTVCodeRate::kFEC_7_8
@ kFEC_7_8
Definition: dtvconfparserhelpers.h:298
DTVCodeRate::kFEC_9_10
@ kFEC_9_10
Definition: dtvconfparserhelpers.h:302
DTVCodeRate::kFEC_8_9
@ kFEC_8_9
Definition: dtvconfparserhelpers.h:299
DTVCodeRate::kFEC_6_7
@ kFEC_6_7
Definition: dtvconfparserhelpers.h:297
DTVCodeRate::kFEC_4_5
@ kFEC_4_5
Definition: dtvconfparserhelpers.h:295