1 | /************************************************************************* |
2 | * libjson-rpc-cpp |
3 | ************************************************************************* |
4 | * @file iprocedureinvokationhandler.h |
5 | * @date 23.10.2014 |
6 | * @author Peter Spiess-Knafl <dev@spiessknafl.at> |
7 | * @license See attached LICENSE.txt |
8 | ************************************************************************/ |
9 | |
10 | #ifndef JSONRPC_CPP_IPROCEDUREINVOKATIONHANDLER_H |
11 | #define JSONRPC_CPP_IPROCEDUREINVOKATIONHANDLER_H |
12 | |
13 | namespace Json { |
14 | class Value; |
15 | } |
16 | |
17 | namespace jsonrpc { |
18 | |
19 | class Procedure; |
20 | |
21 | class IProcedureInvokationHandler { |
22 | public: |
23 | virtual ~IProcedureInvokationHandler() {} |
24 | virtual void HandleMethodCall(Procedure &proc, const Json::Value &input, Json::Value &output) = 0; |
25 | virtual void HandleNotificationCall(Procedure &proc, const Json::Value &input) = 0; |
26 | }; |
27 | } // namespace jsonrpc |
28 | |
29 | #endif // JSONRPC_CPP_IPROCEDUREINVOKATIONHANDLER_H |
30 | |