UM .NET API
6.16.1
|
The message definition class that needs to be populated and finalized before using in a PDMMessage. More...
Public Member Functions | |
PDMDefinition (int numFields) | |
Creates a new definition with the specified number of fields. More... | |
PDMDefinition (int numFields, bool useIntsForNames) | |
Creates a new definition with the specified number of fields and whether or not to use ints or strings as field names. More... | |
List< PDMFieldInfo > | getFieldInfoList () |
The accessor method for the list of field info. More... | |
List< PDMFieldInfo >.Enumerator | createFieldInfoIterator () |
Creates an iterator of PDMFieldInfo to iterate through the field information. More... | |
virtual void | finalizeDef () |
Finalizes the definition to ready it for use in a message. | |
virtual PDMFieldInfo | getFieldInfo (int name) |
Access the field information by integer name. More... | |
virtual PDMFieldInfo | getFieldInfo (System.String name) |
Access the field information by String name. More... | |
virtual PDMFieldInfo | addFieldInfo (System.String name, PDMFieldType type, bool required) |
Adds field information to the definition with a string field name. More... | |
virtual PDMFieldInfo | addFieldInfo (int name, PDMFieldType type, bool required) |
Adds field information to the definition with an int field name. More... | |
virtual PDMFieldInfo | addFieldInfo (System.String name, PDMFieldType type, int fixedStrLen, bool required) |
Adds field information to the definition for a fixed length string field with a string field name. More... | |
virtual PDMFieldInfo | addFieldInfo (int name, PDMFieldType type, int fixedStrLen, bool required) |
Adds field information to the definition for a fixed length string field with an int field name. More... | |
virtual PDMFieldInfo | addFieldInfo (System.String name, PDMFieldType type, bool required, int numElements) |
Adds field information to the definition for a fixed-size array field with a string field name. More... | |
virtual PDMFieldInfo | addFieldInfo (int name, PDMFieldType type, bool required, int numElements) |
Adds field information to the definition for a fixed-size array field with an int field name. More... | |
virtual PDMFieldInfo | addFieldInfo (System.String name, PDMFieldType type, int fixedStrLen, bool required, int numElements) |
Adds field information to the definition for a fixed-size array field of fixed length strings with a string field name. More... | |
virtual PDMFieldInfo | addFieldInfo (int name, PDMFieldType type, int fixedStrLen, bool required, int numElements) |
Adds field information to the definition for a fixed-size array field of fixed length strings with an int field name. More... | |
virtual int | compareToWithVersion (int otherDefnId, int otherMsgVersMajor, int otherMsgVersMinor) |
Used to compare this PDMDefinition to another's properties taking into account the definition id and the major and minor message version. More... | |
virtual int | compareToWithVersion (PDMDefinition other) |
Used to compare this PDMDefinition to another taking into account the definition id and the major and minor message version. More... | |
virtual int | compareTo (int otherDefnId) |
Used to compare this PDMDefinition to another's id taking into account only the the definition id. More... | |
virtual int | compareTo (PDMDefinition other) |
Used to compare this PDMDefinition to another taking into account only the the definition id. More... | |
virtual byte[] | toBytes (PDMSerializer ser) |
Serializes the PDMDefinition to a new byte array. More... | |
virtual int | toBytes (PDMSerializer ser, byte[] ba, int pos) |
Serialize the PDMDefinition to an existing byte array. More... | |
virtual int | parse (PDMDeserializer deser, byte[] ba) |
Parses an existing byte array into this object. More... | |
virtual int | parse (PDMDeserializer deser, byte[] ba, int pos) |
Parses an existing byte array into this object. More... | |
Properties | |
virtual int | NumFields [get] |
The NumFields property of the definition. More... | |
virtual bool | Finalized [get] |
The finalized property of the definition. More... | |
virtual sbyte | MsgVersMajor [get, set] |
The MsgVersMajor property of the definition. More... | |
virtual sbyte | MsgVersMinor [get, set] |
The MsgVersMinor property of the definition. More... | |
virtual int | Id [get, set] |
The Id property of the definition. More... | |
virtual bool | IntsForNames [get] |
The IntsForNames property of the definition. More... | |
The message definition class that needs to be populated and finalized before using in a PDMMessage.
com.latencybusters.pdm.PDMDefinition.PDMDefinition | ( | int | numFields | ) |
Creates a new definition with the specified number of fields.
numFields | the number of fields |
com.latencybusters.pdm.PDMDefinition.PDMDefinition | ( | int | numFields, |
bool | useIntsForNames | ||
) |
Creates a new definition with the specified number of fields and whether or not to use ints or strings as field names.
numFields | the number of fields |
useIntsForNames | true to use ints as field names or false to use string field names (the default) |
|
virtual |
Adds field information to the definition with a string field name.
name | the string name of the field |
type | the type of field |
required | whether or not the field is required |
|
virtual |
Adds field information to the definition with an int field name.
name | the int name of the field |
type | the type of field |
required | whether or not the field is required |
|
virtual |
Adds field information to the definition for a fixed length string field with a string field name.
name | the string name of the field |
type | the type of field |
fixedStrLen | the fixed string length (number of characters) and is normally 0 unless the type is fixed string or fixed unicode |
required | whether or not the field is required |
|
virtual |
Adds field information to the definition for a fixed length string field with an int field name.
name | the int name of the field |
type | the type of field |
fixedStrLen | the fixed string length (number of characters) and is normally 0 unless the type is fixed string or fixed unicode |
required | whether or not the field is required |
|
virtual |
Adds field information to the definition for a fixed-size array field with a string field name.
name | the string name of the field |
type | the type of field |
required | whether or not the field is required |
numElements | a non-zero value is used to define a fixed-size array for array types |
|
virtual |
Adds field information to the definition for a fixed-size array field with an int field name.
name | the int name of the field |
type | the type of field |
required | whether or not the field is required |
numElements | a non-zero value is used to define a fixed-size array for array types |
|
virtual |
Adds field information to the definition for a fixed-size array field of fixed length strings with a string field name.
name | the string name of the field |
type | the type of field |
fixedStrLen | the fixed string length (number of characters) and is normally 0 unless the type is fixed string or fixed unicode |
required | whether or not the field is required |
numElements | a non-zero value is used to define a fixed-size array for array types |
|
virtual |
Adds field information to the definition for a fixed-size array field of fixed length strings with an int field name.
name | the int name of the field |
type | the type of field |
fixedStrLen | the fixed string length (number of characters) and is normally 0 unless the type is fixed string or fixed unicode |
required | whether or not the field is required |
numElements | a non-zero value is used to define a fixed-size array for array types |
|
virtual |
Used to compare this PDMDefinition to another's id taking into account only the the definition id.
otherDefnId | the other definition id to compare against |
Referenced by com.latencybusters.pdm.PDMMessage.getFields().
|
virtual |
Used to compare this PDMDefinition to another taking into account only the the definition id.
other | the other PDMDefinition to compare against |
References com.latencybusters.pdm.PDMDefinition.Id.
|
virtual |
Used to compare this PDMDefinition to another's properties taking into account the definition id and the major and minor message version.
otherDefnId | the other definition id to compare against |
otherMsgVersMajor | the other definition major version to compare against |
otherMsgVersMinor | the other definition minor version to compare against |
Referenced by com.latencybusters.pdm.PDMMessage.getFields().
|
virtual |
Used to compare this PDMDefinition to another taking into account the definition id and the major and minor message version.
other | the other PDMDefinition to compare against |
References com.latencybusters.pdm.PDMDefinition.MsgVersMajor, and com.latencybusters.pdm.PDMDefinition.MsgVersMinor.
List<PDMFieldInfo>.Enumerator com.latencybusters.pdm.PDMDefinition.createFieldInfoIterator | ( | ) |
Creates an iterator of PDMFieldInfo to iterate through the field information.
|
virtual |
Access the field information by integer name.
name | the int field name |
|
virtual |
Access the field information by String name.
name | the string field name |
List< PDMFieldInfo > com.latencybusters.pdm.PDMDefinition.getFieldInfoList | ( | ) |
The accessor method for the list of field info.
Referenced by com.latencybusters.pdm.PDMMessage.getFields().
|
virtual |
Parses an existing byte array into this object.
deser | the PDMDeserializer to use |
ba | the byte array to parse |
Referenced by com.latencybusters.pdm.PDMMessage.getFields().
|
virtual |
Parses an existing byte array into this object.
deser | the PDMDeserializer to use |
ba | the byte array to parse |
pos | the position to start parsing in the byte array |
References com.latencybusters.pdm.PDMFieldInfo.IntName, com.latencybusters.pdm.PDMDeserializer.readBoolean(), com.latencybusters.pdm.PDMDeserializer.readByte(), com.latencybusters.pdm.PDMDeserializer.readInt(), and com.latencybusters.pdm.PDMFieldInfo.StrName.
|
virtual |
Serializes the PDMDefinition to a new byte array.
ser | the PDMSerializer to use |
Referenced by com.latencybusters.pdm.PDMMessage.getFields().
|
virtual |
Serialize the PDMDefinition to an existing byte array.
ser | the PDMSerializer to use |
ba | the byte array to serialize into |
pos | the position to start at in the byte array |
References com.latencybusters.pdm.PDMSerializer.writeBoolean(), com.latencybusters.pdm.PDMSerializer.writeByte(), and com.latencybusters.pdm.PDMSerializer.writeInt().
|
get |
The finalized property of the definition.
Values: whether or not the definition has been finalized yet
Referenced by com.latencybusters.pdm.PDMMessage.loadDefinition().
|
getset |
The Id property of the definition.
Values: the int id of the definition
Referenced by com.latencybusters.pdm.PDMDefinition.compareTo(), com.latencybusters.pdm.PDMDefinitionCache.containsKey(), com.latencybusters.pdm.PDMDefinitionCache.get(), com.latencybusters.pdm.PDMMessage.getFields(), and com.latencybusters.pdm.PDMDefinitionCache.put().
|
get |
The IntsForNames property of the definition.
Values: whether or not ints are used for names in this definition
|
getset |
The MsgVersMajor property of the definition.
Values: the major version number for the definition and corresponding messages
Referenced by com.latencybusters.pdm.PDMDefinition.compareToWithVersion(), com.latencybusters.pdm.PDMDefinitionCache.containsKey(), com.latencybusters.pdm.PDMDefinitionCache.get(), com.latencybusters.pdm.PDMMessage.getFields(), and com.latencybusters.pdm.PDMDefinitionCache.put().
|
getset |
The MsgVersMinor property of the definition.
Values: the minor version number for the definition and corresponding messages
Referenced by com.latencybusters.pdm.PDMDefinition.compareToWithVersion(), com.latencybusters.pdm.PDMDefinitionCache.containsKey(), com.latencybusters.pdm.PDMDefinitionCache.get(), com.latencybusters.pdm.PDMMessage.getFields(), and com.latencybusters.pdm.PDMDefinitionCache.put().
|
get |
The NumFields property of the definition.
Values: the number of fields specified for this definition
Referenced by com.latencybusters.pdm.PDMMessage.getFields().