template class Poco::Util::OptionCallback
Overview
This class is used as an argument to Option::callback(). More…
#include <OptionCallback.h> template <class C> class OptionCallback: public Poco::Util::AbstractOptionCallback { public: // typedefs typedef void(C::* Callback)( const std::string &name, const std::string &value ); // construction OptionCallback( C* pObject, Callback method ); OptionCallback(const OptionCallback& cb); // methods OptionCallback& operator=(const OptionCallback& cb); virtual void invoke( const std::string& name, const std::string& value ) const; virtual AbstractOptionCallback* clone() const; };
Inherited Members
public: // methods virtual void invoke( const std::string& name, const std::string& value ) const = 0; virtual AbstractOptionCallback* clone() const = 0;
Detailed Documentation
This class is used as an argument to Option::callback().
It stores a pointer to an object and a pointer to a member function of the object’s class.
Methods
virtual void invoke( const std::string& name, const std::string& value ) const
Invokes the callback member function.
virtual AbstractOptionCallback* clone() const
Creates and returns a copy of the object.