Sensor with Web Server

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

RPCObjectManager.h

Committer:
afilipem
Date:
2014-04-08
Revision:
0:c385e589a779

File content as of revision 0:c385e589a779:

#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