mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
merged new xmlrpc-c revision 1472 from https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
59
libs/xmlrpc-c/tools/xmlrpc_cpp_proxy/xmlrpcMethod.hpp
Normal file
59
libs/xmlrpc-c/tools/xmlrpc_cpp_proxy/xmlrpcMethod.hpp
Normal file
@@ -0,0 +1,59 @@
|
||||
#ifndef XMLRPCMETHOD_HPP
|
||||
#define XMLRPCMETHOD_HPP
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <xmlrpc-c/base.hpp>
|
||||
|
||||
class xmlrpcMethod {
|
||||
// An object of this class contains everything we know about a
|
||||
// given XML-RPC method, and knows how to print local bindings.
|
||||
|
||||
std::string mFunctionName;
|
||||
std::string mMethodName;
|
||||
std::string mHelp;
|
||||
xmlrpc_c::value_array mSynopsis;
|
||||
|
||||
public:
|
||||
xmlrpcMethod(std::string const& function_name,
|
||||
std::string const& method_name,
|
||||
std::string const& help,
|
||||
xmlrpc_c::value_array const& signatureList);
|
||||
|
||||
xmlrpcMethod(xmlrpcMethod const& f);
|
||||
|
||||
xmlrpcMethod& operator= (xmlrpcMethod const& f);
|
||||
|
||||
void
|
||||
printDeclarations(std::ostream& out) const;
|
||||
|
||||
void
|
||||
printDefinitions(std::ostream & out,
|
||||
std::string const& className) const;
|
||||
|
||||
private:
|
||||
void
|
||||
printParameters(std::ostream & out,
|
||||
size_t const synopsis_index) const;
|
||||
|
||||
void
|
||||
printDeclaration(std::ostream & out,
|
||||
size_t const synopsis_index) const;
|
||||
|
||||
void
|
||||
printDefinition(std::ostream & out,
|
||||
std::string const& className,
|
||||
size_t const synopsis_index) const;
|
||||
|
||||
const xmlrpcType&
|
||||
returnType(size_t const synopsis_index) const;
|
||||
|
||||
size_t
|
||||
parameterCount(size_t const synopsis_index) const;
|
||||
|
||||
const xmlrpcType&
|
||||
parameterType(size_t const synopsis_index,
|
||||
size_t const parameter_index) const;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user