TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::TextInput::WrongSymbol Class Reference

#include <TextInput.h>

Public Member Functions

 WrongSymbol (const std::string &src, int ln, int ch, const std::string &e, const std::string &a)
 
- Public Member Functions inherited from G3D::TextInput::TokenException
virtual ~TokenException ()
 
- Public Member Functions inherited from G3D::ParseError
 ParseError ()
 
virtual ~ParseError ()
 
 ParseError (const std::string &f, int l, int c, const std::string &m)
 
 ParseError (const std::string &f, int64 b, const std::string &m)
 
std::string formatFileInfo () const
 

Public Attributes

std::string expected
 
std::string actual
 
- Public Attributes inherited from G3D::TextInput::TokenException
std::string sourceFile
 
- Public Attributes inherited from G3D::ParseError
std::string filename
 
int64 byte
 
int line
 
int character
 
std::string message
 

Additional Inherited Members

- Public Types inherited from G3D::ParseError
enum  { UNKNOWN = -1 }
 
- Protected Member Functions inherited from G3D::TextInput::TokenException
 TokenException (const std::string &src, int ln, int ch)
 

Constructor & Destructor Documentation

G3D::TextInput::WrongSymbol::WrongSymbol ( const std::string &  src,
int  ln,
int  ch,
const std::string &  e,
const std::string &  a 
)
1297  :
1298  TokenException(src, ln, ch), expected(e), actual(a) {
1299 
1300  message += format("Expected symbol '%s', found symbol '%s'.",
1301  e.c_str(), a.c_str());
1302 }
TokenException(const std::string &src, int ln, int ch)
Definition: TextInput.cpp:1244
std::string __cdecl format(const char *fmt...) G3D_CHECK_PRINTF_ARGS
std::string message
Definition: ParseError.h:44
std::string actual
Definition: TextInput.h:548
std::string expected
Definition: TextInput.h:547

+ Here is the call graph for this function:

Member Data Documentation

std::string G3D::TextInput::WrongSymbol::actual
std::string G3D::TextInput::WrongSymbol::expected

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