This module provides functions to help the handling of field structures.
Decodes the input stream r, following the field type sequence specified by s. The input stream will be read from the actual position (access pointer). The returned list has one element for each field specified in the format s.
Parameters: |
|
---|---|
Return type: | list of values |
This function translates a XML field type description, as specified on the Event Specification Format DTD. Valid fields: byte|short|integer|long|shortstring|char|doublechar|longstring|widestring|record|array
Parameters: |
|
---|---|
Returns: | respective field code, as defined in the Consts module. |
Return type: | str |
Destroy all Fields objects in v.
Parameters: |
---|
This function creates a field with the type specified by code. You can check the available codes in the Consts module.
Return type: | a Field descendant, None in case of error. |
---|
Initializes a list of Field descendants, using codelist to determine the type of the new fields. For arrays you can use: aL14 to create an array with 14 Long elements. If you do not specify the number of elements, just the subtype of the array will be set.
Parameters: |
|
---|---|
Return type: | list of Fields |