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 DescriptionappendText (const QString &text)=0
 Appends some plain text to the description.
 
virtual DescriptionappendDescriptionOf (const SelfDescribing &value)=0
 Appends the description of a SelfDescribing value to this description.
 
template<typename T >
DescriptionappendValue (const T &value)
 Appends an arbitrary value to the description.
 
DescriptionappendValue (short value)
 
DescriptionappendValue (long value)
 
DescriptionappendValue (float value)
 
DescriptionappendValue (double value)
 
DescriptionappendValue (const char *value)
 
DescriptionappendValue (const QString &value)
 
DescriptionappendValue (char value)
 
DescriptionappendValue (const QChar &value)
 
template<typename Iterator >
DescriptionappendList (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 DescriptionNONE ()
 

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: