1 | /************************************************************************* |
2 | * libjson-rpc-cpp |
3 | ************************************************************************* |
4 | * @file iclientconnectionhandler.h |
5 | * @date 10/23/2014 |
6 | * @author Peter Spiess-Knafl <dev@spiessknafl.at> |
7 | * @license See attached LICENSE.txt |
8 | ************************************************************************/ |
9 | |
10 | #ifndef JSONRPC_CPP_ICLIENTCONNECTIONHANDLER_H |
11 | #define JSONRPC_CPP_ICLIENTCONNECTIONHANDLER_H |
12 | |
13 | #include <string> |
14 | |
15 | namespace jsonrpc { |
16 | class Procedure; |
17 | class IClientConnectionHandler { |
18 | public: |
19 | virtual ~IClientConnectionHandler() {} |
20 | |
21 | virtual void HandleRequest(const std::string &request, std::string &retValue) = 0; |
22 | }; |
23 | |
24 | class IProtocolHandler : public IClientConnectionHandler { |
25 | public: |
26 | virtual ~IProtocolHandler() {} |
27 | |
28 | virtual void AddProcedure(const Procedure &procedure) = 0; |
29 | }; |
30 | } // namespace jsonrpc |
31 | |
32 | #endif // JSONRPC_CPP_ICLIENTCONNECTIONHANDLER_H |
33 | |