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

A Description that is stored as a string. More...

#include <basedescription.h>

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

Public Member Functions

virtual DescriptionappendText (const QString &text)
 Appends some plain text to the description.
 
virtual DescriptionappendDescriptionOf (const SelfDescribing &value)
 Appends the description of a SelfDescribing value to this description.
 
virtual QString toString () const
 Converts the description into a QString value.
 
- Public Member Functions inherited from HamcrestQt::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.
 

Protected Member Functions

virtual void appendString (const QString &str)
 Append the String str to the description. More...
 
- Protected Member Functions inherited from HamcrestQt::Description
virtual void append (const QChar &c)=0
 
virtual void toCppSyntaxString (const QString &unformatted)
 
virtual void toCppSyntax (const QChar &ch)
 

Additional Inherited Members

- Static Public Member Functions inherited from HamcrestQt::Description
static DescriptionNONE ()
 

Detailed Description

A Description that is stored as a string.

Member Function Documentation

void HamcrestQt::BaseDescription::appendString ( const QString &  str)
protectedvirtual

Append the String str to the description.

The default implementation passes every character to append(QChar). Override in subclasses to provide an efficient implementation.

Implements HamcrestQt::Description.

Reimplemented in HamcrestQt::StringDescription.


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