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

#include <dtvconfparserhelpers.h>

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

Public Types

enum  PolarityValues { kPolarityVertical, kPolarityHorizontal, kPolarityRight, kPolarityLeft }
 

Public Member Functions

 DTVPolarity (PolarityValues _default=kPolarityVertical)
 
DTVPolarityoperator= (const PolarityValues _value)
 
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_parseTable []
 
static const uint kDBStrCnt = 4
 
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 545 of file dtvconfparserhelpers.h.

Member Enumeration Documentation

◆ PolarityValues

Enumerator
kPolarityVertical 
kPolarityHorizontal 
kPolarityRight 
kPolarityLeft 

Definition at line 553 of file dtvconfparserhelpers.h.

Constructor & Destructor Documentation

◆ DTVPolarity()

DTVPolarity::DTVPolarity ( PolarityValues  _default = kPolarityVertical)
inlineexplicit

Definition at line 561 of file dtvconfparserhelpers.h.

Member Function Documentation

◆ operator=()

DTVPolarity& DTVPolarity::operator= ( const PolarityValues  _value)
inline

Definition at line 563 of file dtvconfparserhelpers.h.

◆ ParseConf()

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

Definition at line 566 of file dtvconfparserhelpers.h.

◆ ParseVDR()

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

Definition at line 568 of file dtvconfparserhelpers.h.

Referenced by DTVConfParser::ParseVDR().

◆ Parse()

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

Definition at line 570 of file dtvconfparserhelpers.h.

Referenced by DTVMultiplex::ParseDVB_S_and_C().

◆ toString() [1/2]

QString DTVPolarity::toString ( void  ) const
inline

◆ toChar()

QChar DTVPolarity::toChar ( ) const
inline

Definition at line 574 of file dtvconfparserhelpers.h.

Referenced by ChannelUtil::CreateMultiplex().

◆ toString() [2/2]

static QString DTVPolarity::toString ( int  _value)
inlinestatic

Definition at line 578 of file dtvconfparserhelpers.h.

Member Data Documentation

◆ s_parseTable

const DTVParamHelperStruct DTVPolarity::s_parseTable
staticprotected
Initial value:
=
{
{ "r", kPolarityRight },
{ "l", kPolarityLeft },
{ nullptr, kPolarityVertical },
}

Definition at line 548 of file dtvconfparserhelpers.h.

Referenced by Parse(), ParseConf(), and ParseVDR().

◆ kDBStrCnt

const uint DTVPolarity::kDBStrCnt = 4
staticprotected

Definition at line 549 of file dtvconfparserhelpers.h.

Referenced by toString().

◆ s_dbStr

const char * DTVPolarity::s_dbStr
staticprotected
Initial value:
=
{
"v",
"h",
"r",
"l"
}

Definition at line 550 of file dtvconfparserhelpers.h.

Referenced by toString().


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