ServiceDeclaration Class Reference

#include <Pt/JsonRpc/ServiceDeclaration.h>

Declares named parameter mappings for JSON-RPC procedures. More...

Public Member Functions

 ServiceDeclaration ()
 Default constructor.
 
void addProcedure (const std::string &procedure, const ProcedureDeclaration &decl)
 Associates a ProcedureDeclaration with a procedure name.
 
const ProcedureDeclarationgetProcedure (const std::string &procedure) const
 Returns the ProcedureDeclaration for a procedure, or nullptr.
 

Detailed Description

Associates a ProcedureDeclaration (name-to-position mapping) with each procedure name. Used together with a Remoting::ServiceDefinition which provides the runtime procedure registration.