class Poco::Util::AbstractOptionCallback

Overview

Base class for OptionCallback. Moreā€¦

#include <OptionCallback.h>

class AbstractOptionCallback
{
public:
    // methods

    virtual
    void
    invoke(
        const std::string& name,
        const std::string& value
        ) const = 0;

    virtual
    AbstractOptionCallback*
    clone() const = 0;

protected:
    // construction

    AbstractOptionCallback();
    AbstractOptionCallback(const AbstractOptionCallback&);
};

// direct descendants

template <class C>
class OptionCallback;

Detailed Documentation

Base class for OptionCallback.

Construction

virtual
~AbstractOptionCallback()

Destroys the AbstractOptionCallback.

Methods

virtual
void
invoke(
    const std::string& name,
    const std::string& value
    ) const = 0

Invokes the callback member function.

virtual
AbstractOptionCallback*
clone() const = 0

Creates and returns a copy of the object.