Poco::UPnP::ServiceDesc

class Restriction

File Information

Library: UPnP/ServiceDesc
Package: ServiceDesc
Header: Poco/UPnP/ServiceDesc/Restriction.h

Description

This class represents a restriction for a StateVariable's value.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Known Derived Classes: RangeRestriction, ListRestriction, NoRestriction

Member Summary

Member Functions: toString, valid

Inherited Functions: duplicate, referenceCount, release

Types

Ptr

typedef Poco::AutoPtr < Restriction > Ptr;

Constructors

Restriction

Restriction();

Creates the Restriction.

Destructor

~Restriction virtual

~Restriction();

Destroys the Restriction.

Member Functions

toString virtual

virtual std::string toString() const = 0;

Returns a string representation of the Restriction.

valid virtual

virtual bool valid(
    const std::string & val
) const = 0;

Returns true if the given value is valid with regards, to the Restriction.

Securely control IoT edge devices from anywhere   Connect a Device