DTVCodeRate Class Reference

#include <dtvconfparserhelpers.h>

Inheritance diagram for DTVCodeRate:
DTVParamHelper

List of all members.

Public Types

enum  {
  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 (int _default=kFECAuto)
bool IsCompatible (const DTVCodeRate &other) const
bool ParseConf (const QString &_value)
bool ParseVDR (const QString &_value)
bool Parse (const QString &_value)
QString toString () const

Static Public Member Functions

static QString toString (int _value)

Static Protected Attributes

static const DTVParamHelperStruct confTable []
static const DTVParamHelperStruct vdrTable []
static const DTVParamHelperStruct parseTable []
static const uint kDBStrCnt = 12
static const char * dbStr [kDBStrCnt]

Detailed Description

Definition at line 234 of file dtvconfparserhelpers.h.


Member Enumeration Documentation

anonymous enum
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 244 of file dtvconfparserhelpers.h.


Constructor & Destructor Documentation

DTVCodeRate::DTVCodeRate ( int  _default = kFECAuto  )  [inline]

Definition at line 260 of file dtvconfparserhelpers.h.


Member Function Documentation

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

Definition at line 262 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

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

Definition at line 267 of file dtvconfparserhelpers.h.

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

Definition at line 269 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

bool DTVCodeRate::Parse ( const QString &  _value  )  [inline]
QString DTVCodeRate::toString ( void   )  const [inline]
static QString DTVCodeRate::toString ( int  _value  )  [inline, static]

Definition at line 276 of file dtvconfparserhelpers.h.


Member Data Documentation

const DTVParamHelperStruct DTVCodeRate::confTable [static, protected]
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 },
    { NULL,       kFECAuto },
}

Definition at line 237 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

const DTVParamHelperStruct DTVCodeRate::vdrTable [static, protected]
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 },
    { NULL,  kFECAuto }
}

Definition at line 238 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

const DTVParamHelperStruct DTVCodeRate::parseTable [static, protected]
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},
    { NULL,   kFECAuto }
}

Definition at line 239 of file dtvconfparserhelpers.h.

Referenced by Parse().

const uint DTVCodeRate::kDBStrCnt = 12 [static, protected]

Definition at line 240 of file dtvconfparserhelpers.h.

Referenced by toString().

const char * DTVCodeRate::dbStr [static, protected]
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 241 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Thu May 24 06:41:58 2012 for MythTV by  doxygen 1.6.3