mockpp::SelfDescribing Class Reference

An object that can describe itself. More...

Inheritance diagram for mockpp::SelfDescribing:
Inheritance graph

List of all members.

Public Member Functions

String toString () const
 Transform the object's state to a human readable string.
virtual ~SelfDescribing ()
 Destroys the object.
virtual String describeTo (String &buffer) const =0
 Appends the description of this object to the buffer.

Detailed Description

An object that can describe itself.

Used when reporting a missed expectation in a test case.

Definition at line 46 of file SelfDescribing.h.

Constructor & Destructor Documentation

mockpp::SelfDescribing::~SelfDescribing (  )  [virtual]

Destroys the object.

Mainly exists to ensure a virtual dtor.

Definition at line 50 of file SelfDescribing.cpp.

Member Function Documentation

virtual String mockpp::SelfDescribing::describeTo ( String buffer  )  const [pure virtual]

Appends the description of this object to the buffer.

buffer The buffer that the description is appended to.
The current content of the buffer data

Implemented in mockpp::CallStub< F >, mockpp::CustomStub< R, I >, mockpp::DefaultResultStub< R >, mockpp::RandomStub< R, T >, mockpp::ReturnAndCallStub< R, F >, mockpp::ReturnAndTriggerStub1< R, T1 >, mockpp::ReturnAndTriggerStub2< R, T1, T2 >, mockpp::ReturnAndTriggerStub3< R, T1, T2, T3 >, mockpp::ReturnAndTriggerStub4< R, T1, T2, T3, T4 >, mockpp::ReturnAndTriggerStub5< R, T1, T2, T3, T4, T5 >, mockpp::ReturnAndTriggerStub6< R, T1, T2, T3, T4, T5, T6 >, mockpp::ReturnObjectListStub< R >, mockpp::ReturnStub< R >, mockpp::StubSequence< R, I >, mockpp::TestFailureStub< R, I >, mockpp::ThrowStubBase< R >, mockpp::TriggerStub1< T1 >, mockpp::TriggerStub2< T1, T2 >, mockpp::TriggerStub3< T1, T2, T3 >, mockpp::TriggerStub4< T1, T2, T3, T4 >, mockpp::TriggerStub5< T1, T2, T3, T4, T5 >, mockpp::TriggerStub6< T1, T2, T3, T4, T5, T6 >, mockpp::TypelessStub< R >, mockpp::TypelessStubAdapterBase< R, I >, mockpp::TypelessStubSequence< R >, mockpp::VoidStub, mockpp::And< T >, mockpp::IsAnything, mockpp::IsCloseTo< NumberType >, mockpp::IsEqual< T >, mockpp::IsGreaterOrEqual< T >, mockpp::IsGreaterThan< T >, mockpp::IsInstanceOf< BASE, DERIVED >, mockpp::IsLessOrEqual< T >, mockpp::IsLessThan< T >, mockpp::IsNot< T >, mockpp::IsNothing, mockpp::IsSame< T >, mockpp::Or< T >, mockpp::OutBound< T >, mockpp::StringContains< StringType >, mockpp::StringEndsWith< StringType >, mockpp::StringStartsWith< StringType >, mockpp::TriggeredOutbound< T >, mockpp::TypelessConstraintAdapter< T >, mockpp::AnyArgumentsMatcher< I >, mockpp::ArgumentsMatcher< I >, mockpp::InvokeAtLeastMatcher, mockpp::InvokeAtLeastOnceMatcher, mockpp::InvokeAtMostMatcher, mockpp::InvokeCountMatcher, mockpp::InvokedAfterMatcher< I >, mockpp::InvokedBeforeMatcher< I >, mockpp::InvokedRecorder, mockpp::InvokeOnceMatcher, mockpp::NoArgumentsMatcher< I >, mockpp::TestFailureMatcher, mockpp::TypelessMatcherAdapter< I >, mockpp::UnlimitedMatcher, mockpp::AbstractInvocationDispatcher< R, I >, mockpp::Invocation, mockpp::InvocationMockerBase< R, I >, mockpp::ThrowStubBase< void >, mockpp::TypelessStub< void >, mockpp::TypelessStubAdapterBase< void, I >, and mockpp::InvocationMockerBase< void, I >.

String mockpp::SelfDescribing::toString (  )  const

Transform the object's state to a human readable string.

string representation

Definition at line 43 of file SelfDescribing.cpp.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:00 2010 for mockpp by  doxygen 1.6.1