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

Dispatch invokables. More...

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

List of all members.

Public Types

typedef AutoPointer
< InvocationDispatcher< R, I > > 
AP
 internal shorthand

Public Member Functions

 InvocationDispatcher ()
 Constructs the dispatcher.
virtual R dispatch (const I &invocation)=0
 Dispatches the invokable.
virtual void setDefaultStub (const mockpp::StubHolder< R, I > &newDefaultStub)=0
 Sets the default stub for the object.
virtual void add (typename Invokable< R, I >::AP invokable)=0
 Adds an invokable.
virtual void reset ()=0
 Frees all internal data.

Detailed Description

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

Dispatch invokables.

Definition at line 57 of file InvocationDispatcher.h.


Member Function Documentation

template<typename R, typename I>
virtual void mockpp::InvocationDispatcher< R, I >::add ( typename Invokable< R, I >::AP  invokable  )  [pure virtual]

Adds an invokable.

Parameters:
invokable pointer to the invocable
template<typename R, typename I>
virtual R mockpp::InvocationDispatcher< R, I >::dispatch ( const I &  invocation  )  [pure virtual]

Dispatches the invokable.

Parameters:
invocation the invocation data
template<typename R, typename I>
virtual void mockpp::InvocationDispatcher< R, I >::setDefaultStub ( const mockpp::StubHolder< R, I > &  newDefaultStub  )  [pure virtual]

Sets the default stub for the object.

Parameters:
newDefaultStub pointer to the default stub

Implemented in mockpp::AbstractInvocationDispatcher< R, I >.


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