template class Poco::KeyValueArgs

Overview

Simply event arguments class to transfer a key and a value via an event call. Moreā€¦

#include <KeyValueArgs.h>

template <
    class TKey,
    class TValue
    >
class KeyValueArgs
{
public:
    // construction

    KeyValueArgs(
        const TKey& aKey,
        const TValue& aVal
        );

    KeyValueArgs(const KeyValueArgs& args);

    // methods

    const TKey&
    key() const;

    const TValue&
    value() const;

protected:
    // fields

    const TKey& _key;
    const TValue& _value;
};

Detailed Documentation

Simply event arguments class to transfer a key and a value via an event call.

Note that key and value are NOT copied, only references to them are stored.

Methods

const TKey&
key() const

Returns a reference to the key,.

const TValue&
value() const

Returns a Reference to the value.