8 #include "KeywordHandler.hpp" 13 #include <include/pv_common.h> 31 if (keyword == NULL) {
32 Fatal().printf(
"KeywordHandler unable to store type \"%s\": %s\n", keyword, strerror(errno));
34 this->creator = creator;
39 return (creator)(name, hc);
BaseObject * create(char const *name, HyPerCol *hc) const
KeywordHandler(char const *kw, ObjectCreateFn creator)
virtual ~KeywordHandler()
ObjectCreateFn getCreator() const
KeywordHandler & operator=(KeywordHandler const &orig)
const char * getKeyword() const
int initialize(char const *kw, BaseObject *(*creator)(char const *name, HyPerCol *hc))