BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ListMethods Class Reference
+ Inheritance diagram for ListMethods:

Public Member Functions

 ListMethods (XmlRpcServer *s)
 
void execute (XmlRpcValue &params, XmlRpcValue &result)
 Execute the method. Subclasses must provide a definition for this method.
 
std::string help ()
 
- Public Member Functions inherited from XmlRpc::XmlRpcServerMethod
 XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0)
 Constructor.
 
virtual ~XmlRpcServerMethod ()
 Destructor.
 
std::string & name ()
 Returns the name of the method.
 
virtual void execute (XmlRpcValue &params, XmlRpcValue &result)=0
 Execute the method. Subclasses must provide a definition for this method.
 
virtual std::string help ()
 

Additional Inherited Members

- Protected Attributes inherited from XmlRpc::XmlRpcServerMethod
std::string _name
 
XmlRpcServer_server
 

Detailed Description

Definition at line 207 of file XmlRpcServer.cpp.

Constructor & Destructor Documentation

◆ ListMethods()

ListMethods::ListMethods ( XmlRpcServer s)
inline

Definition at line 210 of file XmlRpcServer.cpp.

210: XmlRpcServerMethod(LIST_METHODS, s) {}
XmlRpcServer s
Definition: HelloServer.cpp:11
Abstract class representing a single RPC method.

Member Function Documentation

◆ execute()

void ListMethods::execute ( XmlRpcValue params,
XmlRpcValue result 
)
inlinevirtual

Execute the method. Subclasses must provide a definition for this method.

Implements XmlRpc::XmlRpcServerMethod.

Definition at line 212 of file XmlRpcServer.cpp.

213 {
214 _server->listMethods(result);
215 }
void listMethods(XmlRpcValue &result)
Introspection support.

◆ help()

std::string ListMethods::help ( )
inlinevirtual

Returns a help string for the method. Subclasses should define this method if introspection is being used.

Reimplemented from XmlRpc::XmlRpcServerMethod.

Definition at line 217 of file XmlRpcServer.cpp.

217{ return std::string("List all methods available on a server as an array of strings"); }

The documentation for this class was generated from the following file: