A Description that is stored as a string. More...
#include <stringdescription.h>
Public Member Functions | |
| virtual QString | toString () const |
| Returns the description as a string. | |
Public Member Functions inherited from HamcrestQt::BaseDescription | |
| virtual Description & | appendText (const QString &text) |
| Appends some plain text to the description. | |
| virtual Description & | appendDescriptionOf (const SelfDescribing &value) |
| Appends the description of a SelfDescribing value to this description. | |
Public Member Functions inherited from HamcrestQt::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. | |
Static Public Member Functions | |
| static QString | toString (const SelfDescribing &selfDescribing) |
Return the description of a SelfDescribing object as a QString. More... | |
| static QString | asString (const SelfDescribing &selfDescribing) |
| Alias for toString(SelfDescribing). | |
Static Public Member Functions inherited from HamcrestQt::Description | |
| static Description & | NONE () |
Protected Member Functions | |
| virtual void | appendString (const QString &str) |
| Append the String str to the description. More... | |
| virtual void | append (const QChar &c) |
Protected Member Functions inherited from HamcrestQt::Description | |
| virtual void | toCppSyntaxString (const QString &unformatted) |
| virtual void | toCppSyntax (const QChar &ch) |
A Description that is stored as a string.
|
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.
Reimplemented from HamcrestQt::BaseDescription.
|
static |
Return the description of a SelfDescribing object as a QString.
| selfDescribing | The object to be described. |
1.8.5