Hamcrest-Qt  0.0.1
Hamcrest matchers for C++/Qt
 All Classes Namespaces Functions
basedescription.h
1 #ifndef HAMCRESTQT_BASEDESCRIPTION_H
2 #define HAMCRESTQT_BASEDESCRIPTION_H
3 
4 #include "description.h"
5 
6 namespace HamcrestQt {
7 
8 
13 {
14 public:
15  // interface Description
16  virtual Description &appendText(const QString &text);
17  virtual Description &appendDescriptionOf(const SelfDescribing &value);
18  virtual QString toString() const;
19 
20 protected:
26  virtual void appendString(const QString &str);
27 };
28 
29 } // namespace HamcrestQt
30 
31 #endif // HAMCRESTQT_BASEDESCRIPTION_H
virtual Description & appendDescriptionOf(const SelfDescribing &value)
Appends the description of a SelfDescribing value to this description.
Definition: basedescription.cpp:13
A description of a Matcher.
Definition: description.h:17
virtual Description & appendText(const QString &text)
Appends some plain text to the description.
Definition: basedescription.cpp:7
virtual QString toString() const
Converts the description into a QString value.
Definition: basedescription.cpp:19
virtual void appendString(const QString &str)
Append the String str to the description.
Definition: basedescription.cpp:24
A Description that is stored as a string.
Definition: basedescription.h:12
The ability of an object to describe itself.
Definition: selfdescribing.h:11