| CppUnit project page | FAQ | 
An additional Message for assertions. More...
#include <AdditionalMessage.h>


| Public Types | |
| typedef Message | SuperClass | 
| Public Member Functions | |
| AdditionalMessage () | |
| Constructs an empty Message.  More... | |
| AdditionalMessage (const std::string &detail1) | |
| Constructs a Message with the specified detail string.  More... | |
| AdditionalMessage (const char *detail1) | |
| Constructs a Message with the specified detail string.  More... | |
| AdditionalMessage (const Message &other) | |
| Constructs a copy of the specified message.  More... | |
| AdditionalMessage & | operator= (const Message &other) | 
| Assignment operator.  More... | |
An additional Message for assertions.
Provides a implicit constructor that takes a single string. This allow this class to be used as the message arguments in macros.
The constructed object is either a Message with a single detail string if a string was passed to the macro, or a copy of the Message passed to the macro.
Here is an example of usage:
In the previous example, the user can specify a simple string for message, or a complex Message object.
| typedef Message AdditionalMessage::SuperClass | 
| CPPUNIT_NS_BEGIN AdditionalMessage::AdditionalMessage | ( | ) | 
Constructs an empty Message.
| AdditionalMessage::AdditionalMessage | ( | const std::string & | detail1 | ) | 
Constructs a Message with the specified detail string.
| detail1 | Detail string of the message. If empty, then it is not added. | 
| AdditionalMessage::AdditionalMessage | ( | const char * | detail1 | ) | 
Constructs a Message with the specified detail string.
| detail1 | Detail string of the message. If empty, then it is not added. | 
| AdditionalMessage::AdditionalMessage | ( | const Message & | other | ) | 
Constructs a copy of the specified message.
| other | Message to copy. | 
| AdditionalMessage & AdditionalMessage::operator= | ( | const Message & | other | ) | 
| Send comments to: CppUnit Developers |