#ifndef _service_registry_h_
# define _service_registry_h_

#include <map>
#include <string>
#include <stdio.h>

#include <pocodefs.h> // for the macro POCO_EXPORT -- to export on Windows

class POCO_EXPORT ServiceRegistry {
	std::map<std::string, void*> _map;
  public:
	void setService(const std::string& name, 
			const std::string& typeId, 
			void* svc);

	void* getService(const std::string& name,
			 const std::string& typeId);

	static ServiceRegistry* instance();
};

#endif

