1 #ifndef TAGPARSER_TEST_HELPER 2 #define TAGPARSER_TEST_HELPER 4 #include "../diagnostics.h" 6 #include "../tagvalue.h" 47 return os << diagMessage.
levelName() <<
':' <<
' ' << diagMessage.
message() <<
' ' <<
'(' << diagMessage.
context() <<
')';
52 #endif // TAGPARSER_TEST_HELPER TagTextEncoding dataEncoding() const
Returns the data encoding.
StringType toString() const
Returns the string representation of the current PositionInSet.
std::ostream & operator<<(std::ostream &os, const TagParser::TagTextEncoding &encoding)
Prints a TagTextEncoding to enable CPPUNIT_ASSERT_EQUAL for tag values.
TagTextEncoding descriptionEncoding() const
Returns the description encoding.
const std::string & description() const
Returns the description.
const char * levelName() const
Returns the string representation of the level().
The PositionInSet class describes the position of an element in a set which consists of a certain num...
The Size class defines the size of a two-dimensional object using integer point precision.
const std::string & context() const
Returns the context.
The DiagMessage class holds an information, warning or error gathered during parsing or making.
const std::string & message() const
Returns the message.
std::string toString() const
Returns the string representation of the current size.
std::string toString(TagTextEncoding encoding=TagTextEncoding::Unspecified) const
Converts the value of the current TagValue object to its equivalent std::string representation.
The TagValue class wraps values of different types.
TagTextEncoding
Specifies the text encoding.