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
~Restriction();
Destroys the Restriction.
Member Functions
toString
virtual std::string toString() const = 0;
Returns a string representation of the Restriction.
valid
virtual bool valid(
const std::string & val
) const = 0;
Returns true if the given value is valid with regards, to the Restriction.