MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
DTVHierarchy Class Reference

#include <dtvconfparserhelpers.h>

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

Public Types

enum  {
  kHierarchyNone, kHierarchy1, kHierarchy2, kHierarchy4,
  kHierarchyAuto
}

Public Member Functions

 DTVHierarchy (int _default=kHierarchyAuto)
bool IsCompatible (const DTVHierarchy &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 confTable []
static const DTVParamHelperStruct vdrTable []
static const DTVParamHelperStruct parseTable []
static const uint kDBStrCnt = 5
static const char * 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 417 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

anonymous enum
Enumerator:
kHierarchyNone 
kHierarchy1 
kHierarchy2 
kHierarchy4 
kHierarchyAuto 

Definition at line 427 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

DTVHierarchy::DTVHierarchy ( int  _default = kHierarchyAuto)
inline

Definition at line 436 of file dtvconfparserhelpers.h.

Member Function Documentation

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

Definition at line 438 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

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

Definition at line 443 of file dtvconfparserhelpers.h.

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

Definition at line 445 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

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

Definition at line 447 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

QString DTVHierarchy::toString ( void  ) const
inline
QChar DTVHierarchy::toChar ( ) const
inline

Definition at line 451 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

static QString DTVHierarchy::toString ( int  _value)
inlinestatic

Definition at line 455 of file dtvconfparserhelpers.h.

Member Data Documentation

const DTVParamHelperStruct DTVHierarchy::confTable
staticprotected
Initial value:
{
{ "HIERARCHY_NONE", kHierarchyNone },
{ "HIERARCHY_1", kHierarchy1 },
{ "HIERARCHY_2", kHierarchy2 },
{ "HIERARCHY_4", kHierarchy4 },
{ "HIERARCHY_AUTO", kHierarchyAuto },
{ NULL, kHierarchyAuto },
}

Definition at line 420 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

const DTVParamHelperStruct DTVHierarchy::vdrTable
staticprotected
Initial value:
{
{ "0", kHierarchyNone },
{ "1", kHierarchy1 },
{ "2", kHierarchy2 },
{ "4", kHierarchy4 },
{ "999", kHierarchyAuto },
{ NULL, kHierarchyAuto },
}

Definition at line 421 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

const DTVParamHelperStruct DTVHierarchy::parseTable
staticprotected
Initial value:
{
{ "n", kHierarchyNone },
{ "1", kHierarchy1 },
{ "2", kHierarchy2 },
{ "4", kHierarchy4 },
{ "a", kHierarchyAuto },
{ NULL, kHierarchyAuto },
}

Definition at line 422 of file dtvconfparserhelpers.h.

Referenced by Parse().

const uint DTVHierarchy::kDBStrCnt = 5
staticprotected

Definition at line 423 of file dtvconfparserhelpers.h.

Referenced by toString().

const char * DTVHierarchy::dbStr
staticprotected
Initial value:
{
"n",
"1",
"2",
"4",
"a"
}

Definition at line 424 of file dtvconfparserhelpers.h.

Referenced by toString().


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