Poco::UPnP::UPnPGen

class StateVariable

Library: UPnP/UPnPGen
Package: Generator
Header: Poco/UPnP/UPnPGen/StateVariable.h

Description

The StateVariable contains a upnp service description

Member Summary

Member Functions: defaultValue, name, optional, sendEvents, type, valueRestriction

Constructors

StateVariable

StateVariable(
    bool enableEvents = false
);

Creates the StateVariable.

Destructor

~StateVariable

~StateVariable();

Destroys the StateVariable.

Member Functions

defaultValue inline

void defaultValue(
    const std::string & val
);

defaultValue

const std::string & defaultValue() const;

name inline

void name(
    const std::string & val
);

name

const std::string & name() const;

optional inline

void optional(
    bool val
);

optional

bool optional() const;

sendEvents inline

bool sendEvents() const;

Checks if events are enabled for that variable

sendEvents

void sendEvents(
    bool enable
);

Change event status

type inline

void type(
    const std::string & val
);

type

const std::string & type() const;

valueRestriction inline

void valueRestriction(
    Restriction::Ptr ptr
);

ptr must not be null!

valueRestriction

const Restriction & valueRestriction() const;