ModelType *ModelData::createOrGetTypeRef(OovStringRef const typeName, eModelDataTypes dtype) { std::string baseTypeName = getBaseType(typeName); ModelType *type = findType(baseTypeName); if(!type) { type = static_cast<ModelType*>(createDataType(dtype, baseTypeName)); } return type; }
DataTypeId addDataType(const char name[], _md) { if (getTypeIdByName(name, modelPtr) != BAD_INDEX) { return BAD_INDEX; } addBack(types_m, DataType, createDataType(name)); return types_m.len - 1; }
ModelType *ModelData::createTypeRef(OovStringRef const typeName, eModelDataTypes dtype) { std::string baseTypeName = getBaseType(typeName); return static_cast<ModelType*>(createDataType(dtype, baseTypeName)); }