Esempio n. 1
0
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;
    }
Esempio n. 2
0
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;
}
Esempio n. 3
0
ModelType *ModelData::createTypeRef(OovStringRef const typeName, eModelDataTypes dtype)
    {
    std::string baseTypeName = getBaseType(typeName);
    return static_cast<ModelType*>(createDataType(dtype, baseTypeName));
    }