ported HTTP-Server with W5500 Ethernet Shield

Dependencies:   W5500Interface mbed-rpc mbed

Fork of HTTP-Server by F B

RPCObjectManager.h

Committer:
embeddist
Date:
2015-04-28
Revision:
11:ac3569846176
Parent:
0:9e4bcb10b3e3

File content as of revision 11:ac3569846176:

#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