Webserver for peach-board
RPCObjectManager.h@0:6ec14f880a00, 2015-03-04 (annotated)
- Committer:
- thudt90
- Date:
- Wed Mar 04 02:16:31 2015 +0000
- Revision:
- 0:6ec14f880a00
add webserver
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thudt90 | 0:6ec14f880a00 | 1 | #ifndef RPCOBJECTMANAGER |
thudt90 | 0:6ec14f880a00 | 2 | #define RPCOBJECTMANAGER |
thudt90 | 0:6ec14f880a00 | 3 | |
thudt90 | 0:6ec14f880a00 | 4 | #include <list> |
thudt90 | 0:6ec14f880a00 | 5 | |
thudt90 | 0:6ec14f880a00 | 6 | class RPCObjectManager |
thudt90 | 0:6ec14f880a00 | 7 | { |
thudt90 | 0:6ec14f880a00 | 8 | public : |
thudt90 | 0:6ec14f880a00 | 9 | |
thudt90 | 0:6ec14f880a00 | 10 | static RPCObjectManager& instance(); |
thudt90 | 0:6ec14f880a00 | 11 | |
thudt90 | 0:6ec14f880a00 | 12 | void store_object(char *obj_name); |
thudt90 | 0:6ec14f880a00 | 13 | void remove_object(char *obj_name); |
thudt90 | 0:6ec14f880a00 | 14 | bool lookup_object(char *obj_name); |
thudt90 | 0:6ec14f880a00 | 15 | |
thudt90 | 0:6ec14f880a00 | 16 | std::list<char*>::iterator begin(); |
thudt90 | 0:6ec14f880a00 | 17 | std::list<char*>::iterator end(); |
thudt90 | 0:6ec14f880a00 | 18 | |
thudt90 | 0:6ec14f880a00 | 19 | bool is_empty(); |
thudt90 | 0:6ec14f880a00 | 20 | |
thudt90 | 0:6ec14f880a00 | 21 | private : |
thudt90 | 0:6ec14f880a00 | 22 | |
thudt90 | 0:6ec14f880a00 | 23 | RPCObjectManager(); |
thudt90 | 0:6ec14f880a00 | 24 | ~RPCObjectManager(); |
thudt90 | 0:6ec14f880a00 | 25 | |
thudt90 | 0:6ec14f880a00 | 26 | std::list<char*> objects; |
thudt90 | 0:6ec14f880a00 | 27 | }; |
thudt90 | 0:6ec14f880a00 | 28 | #endif |
thudt90 | 0:6ec14f880a00 | 29 |