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, kGuardInterval_1_128, kGuardInterval_19_128, kGuardInterval_19_256
}
 

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

Member Enumeration Documentation

◆ Types

Enumerator
kGuardInterval_1_32 
kGuardInterval_1_16 
kGuardInterval_1_8 
kGuardInterval_1_4 
kGuardIntervalAuto 
kGuardInterval_1_128 
kGuardInterval_19_128 
kGuardInterval_19_256 

Definition at line 496 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVGuardInterval()

DTVGuardInterval::DTVGuardInterval ( Types  _default = kGuardIntervalAuto)
inlineexplicit

Definition at line 519 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 521 of file dtvconfparserhelpers.h.

◆ operator=() [2/2]

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

Definition at line 524 of file dtvconfparserhelpers.h.

◆ IsCompatible()

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

Definition at line 528 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::IsEqual().

◆ ParseConf()

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

Definition at line 533 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 535 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 537 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_T().

◆ toString() [1/2]

QString DTVGuardInterval::toString ( ) const
inline

◆ toString() [2/2]

static QString DTVGuardInterval::toString ( int  _value)
inlinestatic

Definition at line 542 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ kConfTable

const DTVParamHelperVec DTVGuardInterval::kConfTable
staticprotected
Initial value:
{
{ "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 },
{ "GUARD_INTERVAL_AUTO", kGuardIntervalAuto },
{ "GUARD_INTERVAL_1_128", kGuardInterval_1_128 },
{ "GUARD_INTERVAL_19_128", kGuardInterval_19_128 },
{ "GUARD_INTERVAL_19_256", kGuardInterval_19_256 },
{ nullptr, kGuardIntervalAuto },
}

Definition at line 490 of file dtvconfparserhelpers.h.

Referenced by ParseConf().

◆ kVdrTable

const DTVParamHelperVec DTVGuardInterval::kVdrTable
staticprotected
Initial value:
{
{ "999", kGuardIntervalAuto },
{ "19128", kGuardInterval_19_128 },
{ "19256", kGuardInterval_19_256 },
{ nullptr, kGuardIntervalAuto },
}

Definition at line 491 of file dtvconfparserhelpers.h.

Referenced by ParseVDR().

◆ kParseTable

const DTVParamHelperVec DTVGuardInterval::kParseTable
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 },
{ "1/128", kGuardInterval_1_128 },
{ "19/128", kGuardInterval_19_128 },
{ "19/256", kGuardInterval_19_256 },
{ nullptr, kGuardIntervalAuto },
}

Definition at line 492 of file dtvconfparserhelpers.h.

Referenced by Parse().

◆ kParseStrings

const DTVParamStringVec DTVGuardInterval::kParseStrings
staticprotected
Initial value:
{
"1/32",
"1/16",
"1/8",
"1/4",
"auto",
"1/128",
"19/128",
"19/256",
}

kGuardInterval_1_32

kGuardInterval_1_16 kGuardInterval_1_8 kGuardInterval_1_4 kGuardIntervalAuto kGuardInterval_1_128 kGuardInterval_19_128 kGuardInterval_19_256

Definition at line 493 of file dtvconfparserhelpers.h.

Referenced by toString().


The documentation for this class was generated from the following files:
DTVGuardInterval::kGuardInterval_1_4
@ kGuardInterval_1_4
Definition: dtvconfparserhelpers.h:501
DTVGuardInterval::kGuardIntervalAuto
@ kGuardIntervalAuto
Definition: dtvconfparserhelpers.h:502
DTVGuardInterval::kGuardInterval_1_16
@ kGuardInterval_1_16
Definition: dtvconfparserhelpers.h:499
DTVGuardInterval::kGuardInterval_19_256
@ kGuardInterval_19_256
Definition: dtvconfparserhelpers.h:505
DTVGuardInterval::kGuardInterval_1_32
@ kGuardInterval_1_32
Definition: dtvconfparserhelpers.h:498
DTVGuardInterval::kGuardInterval_1_8
@ kGuardInterval_1_8
Definition: dtvconfparserhelpers.h:500
DTVGuardInterval::kGuardInterval_19_128
@ kGuardInterval_19_128
Definition: dtvconfparserhelpers.h:504
DTVGuardInterval::kGuardInterval_1_128
@ kGuardInterval_1_128
Definition: dtvconfparserhelpers.h:503