MythTV  master
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MHParseText Class Reference

#include <ParseText.h>

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

Public Member Functions

 MHParseText (QByteArray &program)
 
virtual ~MHParseText ()
 
MHParseNodeParse () override
 
- Public Member Functions inherited from MHParseBase
virtual ~MHParseBase ()=default
 

Private Types

enum  ParseTextType {
  PTTag, PTInt, PTString, PTEnum,
  PTStartSection, PTEndSection, PTStartSeq, PTEndSeq,
  PTNull, PTEOF, PTBool
}
 

Private Member Functions

void GetNextChar ()
 
void NextSym ()
 
MHParseNodeDoParse ()
 
void Error (const char *str)
 

Private Attributes

int m_lineCount {1}
 
ParseTextType m_nType {PTNull}
 
int m_ch {0}
 
int m_nTag {0}
 
int m_nInt {0}
 
bool m_fBool {false}
 
unsigned char * m_String {nullptr}
 
int m_nStringLength {0}
 
unsigned int m_p {0}
 
QByteArray m_data
 

Detailed Description

Definition at line 30 of file ParseText.h.

Member Enumeration Documentation

◆ ParseTextType

Enumerator
PTTag 
PTInt 
PTString 
PTEnum 
PTStartSection 
PTEndSection 
PTStartSeq 
PTEndSeq 
PTNull 
PTEOF 
PTBool 

Definition at line 49 of file ParseText.h.

Constructor & Destructor Documentation

◆ MHParseText()

MHParseText::MHParseText ( QByteArray &  program)
inline

Definition at line 33 of file ParseText.h.

◆ ~MHParseText()

MHParseText::~MHParseText ( )
virtual

Definition at line 45 of file ParseText.cpp.

Member Function Documentation

◆ Parse()

MHParseNode * MHParseText::Parse ( )
overridevirtual

Implements MHParseBase.

Definition at line 1112 of file ParseText.cpp.

◆ GetNextChar()

void MHParseText::GetNextChar ( )
private

Definition at line 51 of file ParseText.cpp.

Referenced by NextSym(), and Parse().

◆ NextSym()

void MHParseText::NextSym ( )
private

Definition at line 372 of file ParseText.cpp.

Referenced by DoParse(), and Parse().

◆ DoParse()

MHParseNode * MHParseText::DoParse ( )
private

Definition at line 843 of file ParseText.cpp.

Referenced by Parse().

◆ Error()

void MHParseText::Error ( const char *  str)
private

Definition at line 366 of file ParseText.cpp.

Referenced by DoParse(), and NextSym().

Member Data Documentation

◆ m_lineCount

int MHParseText::m_lineCount {1}
private

Definition at line 47 of file ParseText.h.

Referenced by Error(), and NextSym().

◆ m_nType

ParseTextType MHParseText::m_nType {PTNull}
private

Definition at line 52 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_ch

int MHParseText::m_ch {0}
private

Definition at line 54 of file ParseText.h.

Referenced by GetNextChar(), and NextSym().

◆ m_nTag

int MHParseText::m_nTag {0}
private

Definition at line 55 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_nInt

int MHParseText::m_nInt {0}
private

Definition at line 56 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_fBool

bool MHParseText::m_fBool {false}
private

Definition at line 57 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_String

unsigned char* MHParseText::m_String {nullptr}
private

Definition at line 58 of file ParseText.h.

Referenced by DoParse(), NextSym(), and ~MHParseText().

◆ m_nStringLength

int MHParseText::m_nStringLength {0}
private

Definition at line 59 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_p

unsigned int MHParseText::m_p {0}
private

Definition at line 61 of file ParseText.h.

Referenced by GetNextChar().

◆ m_data

QByteArray MHParseText::m_data
private

Definition at line 62 of file ParseText.h.

Referenced by GetNextChar().


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