Singleton that holds instances of all types of SIOObjectHandlers. More...
#include <SIO/SIOHandlerMgr.h>
Public Member Functions | |
SIOObjectHandler * | getHandler (const std::string &type) |
Returns the instance of the handler for the given type - null if it doesn't exist. | |
bool | registerHandler (const std::string &type, SIOObjectHandler *handler) |
Registers an instance of a handler for the given type. More... | |
Static Public Member Functions | |
static SIOHandlerMgr * | instance () |
Returns the instance of this class. | |
Singleton that holds instances of all types of SIOObjectHandlers.
New types need to have their handler classes registered here.
bool SIO::SIOHandlerMgr::registerHandler | ( | const std::string & | type, |
SIOObjectHandler * | handler | ||
) |
Registers an instance of a handler for the given type.
Fails if type name allready exists.