Sensor with Web Server

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

Committer:
afilipem
Date:
Tue Apr 08 12:13:32 2014 +0000
Revision:
0:c385e589a779
1 version;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
afilipem 0:c385e589a779 1 #ifndef RPCOBJECTMANAGER
afilipem 0:c385e589a779 2 #define RPCOBJECTMANAGER
afilipem 0:c385e589a779 3
afilipem 0:c385e589a779 4 #include <list>
afilipem 0:c385e589a779 5
afilipem 0:c385e589a779 6 class RPCObjectManager
afilipem 0:c385e589a779 7 {
afilipem 0:c385e589a779 8 public :
afilipem 0:c385e589a779 9
afilipem 0:c385e589a779 10 static RPCObjectManager& instance();
afilipem 0:c385e589a779 11
afilipem 0:c385e589a779 12 void store_object(char *obj_name);
afilipem 0:c385e589a779 13 void remove_object(char *obj_name);
afilipem 0:c385e589a779 14 bool lookup_object(char *obj_name);
afilipem 0:c385e589a779 15
afilipem 0:c385e589a779 16 std::list<char*>::iterator begin();
afilipem 0:c385e589a779 17 std::list<char*>::iterator end();
afilipem 0:c385e589a779 18
afilipem 0:c385e589a779 19 bool is_empty();
afilipem 0:c385e589a779 20
afilipem 0:c385e589a779 21 private :
afilipem 0:c385e589a779 22
afilipem 0:c385e589a779 23 RPCObjectManager();
afilipem 0:c385e589a779 24 ~RPCObjectManager();
afilipem 0:c385e589a779 25
afilipem 0:c385e589a779 26 std::list<char*> objects;
afilipem 0:c385e589a779 27 };
afilipem 0:c385e589a779 28 #endif
afilipem 0:c385e589a779 29