Poco::UPnP::ServiceDesc

class Service

File Information

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

Description

This class represents a UPnP service description consisting of Action and StateVariable objects.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: actions, majorVersion, minorVersion, setMajorVersion, setMinorVersion, specVersion, stateVariables

Inherited Functions: duplicate, referenceCount, release

Types

Actions

typedef std::vector < Action::Ptr > Actions;

Ptr

typedef Poco::AutoPtr < Service > Ptr;

StateVariables

typedef std::vector < StateVariable::Ptr > StateVariables;

Constructors

Service

Service();

Creates the Service.

Destructor

~Service virtual

~Service();

Destroys the Service.

Member Functions

actions inline

const Actions & actions() const;

Returns a std::vector containing all Action objects defined by the service.

actions

Actions & actions();

Returns a std::vector containing all Action objects defined by the service.

majorVersion inline

int majorVersion() const;

Returns the major version of the UPnP Device Architecture supported by the device.

minorVersion inline

int minorVersion() const;

Returns the minor version of the UPnP Device Architecture supported by the device.

specVersion

std::string specVersion() const;

Returns the version of the UPnP Device Architecture supported by the device, formatted as string "<major>.<minor>".

stateVariables inline

const StateVariables & stateVariables() const;

Returns a std::vector containing all StateVariable objects defined by the service.

stateVariables

StateVariables & stateVariables();

Returns a std::vector containing all StateVariable objects defined by the service.

setMajorVersion protected inline

void setMajorVersion(
    int major
);

Sets the major version of the UPnP Device Architecture supported.

setMinorVersion protected inline

void setMinorVersion(
    int minor
);

Sets the minor version of the UPnP Device Architecture supported.

Securely control IoT edge devices from anywhere   Connect a Device