00001 //Dear emacs, this is -*- c++ -*- 00002 00014 #ifndef EFORMAT_WRONGMARKERISSUE_H 00015 #define EFORMAT_WRONGMARKERISSUE_H 00016 00017 #include "eformat/Issue.h" 00018 #include <stdint.h> 00019 00020 namespace eformat { 00021 00025 class WrongMarkerIssue : public eformat::Issue { 00026 00027 public: //interface 00028 00038 WrongMarkerIssue(const ers::Context& context, ers::severity_t severity, 00039 uint32_t current, uint32_t expected); 00040 00044 virtual ~WrongMarkerIssue() throw() {} 00045 00049 uint32_t current () const; 00050 00054 uint32_t expected () const; 00055 00056 }; 00057 00058 } 00059 00066 #define EFORMAT_WRONG_MARKER(current, expected) \ 00067 eformat::WrongMarkerIssue(ERS_HERE, ers::error, current, expected) 00068 00069 #endif /* EFORMAT_WRONGMARKERISSUE_H */