Advanced Strategic Command
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
TextFormatParser Class Reference

Parses a .ASCTXT file and returns a TextPropertyGroup. More...

#include <textfileparser.h>

Public Member Functions

 TextFormatParser (tnstream *stream_, const ASCString &primaryName_="")
 
TextPropertyGrouprun ()
 
ASCString readLine ()
 

Static Public Attributes

static const int operationsNum = 6
 
static const char * operations [] = { "=", "*=", "+=", "->", "->*", "-=" }
 
static const char * whiteSpace = " \t"
 

Protected Member Functions

void startLevel (const ASCString &levelName)
 
void parseLine (const ASCString &line)
 
void error (const ASCString &errmsg)
 

Detailed Description

Parses a .ASCTXT file and returns a TextPropertyGroup.

Definition at line 108 of file textfileparser.h.

Constructor & Destructor Documentation

TextFormatParser::TextFormatParser ( tnstream stream_,
const ASCString primaryName_ = "" 
)
inline

Definition at line 119 of file textfileparser.h.

Member Function Documentation

void TextFormatParser::error ( const ASCString errmsg)
protected

Definition at line 501 of file textfileparser.cpp.

References displayLogMessage().

void TextFormatParser::parseLine ( const ASCString line)
protected
ASCString TextFormatParser::readLine ( )

Definition at line 379 of file textfileparser.cpp.

TextPropertyGroup * TextFormatParser::run ( void  )
void TextFormatParser::startLevel ( const ASCString levelName)
protected

Member Data Documentation

const char * TextFormatParser::operations = { "=", "*=", "+=", "->", "->*", "-=" }
static
const int TextFormatParser::operationsNum = 6
static

Definition at line 123 of file textfileparser.h.

const char * TextFormatParser::whiteSpace = " \t"
static

Definition at line 125 of file textfileparser.h.

Referenced by StringProperty::operation_eq(), and StringProperty::toString().


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