30 #ifndef PT_JSONRPC_SERVICEDECLARATION_H
31 #define PT_JSONRPC_SERVICEDECLARATION_H
33 #include <Pt/JsonRpc/Api.h>
34 #include <Pt/JsonRpc/ProcedureDeclaration.h>
59 { _procedures[procedure] = decl; }
65 std::map<std::string, ProcedureDeclaration>::const_iterator it = _procedures.find(procedure);
66 if(it == _procedures.end())
73 std::map<std::string, ProcedureDeclaration> _procedures;
80 #endif // PT_JSONRPC_SERVICEDECLARATION_H
Core module.
Definition: Allocator.h:33
const ProcedureDeclaration * getProcedure(const std::string &procedure) const
Returns the ProcedureDeclaration for a procedure, or nullptr.
Definition: ServiceDeclaration.h:63
Maps parameter names to positional indices for named parameters.
Definition: ProcedureDeclaration.h:49
Declares named parameter mappings for JSON-RPC procedures.
Definition: ServiceDeclaration.h:49
void addProcedure(const std::string &procedure, const ProcedureDeclaration &decl)
Associates a ProcedureDeclaration with a procedure name.
Definition: ServiceDeclaration.h:58
ServiceDeclaration()
Default constructor.
Definition: ServiceDeclaration.h:53