Sensor with Web Server
Dependencies: EthernetInterface mbed-rpc mbed-rtos mbed
Diff: RPCObjectManager.h
- Revision:
- 0:c385e589a779
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RPCObjectManager.h Tue Apr 08 12:13:32 2014 +0000 @@ -0,0 +1,29 @@ +#ifndef RPCOBJECTMANAGER +#define RPCOBJECTMANAGER + +#include <list> + +class RPCObjectManager +{ + public : + + static RPCObjectManager& instance(); + + void store_object(char *obj_name); + void remove_object(char *obj_name); + bool lookup_object(char *obj_name); + + std::list<char*>::iterator begin(); + std::list<char*>::iterator end(); + + bool is_empty(); + + private : + + RPCObjectManager(); + ~RPCObjectManager(); + + std::list<char*> objects; +}; +#endif +