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

#include <libmythfreemheg/ParseText.h>

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

Public Member Functions

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

Private Types

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

Private Member Functions

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

Private Attributes

int m_lineCount {1}
 
ParseTextType m_nType {PTNull}
 
char 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 32 of file ParseText.h.

Member Enumeration Documentation

◆ ParseTextType

enum MHParseText::ParseTextType : std::uint8_t
private
Enumerator
PTTag 
PTInt 
PTString 
PTEnum 
PTStartSection 
PTEndSection 
PTStartSeq 
PTEndSeq 
PTNull 
PTEOF 
PTBool 

Definition at line 51 of file ParseText.h.

Constructor & Destructor Documentation

◆ MHParseText()

MHParseText::MHParseText ( QByteArray &  program)
inlineexplicit

Definition at line 35 of file ParseText.h.

◆ ~MHParseText()

MHParseText::~MHParseText ( )
override

Definition at line 48 of file ParseText.cpp.

Member Function Documentation

◆ Parse()

MHParseNode * MHParseText::Parse ( )
overridevirtual

Implements MHParseBase.

Definition at line 1121 of file ParseText.cpp.

◆ GetNextChar()

void MHParseText::GetNextChar ( )
private

Definition at line 54 of file ParseText.cpp.

Referenced by NextSym(), and Parse().

◆ NextSym()

void MHParseText::NextSym ( )
private

Definition at line 385 of file ParseText.cpp.

Referenced by DoParse(), and Parse().

◆ DoParse()

MHParseNode * MHParseText::DoParse ( )
private

Definition at line 852 of file ParseText.cpp.

Referenced by Parse().

◆ Error()

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

Definition at line 379 of file ParseText.cpp.

Referenced by DoParse(), and NextSym().

Member Data Documentation

◆ m_lineCount

int MHParseText::m_lineCount {1}
private

Definition at line 49 of file ParseText.h.

Referenced by Error(), and NextSym().

◆ m_nType

ParseTextType MHParseText::m_nType {PTNull}
private

Definition at line 55 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_ch

char MHParseText::m_ch {0}
private

Definition at line 57 of file ParseText.h.

Referenced by GetNextChar(), and NextSym().

◆ m_nTag

int MHParseText::m_nTag {0}
private

Definition at line 58 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_nInt

int MHParseText::m_nInt {0}
private

Definition at line 59 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_fBool

bool MHParseText::m_fBool {false}
private

Definition at line 60 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_string

unsigned char* MHParseText::m_string {nullptr}
private

Definition at line 61 of file ParseText.h.

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

◆ m_nStringLength

int MHParseText::m_nStringLength {0}
private

Definition at line 62 of file ParseText.h.

Referenced by DoParse(), and NextSym().

◆ m_p

unsigned int MHParseText::m_p {0}
private

Definition at line 64 of file ParseText.h.

Referenced by GetNextChar().

◆ m_data

QByteArray MHParseText::m_data
private

Definition at line 65 of file ParseText.h.

Referenced by GetNextChar().


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