Exemple #1
0
 public Scalar(QName name, FASTType type, OperatorCodec operatorCodec, ScalarValue defaultValue, bool optional) : base(name, optional)
 {
     InitBlock();
     operator_Renamed   = operatorCodec.Operator;
     this.operatorCodec = operatorCodec;
     dictionary         = "global";
     this.defaultValue  = defaultValue ?? ScalarValue.UNDEFINED;
     this.type          = type;
     typeCodec          = type.GetCodec(operator_Renamed, optional);
     initialValue       = ((defaultValue == null) || defaultValue.Undefined)?this.type.DefaultValue:defaultValue;
     operator_Renamed.Validate(this);
 }
 public Scalar(QName name, FASTType type, Operator.Operator operator_Renamed, ScalarValue defaultValue, bool optional)
     : base(name, optional)
 {
     InitBlock();
     this.operator_Renamed = operator_Renamed;
     operatorCodec = operator_Renamed.GetCodec(type);
     dictionary = Dictionary_Fields.GLOBAL;
     this.defaultValue = defaultValue ?? ScalarValue.UNDEFINED;
     this.type = type;
     typeCodec = type.GetCodec(operator_Renamed, optional);
     initialValue = ((defaultValue == null) || defaultValue.Undefined)?this.type.DefaultValue:defaultValue;
     operator_Renamed.Validate(this);
 }
Exemple #3
0
 protected IntegerType(string typeName, long minValue, long maxValue, TypeCodec codec, TypeCodec nullableCodec) : base(typeName, codec, nullableCodec)
 {
     this.minValue = minValue;
     this.maxValue = maxValue;
 }
Exemple #4
0
 public DateType(System.Globalization.DateTimeFormatInfo dateFormat, TypeCodec dateCodec) : base("date")
 {
     dateFormatter  = dateFormat;
     this.dateCodec = dateCodec;
 }
Exemple #5
0
 protected SimpleType(string typeName, TypeCodec codec, TypeCodec nullableCodec) : base(typeName)
 {
     this.codec         = codec;
     this.nullableCodec = nullableCodec;
 }
 protected SimpleType(string typeName, TypeCodec codec, TypeCodec nullableCodec)
     : base(typeName)
 {
     this.codec = codec;
     this.nullableCodec = nullableCodec;
 }
 public DateType(System.Globalization.DateTimeFormatInfo dateFormat, TypeCodec dateCodec)
     : base("date")
 {
     dateFormatter = dateFormat;
     this.dateCodec = dateCodec;
 }
 public StringType(string typeName, TypeCodec codec, TypeCodec nullableCodec)
     : base(typeName, codec, nullableCodec)
 {
 }
 protected IntegerType(string typeName, long minValue, long maxValue, TypeCodec codec, TypeCodec nullableCodec)
     : base(typeName, codec, nullableCodec)
 {
     this.minValue = minValue;
     this.maxValue = maxValue;
 }
Exemple #10
0
 public StringType(string typeName, TypeCodec codec, TypeCodec nullableCodec) : base(typeName, codec, nullableCodec)
 {
 }