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  ) 


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

std::string LLTemplateTokenizer::next (  ) 

Definition at line 331 of file llmessagetemplateparser.cpp.

References inc().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 337 of file llmessagetemplateparser.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLTemplateTokenizer::wantEOF (  ) 

Definition at line 350 of file llmessagetemplateparser.cpp.

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

Referenced by LLTemplateParser::LLTemplateParser().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLTemplateTokenizer::dec (  )  [private]

Definition at line 289 of file llmessagetemplateparser.cpp.

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

Referenced by want(), and wantEOF().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 308 of file llmessagetemplateparser.cpp.

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

Here is the call graph for this function:

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

Definition at line 363 of file llmessagetemplateparser.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 61 of file llmessagetemplateparser.h.

Referenced by dec(), and inc().

Definition at line 62 of file llmessagetemplateparser.h.

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

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().


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

Generated on Fri May 16 09:11:22 2008 for SecondLife by  doxygen 1.5.5