Hamcrest-Qt  0.0.1
Hamcrest matchers for C++/Qt
 All Classes Namespaces Functions
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
HamcrestQt::Description Class Referenceabstract

A description of a Matcher. More...

#include <description.h>

Inheritance diagram for HamcrestQt::Description:
HamcrestQt::BaseDescription HamcrestQt::Description::NullDescription HamcrestQt::StringDescription

Classes

class  NullDescription
 

Public Member Functions

virtual Description & appendText (const QString &text)=0
 Appends some plain text to the description.
 
virtual Description & appendDescriptionOf (const SelfDescribing &value)=0
 Appends the description of a SelfDescribing value to this description.
 
template<typename T >
Description & appendValue (const T &value)
 Appends an arbitrary value to the description.
 
Description & appendValue (short value)
 
Description & appendValue (long value)
 
Description & appendValue (float value)
 
Description & appendValue (double value)
 
Description & appendValue (const char *value)
 
Description & appendValue (const QString &value)
 
Description & appendValue (char value)
 
Description & appendValue (const QChar &value)
 
template<typename Iterator >
Description & appendList (const QString &start, const QString &separator, const QString &end, Iterator startIterator, Iterator endIterator)
 Appends a list of SelfDescribing objects to the description.
 
virtual QString toString () const =0
 Converts the description into a QString value.
 

Static Public Member Functions

static Description & NONE ()
 

Protected Member Functions

virtual void appendString (const QString &str)=0
 
virtual void append (const QChar &c)=0
 
virtual void toCppSyntaxString (const QString &unformatted)
 
virtual void toCppSyntax (const QChar &ch)
 

Detailed Description

A description of a Matcher.

A Matcher will describe itself to a description which can later be used for reporting.

See Also
Matcher::describeTo(Description)

The documentation for this class was generated from the following files: