Library: UPnP/ServiceDesc
Package: ServiceDesc
Header: Poco/UPnP/ServiceDesc/Restriction.h
This class represents a restriction for a StateVariable's value.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Known Derived Classes: ListRestriction, NoRestriction, RangeRestriction
Member Functions: toString, valid
Inherited Functions: duplicate, referenceCount, release
typedef Poco::AutoPtr < Restriction > Ptr;
Restriction();
Creates the Restriction.
~Restriction();
Destroys the Restriction.
virtual std::string toString() const = 0;
Returns a string representation of the Restriction.
virtual bool valid(
const std::string & val
) const = 0;
Returns true if the given value is valid with regards, to the Restriction.