MythTV  master
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  Types {
  kHierarchyNone, kHierarchy1, kHierarchy2, kHierarchy4,
  kHierarchyAuto
}
 

Public Member Functions

 DTVHierarchy (Types _default=kHierarchyAuto)
 
DTVHierarchyoperator= (const Types _value)
 
DTVHierarchyoperator= (const fe_hierarchy_t hierarchy)
 
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 s_confTable []
 
static const DTVParamHelperStruct s_vdrTable []
 
static const DTVParamHelperStruct s_parseTable []
 
static const uint kDBStrCnt = 5
 
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 491 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kHierarchyNone 
kHierarchy1 
kHierarchy2 
kHierarchy4 
kHierarchyAuto 

Definition at line 501 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVHierarchy()

DTVHierarchy::DTVHierarchy ( Types  _default = kHierarchyAuto)
inlineexplicit

Definition at line 515 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 517 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVHierarchy& DTVHierarchy::operator= ( const fe_hierarchy_t  hierarchy)
inline

Definition at line 520 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 524 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 529 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 531 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 533 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVHierarchy::toString ( void  ) const
inline

◆ toChar()

QChar DTVHierarchy::toChar ( ) const
inline

Definition at line 537 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

◆ toString() [2/2]

static QString DTVHierarchy::toString ( int  _value)
inlinestatic

Definition at line 541 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

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

Definition at line 494 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

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

Definition at line 495 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

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

Definition at line 496 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVHierarchy::kDBStrCnt = 5
staticprotected

Definition at line 497 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

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

Definition at line 498 of file dtvconfparserhelpers.h.

Referenced by toString().


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