mockpp::InvocationMocker< R, I > Class Template Reference

Helper object to mock invocations. More...

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

List of all members.

Public Types

typedef InvocationMockerBase
< R, I >::Describer 
Describer
 internal shorthand
typedef InvocationMockerBase
< R, I >::DescriberBase 
DescriberBase
 internal shorthand
typedef InvocationMockerBase
< R, I >::DefaultDescriber 
DefaultDescriber
 internal shorthand

Public Member Functions

 InvocationMocker ()
 Creates the object.
 InvocationMocker (AutoPointer< DescriberBase > in_describer)
 Creates the object.
virtual R invoke (const I &invocation)
 Mock the invocation.

Detailed Description

template<typename R, typename I>
class mockpp::InvocationMocker< R, I >

Helper object to mock invocations.

Definition at line 375 of file InvocationMocker.h.


Constructor & Destructor Documentation

template<typename R, typename I>
mockpp::InvocationMocker< R, I >::InvocationMocker ( AutoPointer< DescriberBase in_describer  )  [inline]

Creates the object.

Parameters:
in_describer pointer to describer object

Definition at line 397 of file InvocationMocker.h.


Member Function Documentation

template<typename R, typename I>
virtual R mockpp::InvocationMocker< R, I >::invoke ( const I &  invocation  )  [inline, virtual]

Mock the invocation.

Parameters:
invocation invocation data
Returns:
return value from mocked invocation

Implements mockpp::Invokable< R, I >.

Definition at line 407 of file InvocationMocker.h.


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