98 std::vector<DModuleType> modules;
101 if(modules[i].name == name)
return modules[i];
155 #endif // _DModuleType_
DModuleType(type_id_t type, std::string name, std::string description)
type_id_t GetType(void) const
DModuleType::type_id_t MODULE_TYPE
static void GetModuleList(std::vector< DModuleType > &modules)
Get a list of all module types currently defined. This will append the full list to the given "module...
string GetDescription(void) const
static string GetDescription(type_id_t id)
Get the name of a module type based on its id. This can be called without an instance of the class if...
static DModuleType GetModule(type_id_t id)
Given the type_id of a module type, return a DModuleType object. This is much more efficient than Get...
string GetName(void) const
static string GetName(type_id_t id)
Get the name of a module type based on its id. This can be called without an instance of the class if...
static DModuleType GetModule(std::string name)
Given the name of a module type, return a DModuleType object. This is not a terribly efficient mechan...