39 #ifndef _PLT_ACTION_H_ 40 #define _PLT_ACTION_H_ 77 return m_ArgumentDescs;
156 NPT_Result GetArgumentValue(
const char* name,
NPT_String& value);
164 NPT_Result GetArgumentValue(
const char* name, NPT_UInt32& value);
172 NPT_Result GetArgumentValue(
const char* name, NPT_Int32& value);
180 NPT_Result GetArgumentValue(
const char* name,
bool& value);
187 NPT_Result VerifyArgumentValue(
const char* name,
const char* value);
194 NPT_Result VerifyArguments(
bool input);
200 NPT_Result SetArgumentOutFromStateVariable(
const char* name);
205 NPT_Result SetArgumentsOutFromStateVariable();
212 NPT_Result SetArgumentValue(
const char* name,
const char* value);
219 NPT_Result SetError(
unsigned int code,
const char* description);
226 const char* GetError(
unsigned int* code = NULL);
232 unsigned int GetErrorCode();
252 static NPT_Result FormatSoapError(
unsigned int code,
265 unsigned int m_ErrorCode;
289 NPT_Result operator()(T*
const & data)
const {
290 return data->GetSCPDXML(m_Node);
312 bool operator()(
const PLT_ActionDesc*
const & action_desc)
const {
313 return action_desc->
GetName().Compare(m_Name,
true) ? false :
true;
const NPT_String & GetName() const
Return the action name.
Definition: PltAction.h:84
The PLT_Argument class provides a mechanism to set or verify the validity of a specific UPNP service ...
Definition: PltArgument.h:99
PLT_ArgumentDesc * GetArgumentDesc(const char *name)
Look for an argument given a name.
Definition: PltAction.cpp:97
PLT_ActionDesc & GetActionDesc()
Return the action description.
Definition: PltAction.h:148
The PLT_ActionDesc class provides information about a UPnP Service given action.
Definition: PltAction.h:61
UPnP Service Action Argument.
Definition: NptArray.h:54
PLT_Service * GetService()
Return the service the action is associated with.
Definition: PltAction.cpp:88
The PLT_ArgumentDesc class provides information about a given argument of a UPnP Service given action...
Definition: PltArgument.h:64
UPnP Service.
Definition: PltService.h:67
PLT_ActionDesc(const char *name, PLT_Service *service)
Constructor.
Definition: PltAction.cpp:49
Definition: NptStreams.h:92
The PLT_GetSCPDXMLIterator class provides a recursive way to serialize an SCPD into an xml tree...
Definition: PltAction.h:283
NPT_Array< PLT_ArgumentDesc * > & GetArgumentDescs()
Return an array of arguments.
Definition: PltAction.h:76
Definition: inftrees.h:24
The PLT_ActionDescNameFinder class provides a mechanism to find a PLT_ActionDesc given an action name...
Definition: PltAction.h:304
The PLT_Action class provides a mechanism to call or verify the validity of a specific UPNP service a...
Definition: PltAction.h:121
NPT_Result GetSCPDXML(NPT_XmlElementNode *node)
Serialize action information to xml into an existing xml tree.
Definition: PltAction.cpp:67
Definition: NptStrings.h:57