LLTemplateTokenizer Class Reference

#include <llmessagetemplateparser.h>

List of all members.

Public Member Functions

 LLTemplateTokenizer (const std::string &contents)
U32 line () const
bool atEOF () const
std::string next ()
bool want (const std::string &token)
bool wantEOF ()

Private Member Functions

void inc ()
void dec ()
std::string get () const
void error (std::string message="generic") const

Private Attributes

bool mStarted
std::list< positioned_tokenmTokens
std::list< positioned_token
>::const_iterator 
mCurrent

Classes

struct  positioned_token


Detailed Description

Definition at line 38 of file llmessagetemplateparser.h.


Constructor & Destructor Documentation

LLTemplateTokenizer::LLTemplateTokenizer ( const std::string &  contents  ) 

Definition at line 245 of file llmessagetemplateparser.cpp.

References LLTemplateTokenizer::positioned_token::line, mCurrent, mTokens, and LLTemplateTokenizer::positioned_token::str.


Member Function Documentation

bool LLTemplateTokenizer::atEOF (  )  const

Definition at line 326 of file llmessagetemplateparser.cpp.

References mCurrent, and mTokens.

Referenced by error(), get(), inc(), line(), want(), and wantEOF().

void LLTemplateTokenizer::dec (  )  [private]

Definition at line 289 of file llmessagetemplateparser.cpp.

References error(), mCurrent, mStarted, and mTokens.

Referenced by want(), and wantEOF().

void LLTemplateTokenizer::error ( std::string  message = "generic"  )  const [private]

Definition at line 363 of file llmessagetemplateparser.cpp.

References atEOF(), get(), line(), llendl, and llerrs.

Referenced by dec(), get(), and inc().

std::string LLTemplateTokenizer::get (  )  const [private]

Definition at line 308 of file llmessagetemplateparser.cpp.

References atEOF(), error(), and mCurrent.

Referenced by error(), next(), and want().

void LLTemplateTokenizer::inc (  )  [private]

Definition at line 273 of file llmessagetemplateparser.cpp.

References atEOF(), error(), mCurrent, mStarted, and mTokens.

Referenced by next(), want(), and wantEOF().

U32 LLTemplateTokenizer::line (  )  const

Definition at line 317 of file llmessagetemplateparser.cpp.

References atEOF(), and mCurrent.

Referenced by tut::LLMessageTemplateParserTestData::ensure_next(), error(), LLTemplateParser::LLTemplateParser(), LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().

std::string LLTemplateTokenizer::next (  ) 

Definition at line 331 of file llmessagetemplateparser.cpp.

References get(), and inc().

Referenced by tut::LLMessageTemplateParserTestData::ensure_next(), LLTemplateParser::LLTemplateParser(), LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().

bool LLTemplateTokenizer::want ( const std::string &  token  ) 

Definition at line 337 of file llmessagetemplateparser.cpp.

References atEOF(), dec(), get(), and inc().

Referenced by LLTemplateParser::LLTemplateParser(), LLTemplateParser::parseBlock(), LLTemplateParser::parseMessage(), and LLTemplateParser::parseVariable().

bool LLTemplateTokenizer::wantEOF (  ) 

Definition at line 350 of file llmessagetemplateparser.cpp.

References atEOF(), dec(), and inc().

Referenced by LLTemplateParser::LLTemplateParser().


Member Data Documentation

std::list<positioned_token>::const_iterator LLTemplateTokenizer::mCurrent [private]

Definition at line 63 of file llmessagetemplateparser.h.

Referenced by atEOF(), dec(), get(), inc(), line(), and LLTemplateTokenizer().

bool LLTemplateTokenizer::mStarted [private]

Definition at line 61 of file llmessagetemplateparser.h.

Referenced by dec(), and inc().

std::list<positioned_token> LLTemplateTokenizer::mTokens [private]

Definition at line 62 of file llmessagetemplateparser.h.

Referenced by atEOF(), dec(), inc(), and LLTemplateTokenizer().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:50 2010 for Second Life Viewer by  doxygen 1.4.7