Ejemplo n.º 1
0
 private static UhpType NewDiscrete(long? start, long? size)
 {
     UhpType type = new UhpType(BaseType.DISCRETE);
     type.discRangeStart = start;
     type.discRangeSize = size;
     return type;
 }
Ejemplo n.º 2
0
 private static UhpType NewContinuous(double? start, double? size)
 {
     UhpType type = new UhpType(BaseType.CONTINUOUS);
     type.contRangeStart = start;
     type.contRangeSize = size;
     return type;
 }
Ejemplo n.º 3
0
 public static UhpType Struct(Dictionary<string, UhpType> fields)
 {
     UhpType type = new UhpType(BaseType.STRUCTURED);
     type.fields = fields;
     return type;
 }
Ejemplo n.º 4
0
 public void AddField(string name, UhpType type)
 {
     if (fields == null)
         fields = new Dictionary<string, UhpType>();
     fields[name] = type;
 }
Ejemplo n.º 5
0
 public static UhpType Array(UhpType elementType, int dimension)
 {
     UhpType type = new UhpType(BaseType.ARRAY);
     type.elementType = elementType;
     type.dimension = dimension;
     return type;
 }