private UADataType getUADataTypeFromName(string typeName)
{
UADataType DataType = UADataType.UAUnKnown;
switch (typeName)
{
case "String":
DataType = UADataType.UAString;
break;
case "String[]":
DataType = UADataType.UAStringList;
break;
case "Double":
DataType = UADataType.UADouble;
break;
case "Double[]":
DataType = UADataType.UADoubleList;
break;
case "Double[,]":
case "Object[,]":
case "String[,]":
DataType = UADataType.UADoubleMatrix;
break;
case "Int16":
case "Int32":
case "Int64":
DataType = UADataType.UAInt;
break;
case "Int16[]":
case "Int32[]":
case "Int64[]":
DataType = UADataType.UAIntList;
break;
case "Int16[,]":
case "Int32[,]":
case "Int64[,]": // here we set 'Double' so that when we FillTable this could be found in XML path string. 'Int' can't be found right now.
DataType = UADataType.UADoubleMatrix; ;//UADataType.UAIntMatrix; // 09Jan2013
break;
case "Object[]":
DataType = UADataType.UAList;
break;
case "Table[]":
DataType = UADataType.UATableList;
break;
case "DataFrame": ///03Jul2013
////// We can come up with some new type here but then we would need to fix OutputHelper's GetMetaData
DataType = UADataType.UADoubleMatrix;//29Apr2014 UADataType.UADataFrame; trying to depricate UADataFrame
break;
}
return DataType;
}