Example #1
0
 // custom field constructor
 public TypeDesc(
     string name,
     DescFlags flags,
     CustomReadFunc customReadFunc,
     object?[]?customParams = null,
     string?outputName      = null)
 {
     Name            = name;
     FieldType       = CUSTOM;
     NumElements     = 1;
     Flags           = flags;
     _customReadFunc = customReadFunc;
     CustomParams    = customParams;
     OutputName      = outputName;
 }
Example #2
0
 // everything else
 public TypeDesc(
     string name,
     FieldType fieldType,
     DescFlags flags               = DescFlags.FTYPEDESC_SAVE,
     ushort numElements            = 1,
     string?inputName              = null,
     string?outputName             = null,
     string?mapName                = null,
     CustomReadFunc?customReadFunc = null,
     object?[]?customParams        = null)
 {
     FieldType       = fieldType;
     Name            = name;
     InputName       = inputName;
     OutputName      = outputName;
     MapName         = mapName;
     NumElements     = numElements;
     Flags           = flags;
     _customReadFunc = customReadFunc;
     CustomParams    = customParams;
 }
Example #3
0
 public void DefineUtilMap(string name, FieldType keyType, FieldType valType, string?embeddedKeyName, string?embeddedValName, DescFlags utlMapFlags, CustomReadFunc?keyReadFunc, CustomReadFunc?valReadFunc)
 {
 }
Example #4
0
 public void DefineVector(string name, FieldType elemFieldType, DescFlags vecFlags = DescFlags.FTYPEDESC_SAVE, CustomReadFunc?elemReadFunc = null)
 {
 }
Example #5
0
 public void DefineVector(string name, string elementType, DescFlags vecFlags = DescFlags.FTYPEDESC_SAVE)
 {
 }
Example #6
0
 public void DefineCustomField(string name, CustomReadFunc customReadFunc, object?[]?customParams = null, DescFlags flags = DescFlags.FTYPEDESC_SAVE)
 {
 }
Example #7
0
 public void DefineKeyField(string name, string mapName, FieldType fieldType, ushort count = 1, DescFlags flags = DescFlags.FTYPEDESC_SAVE)
 {
 }
 protected void DefineCustomField(
     string name,
     CustomReadFunc customReadFunc,
     object?[]?customParams = null,
     DescFlags flags        = FTYPEDESC_SAVE)
 => _handler.DefineCustomField(name, customReadFunc, customParams, flags);