mockpp::InvocationMockerBase< R, I >::DescriberBase Class Reference

Base for describer objects. More...

Inheritance diagram for mockpp::InvocationMockerBase< R, I >::DescriberBase:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

template<typename R, typename I>
class mockpp::InvocationMockerBase< R, I >::DescriberBase

Base for describer objects.

Definition at line 190 of file InvocationMocker.h.


Member Function Documentation

template<typename R, typename I>
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.

Parameters:
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
Returns:
The current content of the buffer data

Definition at line 230 of file InvocationMocker.h.

template<typename R, typename I>
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.

Parameters:
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
Returns:
The current content of the buffer data

Implemented in mockpp::AbstractDynamicChainingMockImpl< R, I >::Describer, mockpp::InvocationMockerBase< R, I >::Describer, and mockpp::InvocationMockerBase< R, I >::DefaultDescriber.

template<typename R, typename I>
virtual bool mockpp::InvocationMockerBase< R, I >::DescriberBase::hasDescription (  )  [pure virtual]

Does the object provide meaningful description via describeTo() ?.

Returns:
true: description is available

Implemented in mockpp::AbstractDynamicChainingMockImpl< R, I >::Describer, mockpp::InvocationMockerBase< R, I >::Describer, and mockpp::InvocationMockerBase< R, I >::DefaultDescriber.


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

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