Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WIFI_API_32kRAM mbed
RequestHandler.h
00001 #ifndef REQUEST_HANDLER 00002 #define REQUEST_HANDLER 00003 00004 #include "RPCCommand.h" 00005 00006 class RequestHandler 00007 { 00008 public : 00009 00010 virtual void handle(const RPCCommand& cmd, char* reply) = 0; 00011 }; 00012 00013 class GetRequestHandler : public RequestHandler 00014 { 00015 public : 00016 00017 virtual void handle(const RPCCommand& cmd, char* reply); 00018 }; 00019 00020 class PutRequestHandler : public RequestHandler 00021 { 00022 public : 00023 00024 virtual void handle(const RPCCommand& cmd, char* reply); 00025 00026 }; 00027 00028 00029 class DeleteRequestHandler : public RequestHandler 00030 { 00031 public : 00032 00033 virtual void handle(const RPCCommand& cmd, char* reply); 00034 00035 }; 00036 00037 class ComplexRequestHandler : public RequestHandler 00038 { 00039 public : 00040 00041 virtual void handle(const RPCCommand& cmd, char* reply); 00042 00043 private : 00044 00045 GetRequestHandler getHandler; 00046 PutRequestHandler putHandler; 00047 DeleteRequestHandler deleteHandler; 00048 }; 00049 00050 00051 class DeltaRequestHandler : public RequestHandler 00052 { 00053 public : 00054 00055 virtual void handle(const RPCCommand& cmd, char* reply); 00056 00057 private : 00058 00059 GetRequestHandler getHandler; 00060 PutRequestHandler putHandler; 00061 DeleteRequestHandler deleteHandler; 00062 }; 00063 00064 #endif
Generated on Sun Jul 17 2022 04:29:28 by
1.7.2