factory.h revision 1137482ecab2928952d08127515e9d0fc31a29d4
#pragma once
#include <exception>
#include <map>
#include <string>
}
}
return typeString.c_str();
}
};
}
/**
* A Factory for creating objects which can be identified by strings.
*/
typedef BaseObject* CreateFunction();
}
typename std::map<const std::string, CreateFunction*>::const_iterator it = this->objectMap.find(id);
}
}
};
struct NodeTraits {
name = "string";
break;
if (sptype) {
} else {
}
break;
}
default:
name = "";
break;
}
return name;
}
};