OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
streamerrorhandler.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_STREAMERRORHANDLER_H_INCLUDED
2 #define COMPILER_STREAMERRORHANDLER_H_INCLUDED
3 
4 #include <ostream>
5 
6 #include "errorhandler.hpp"
7 
8 namespace Compiler
9 {
11 
13  {
14  std::ostream& mStream;
15 
16  std::string mContext;
17 
18  // not implemented
19 
22 
23  virtual void report (const std::string& message, const TokenLoc& loc, Type type);
25 
26  virtual void report (const std::string& message, Type type);
28 
29  public:
30 
31  void setContext(const std::string& context);
32 
33  // constructors
34 
35  StreamErrorHandler (std::ostream& ErrorStream);
37  };
38 }
39 
40 #endif
Type
Definition: errorhandler.hpp:23
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
std::ostream & mStream
Definition: streamerrorhandler.hpp:14
void setContext(const std::string &context)
Definition: streamerrorhandler.cpp:40
std::string mContext
Definition: streamerrorhandler.hpp:16
Location of a token in a source file.
Definition: tokenloc.hpp:10
Error handler implementation: Write errors into stream.
Definition: streamerrorhandler.hpp:12
StreamErrorHandler & operator=(const StreamErrorHandler &)
virtual void report(const std::string &message, const TokenLoc &loc, Type type)
Report error to the user.
Definition: streamerrorhandler.cpp:9
Error handling.
Definition: errorhandler.hpp:14
StreamErrorHandler(const StreamErrorHandler &)