MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
DTVGuardInterval Class Reference

#include <dtvconfparserhelpers.h>

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

Public Types

enum  Types {
  kGuardInterval_1_32, kGuardInterval_1_16, kGuardInterval_1_8, kGuardInterval_1_4,
  kGuardIntervalAuto
}
 

Public Member Functions

 DTVGuardInterval (Types _default=kGuardIntervalAuto)
 
DTVGuardIntervaloperator= (const Types _value)
 
DTVGuardIntervaloperator= (const fe_guard_interval_t interval)
 
bool IsCompatible (const DTVGuardInterval &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 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 440 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ Types

Enumerator
kGuardInterval_1_32 
kGuardInterval_1_16 
kGuardInterval_1_8 
kGuardInterval_1_4 
kGuardIntervalAuto 

Definition at line 450 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVGuardInterval()

DTVGuardInterval::DTVGuardInterval ( Types  _default = kGuardIntervalAuto)
inlineexplicit

Definition at line 464 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 466 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

DTVGuardInterval& DTVGuardInterval::operator= ( const fe_guard_interval_t  interval)
inline

Definition at line 469 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 473 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 478 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 480 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 482 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVGuardInterval::toString ( void  ) const
inline

◆ toString() [2/2]

static QString DTVGuardInterval::toString ( int  _value)
inlinestatic

Definition at line 487 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_confTable

const DTVParamHelperStruct DTVGuardInterval::s_confTable
staticprotected
Initial value:
=
{
{ "GUARD_INTERVAL_AUTO", kGuardIntervalAuto },
{ "GUARD_INTERVAL_1_32", kGuardInterval_1_32 },
{ "GUARD_INTERVAL_1_16", kGuardInterval_1_16 },
{ "GUARD_INTERVAL_1_8", kGuardInterval_1_8 },
{ "GUARD_INTERVAL_1_4", kGuardInterval_1_4 },
{ nullptr, kGuardIntervalAuto },
}

Definition at line 443 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ s_vdrTable

const DTVParamHelperStruct DTVGuardInterval::s_vdrTable
staticprotected
Initial value:
=
{
{ "999", kGuardIntervalAuto },
{ nullptr, kGuardIntervalAuto },
}

Definition at line 444 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ s_parseTable

const DTVParamHelperStruct DTVGuardInterval::s_parseTable
staticprotected
Initial value:
=
{
{ "auto", kGuardIntervalAuto },
{ "1/32", kGuardInterval_1_32 },
{ "1/16", kGuardInterval_1_16 },
{ "1/8", kGuardInterval_1_8 },
{ "1/4", kGuardInterval_1_4 },
{ nullptr, kGuardIntervalAuto },
}

Definition at line 445 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kDBStrCnt

const uint DTVGuardInterval::kDBStrCnt = 5
staticprotected

Definition at line 446 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVGuardInterval::s_dbStr
staticprotected
Initial value:
=
{
"1/32",
"1/16",
"1/8",
"1/4",
"auto"
}

Definition at line 447 of file dtvconfparserhelpers.h.

Referenced by toString().


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