00001 #ifndef _WARNINGWRONGFRAMEDATATYPE_H
00002 #define _WARNINGWRONGFRAMEDATATYPE_H
00003
00004 #include "Warning.h"
00005 #include <string>
00006
00008
00013 class WarningWrongFrameDataType : public Warning
00014 {
00015 public:
00022 WarningWrongFrameDataType(const char* where, const char* exp, const char* got) :
00023 Warning("WrongFrameDataType"), _where(where), _expected(exp), _got(got) {}
00025 virtual const char* what() const throw() {
00026 std::string msg(_where);
00027 msg += "Expected data-type '" + std::string(_expected);
00028 msg += "' but got '" + std::string(_got) + "'\n";
00029 return msg.c_str();
00030 }
00032 const char* where() const {return _where;}
00034 const char* expected() const {return _expected;}
00036 const char* got() const {return _got;}
00037
00038 private:
00039 const char* _where;
00040 const char* _expected;
00041 const char* _got;
00042 };
00043
00044 #endif