Base for describer objects. More...
Public Types | |
typedef AutoPointer < DescriberBase > | AP |
internal shorthand | |
Public Member Functions | |
virtual | ~DescriberBase () |
Destroys the object. | |
virtual bool | hasDescription ()=0 |
Does the object provide meaningful description via describeTo() ?. | |
virtual String | describeTo (String &result, const std::vector< InvocationMatcher< I > * > &matchers, Stub< R, I > *stub, const String &name) const =0 |
Appends the description of this object to the buffer. | |
String | describeTo (String &result, const std::vector< InvocationMatcher< I > * > &matchers, TypelessStub< R > *stub, const String &name) const |
Appends the description of this object to the buffer. |
Base for describer objects.
Definition at line 190 of file InvocationMocker.h.
String mockpp::InvocationMockerBase< R, I >::DescriberBase::describeTo | ( | String & | result, | |
const std::vector< InvocationMatcher< I > * > & | matchers, | |||
TypelessStub< R > * | stub, | |||
const String & | name | |||
) | const [inline] |
Appends the description of this object to the buffer.
result | the buffer that the description is appended to. | |
matchers | a list of matcher objects | |
stub | pointer to the stub | |
name | the object's name |
Definition at line 230 of file InvocationMocker.h.
virtual String mockpp::InvocationMockerBase< R, I >::DescriberBase::describeTo | ( | String & | result, | |
const std::vector< InvocationMatcher< I > * > & | matchers, | |||
Stub< R, I > * | stub, | |||
const String & | name | |||
) | const [pure virtual] |
Appends the description of this object to the buffer.
result | the buffer that the description is appended to. | |
matchers | a list of matcher objects | |
stub | pointer to the stub | |
name | the object's name |
Implemented in mockpp::AbstractDynamicChainingMockImpl< R, I >::Describer, mockpp::InvocationMockerBase< R, I >::Describer, and mockpp::InvocationMockerBase< R, I >::DefaultDescriber.
virtual bool mockpp::InvocationMockerBase< R, I >::DescriberBase::hasDescription | ( | ) | [pure virtual] |
Does the object provide meaningful description via describeTo() ?.
Implemented in mockpp::AbstractDynamicChainingMockImpl< R, I >::Describer, mockpp::InvocationMockerBase< R, I >::Describer, and mockpp::InvocationMockerBase< R, I >::DefaultDescriber.