Library: UPnP/ServiceDesc
Package: ServiceDesc
Header: Poco/UPnP/ServiceDesc/Action.h
This class represents an action in a UPnP service description.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Functions: arguments, hasReturnArgument, methodName, name, optional, returnArgument, setName, setOptional, setReturnArgument
Inherited Functions: duplicate, referenceCount, release
typedef std::vector < Argument > Arguments;
typedef Poco::AutoPtr < Action > Ptr;
Action();
Creates the Action.
~Action();
Destroys the Action.
const Arguments & arguments() const;
Returns the in and out arguments, not including the return parameter.
Arguments & arguments();
Returns the in and out arguments, not including the return parameter.
bool hasReturnArgument() const;
Returns true if a return argument exists
std::string methodName() const;
Returns a transformation of the action name to a valid C++ identifier.
const std::string & name() const;
Returns the action's name, UTF-8 encoded.
bool optional() const;
Returns true whether the action is optional, or false otherwise.
const Argument & returnArgument() const;
Returns the return argument.
Will throw a Poco::NotFoundException if no return argument has been set.
void setName(
const std::string & name
);
Sets the action's name.
void setOptional(
bool optional
);
Specifies whether the action is optional.
void setReturnArgument(
const Argument & arg
);
Sets a argument as return argument.