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;
Maps parameter names to positional indices for named parameters.
Definition ProcedureDeclaration.h:49
ServiceDeclaration()
Default constructor.
Definition ServiceDeclaration.h:53
void addProcedure(const std::string &procedure, const ProcedureDeclaration &decl)
Associates a ProcedureDeclaration with a procedure name.
Definition ServiceDeclaration.h:58
const ProcedureDeclaration * getProcedure(const std::string &procedure) const
Returns the ProcedureDeclaration for a procedure, or nullptr.
Definition ServiceDeclaration.h:63
JSON-RPC 2.0 services and clients.
Core module.
Definition Allocator.h:33