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

Member Enumeration Documentation

◆ Types

Enumerator
kHierarchyNone 
kHierarchy1 
kHierarchy2 
kHierarchy4 
kHierarchyAuto 

Definition at line 555 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVHierarchy()

DTVHierarchy::DTVHierarchy ( Types  _default = kHierarchyAuto)
inlineexplicit

Definition at line 572 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 574 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

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

Definition at line 577 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 581 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 586 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 588 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 590 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVHierarchy::toString ( ) const
inline

◆ toChar()

QChar DTVHierarchy::toChar ( ) const
inline

Definition at line 594 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

◆ toString() [2/2]

static QString DTVHierarchy::toString ( int  _value)
inlinestatic

Definition at line 601 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ kConfTable

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

Definition at line 549 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ kVdrTable

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

Definition at line 550 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ kParseTable

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

Definition at line 551 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kParseStrings

const DTVParamStringVec DTVHierarchy::kParseStrings
staticprotected
Initial value:
{
"n",
"1",
"2",
"4",
"a"
}

kHierarchyNone

kHierarchy1 kHierarchy2 kHierarchy4 kHierarchyAuto

Definition at line 552 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
DTVHierarchy::kHierarchyAuto
@ kHierarchyAuto
Definition: dtvconfparserhelpers.h:561
DTVHierarchy::kHierarchy2
@ kHierarchy2
Definition: dtvconfparserhelpers.h:559
DTVHierarchy::kHierarchy4
@ kHierarchy4
Definition: dtvconfparserhelpers.h:560
DTVHierarchy::kHierarchyNone
@ kHierarchyNone
Definition: dtvconfparserhelpers.h:557
DTVHierarchy::kHierarchy1
@ kHierarchy1
Definition: dtvconfparserhelpers.h:558