/// <summary> /// Create a new FieldData object /// </summary> /// <param name="name">The name of the field</param> /// <param name="typeIn">The AssemblyQualifiedName of the Field's data type</param> /// <param name="unit">The unit type of the Field (set to UT_Undefined for non-floating point types</param> /// <param name="subSchema">The SchemaWrapper of the field's subSchema, if the field is of type "Entity"</param> public FieldData(string name, string typeIn, UnitType unit, SchemaWrapper subSchema) { m_Name = name; m_Type = typeIn; m_Unit = unit; m_SubSchema = subSchema; }
/// <summary> /// Adds a new field to the wrapper's list of fields. /// </summary> /// <param name="name">the name of the field</param> /// <param name="typeIn">the data type of the field</param> /// <param name="unit">The unit type of the Field (set to UT_Undefined for non-floating point types</param> /// <param name="subSchema">The SchemaWrapper of the field's subSchema, if the field is of type "Entity"</param> public void AddData(string name, System.Type typeIn, UnitType unit, SchemaWrapper subSchema) { m_DataList.Add(new FieldData(name, typeIn.FullName, unit, subSchema)); }