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

#include <TextInput.h>

Public Member Functions

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

Detailed Description

String read from input did not match expected string.

Constructor & Destructor Documentation

G3D::TextInput::WrongString::WrongString ( const std::string &  src,
int  ln,
int  ch,
const std::string &  e,
const std::string &  a 
1310  :
1311  TokenException(src, ln, ch), expected(e), actual(a) {
1313  message += format("Expected string '%s', found string '%s'.",
1314  e.c_str(), a.c_str());
1315 }
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 expected
Definition: TextInput.h:562
std::string message
Definition: ParseError.h:44
std::string actual
Definition: TextInput.h:563

+ Here is the call graph for this function:

Member Data Documentation

std::string G3D::TextInput::WrongString::actual
std::string G3D::TextInput::WrongString::expected

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