22 std::string
expected()
const {
return m_expected; }
23 std::string
got()
const {
return m_got; };
26 std::string m_expected;
60 static std::string s_saved_tag;
72 if ( !( is >> c ) || ( c !=
'{' ) ) {
throw AsciiNoStartChar(); }
77 if ( in_tag != tag )
throw AsciiWrongStartTag( tag, in_tag );
84 if ( in_tag != tag )
throw AsciiWrongEndTag( tag, in_tag );
96 if ( c !=
'}' )
throw AsciiNoEndChar();
100 if ( in_tag != tag )
throw AsciiWrongEndTag( tag, in_tag );
AsciiWrongEndTag(const std::string &expected, const std::string &got)
AsciiWrongStartTag(const std::string &expected, const std::string &got)
AsciiWrongTag(const std::string &expected, const std::string &got)
std::string expected() const
void check_start_tag(std::istream &is, const char *tag)
void check_end_tag(std::istream &is, const char *tag)