TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ParseError.h
Go to the documentation of this file.
1 
12 #ifndef G3D_ParseError_h
13 #define G3D_ParseError_h
14 
15 #include "G3D/platform.h"
16 #include "G3D/g3dmath.h"
17 #include <string>
18 
19 namespace G3D {
20 
22 class ParseError {
23 public:
24  enum {UNKNOWN = -1};
25 
27  std::string filename;
28 
31 
37  int line;
38 
42  int character;
43 
44  std::string message;
45 
46  ParseError() : byte(UNKNOWN), line(UNKNOWN), character(UNKNOWN) {}
47 
48  virtual ~ParseError() {}
49 
50  ParseError(const std::string& f, int l, int c, const std::string& m) :
51  filename (f), byte(UNKNOWN), line(l), character(c), message(m) {}
52 
53  ParseError(const std::string& f, int64 b, const std::string& m) :
54  filename (f), byte(b), line(UNKNOWN), character(UNKNOWN), message(m) {}
55 
57  std::string formatFileInfo() const;
58 };
59 
60 }
61 
62 #endif
int line
Definition: ParseError.h:37
Definition: ParseError.h:24
ParseError()
Definition: ParseError.h:46
ParseError(const std::string &f, int l, int c, const std::string &m)
Definition: ParseError.h:50
int64 byte
Definition: ParseError.h:30
Definition: AABox.h:25
std::string filename
Definition: ParseError.h:27
std::string formatFileInfo() const
int character
Definition: ParseError.h:42
ParseError(const std::string &f, int64 b, const std::string &m)
Definition: ParseError.h:53
int64_t int64
Definition: g3dmath.h:169
Definition: ParseError.h:22
virtual ~ParseError()
Definition: ParseError.h:48
std::string message
Definition: ParseError.h:44