1
#if !defined BindPointerAction_hxx
2
#define BindPointerAction_hxx
4
#include "rutil/Data.hxx"
5
#include <boost/function.hpp>
6
#include "tfm/ActionBase.hxx"
7
#include <XsLib/h/CXsRefPtr.h>
11
template<class T, class E>
12
class BindPointerAction : public ActionBase
15
explicit BindPointerAction(TestEndPoint* tua, resip::Data action, T& ptr) :
20
virtual ~BindPointerAction() {}
22
virtual void operator()(boost::shared_ptr<Event> event)
24
boost::shared_ptr<E> e
25
= boost::dynamic_pointer_cast<E, Event>(event);
32
virtual void operator()() { assert(0); }
34
virtual resip::Data toString() const { return mActionName; }
37
TestEndPoint* mTestEndPoint;
38
resip:: Data mActionName;