Poco::UPnP::ServiceDesc

class Action

File Information

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

Description

This class represents an action in a UPnP service description.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: arguments, hasReturnArgument, methodName, name, optional, returnArgument, setName, setOptional, setReturnArgument

Inherited Functions: duplicate, referenceCount, release

Types

Arguments

typedef std::vector < Argument > Arguments;

Ptr

typedef Poco::AutoPtr < Action > Ptr;

Constructors

Action

Action();

Creates the Action.

Destructor

~Action virtual

~Action();

Destroys the Action.

Member Functions

arguments inline

const Arguments & arguments() const;

Returns the in and out arguments, not including the return parameter.

arguments

Arguments & arguments();

Returns the in and out arguments, not including the return parameter.

hasReturnArgument inline

bool hasReturnArgument() const;

Returns true if a return argument exists

methodName

std::string methodName() const;

Returns a transformation of the action name to a valid C++ identifier.

name inline

const std::string & name() const;

Returns the action's name, UTF-8 encoded.

optional inline

bool optional() const;

Returns true whether the action is optional, or false otherwise.

returnArgument inline

const Argument & returnArgument() const;

Returns the return argument.

Will throw a Poco::NotFoundException if no return argument has been set.

setName protected inline

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

Sets the action's name.

setOptional protected inline

void setOptional(
    bool optional
);

Specifies whether the action is optional.

setReturnArgument protected inline

void setReturnArgument(
    const Argument & arg
);

Sets a argument as return argument.

Securely control IoT edge devices from anywhere   Connect a Device