RPC mbed Server (basierend auf HTTP Protokoll) mit UI via Browser
Dependencies: EthernetInterface mbed-rpc mbed-rtos mbed
Fork of IoTKit_RPC-Server by
RPCObjectManager.h@0:9e4bcb10b3e3, 2013-07-17 (annotated)
- Committer:
- feb11
- Date:
- Wed Jul 17 10:15:05 2013 +0000
- Revision:
- 0:9e4bcb10b3e3
Initial import
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
feb11 | 0:9e4bcb10b3e3 | 1 | #ifndef RPCOBJECTMANAGER |
feb11 | 0:9e4bcb10b3e3 | 2 | #define RPCOBJECTMANAGER |
feb11 | 0:9e4bcb10b3e3 | 3 | |
feb11 | 0:9e4bcb10b3e3 | 4 | #include <list> |
feb11 | 0:9e4bcb10b3e3 | 5 | |
feb11 | 0:9e4bcb10b3e3 | 6 | class RPCObjectManager |
feb11 | 0:9e4bcb10b3e3 | 7 | { |
feb11 | 0:9e4bcb10b3e3 | 8 | public : |
feb11 | 0:9e4bcb10b3e3 | 9 | |
feb11 | 0:9e4bcb10b3e3 | 10 | static RPCObjectManager& instance(); |
feb11 | 0:9e4bcb10b3e3 | 11 | |
feb11 | 0:9e4bcb10b3e3 | 12 | void store_object(char *obj_name); |
feb11 | 0:9e4bcb10b3e3 | 13 | void remove_object(char *obj_name); |
feb11 | 0:9e4bcb10b3e3 | 14 | bool lookup_object(char *obj_name); |
feb11 | 0:9e4bcb10b3e3 | 15 | |
feb11 | 0:9e4bcb10b3e3 | 16 | std::list<char*>::iterator begin(); |
feb11 | 0:9e4bcb10b3e3 | 17 | std::list<char*>::iterator end(); |
feb11 | 0:9e4bcb10b3e3 | 18 | |
feb11 | 0:9e4bcb10b3e3 | 19 | bool is_empty(); |
feb11 | 0:9e4bcb10b3e3 | 20 | |
feb11 | 0:9e4bcb10b3e3 | 21 | private : |
feb11 | 0:9e4bcb10b3e3 | 22 | |
feb11 | 0:9e4bcb10b3e3 | 23 | RPCObjectManager(); |
feb11 | 0:9e4bcb10b3e3 | 24 | ~RPCObjectManager(); |
feb11 | 0:9e4bcb10b3e3 | 25 | |
feb11 | 0:9e4bcb10b3e3 | 26 | std::list<char*> objects; |
feb11 | 0:9e4bcb10b3e3 | 27 | }; |
feb11 | 0:9e4bcb10b3e3 | 28 | #endif |
feb11 | 0:9e4bcb10b3e3 | 29 |