OpenMW
components/compiler/streamerrorhandler.hpp
Go to the documentation of this file.
00001 
00002 #ifndef COMPILER_STREAMERRORHANDLER_H_INCLUDED
00003 #define COMPILER_STREAMERRORHANDLER_H_INCLUDED
00004 
00005 #include <ostream>
00006 
00007 #include "errorhandler.hpp"
00008 
00009 namespace Compiler
00010 {
00012 
00013     class StreamErrorHandler : public ErrorHandler
00014     {
00015             std::ostream& mStream;
00016 
00017         // not implemented
00018 
00019             StreamErrorHandler (const StreamErrorHandler&);
00020             StreamErrorHandler& operator= (const StreamErrorHandler&);
00021 
00022             virtual void report (const std::string& message, const TokenLoc& loc, Type type);
00024 
00025             virtual void report (const std::string& message, Type type);
00027 
00028         public:
00029 
00030         // constructors
00031 
00032             StreamErrorHandler (std::ostream& ErrorStream);
00034     };
00035 }
00036 
00037 #endif