TINE data format types. More...
Public Member Functions | |
| short | getValue () |
| Returns short value for format enum. | |
| String | toString () |
| The string representation of this TFormat object. | |
Static Public Member Functions | |
| static boolean | isSimpleFormat (short dataFormat) |
| static boolean | isPlotable (short dataFormat) |
| Determines whether the given format is plotable in a trend chart (value vs time). | |
| static boolean | containsString (short dataFormat) |
| Determines whether the given format contains a string type variable (either fixed-capacity or free) | |
| static boolean | beginsWithString (short dataFormat) |
| Determines whether the given format begins with a string type variable (either fixed-capacity or free) | |
| static boolean | endsWithString (short dataFormat) |
| Determines whether the given format ends with a string type variable (either fixed-capacity or free) | |
| static boolean | isName (short dataFormat) |
| static boolean | isBitfield (short dataFormat) |
| static boolean | isStructFormat (short dataFormat) |
| static boolean | isNumberFormat (short dataFormat) |
| static boolean | isTaggedStruct (short dataFormat, String dataTag) |
| static boolean | isCompoundFormat (short dataFormat) |
| determines whether the given format is a compound data type | |
| static TCompoundDataObject[] | makeCompoundDataObjectArray (short dataFormat, String dataTag, int arrayLength) |
| makes an array of compound data type objects according to the input given | |
| static short | getBitfieldFormat (short dataFormat) |
| static short | getIntegerFormat (short dataFormat) |
| static boolean | isNameInt (short dataFormat) |
| static int | getFormatHeaderSize (short dataFormat) |
| static int | getFormatBodyStart (short dataFormat) |
| static short | getFormatDataType (short dataFormat) |
| Determines the carried format type according to the format type given. | |
| static boolean | hasHeader (short dataFormat) |
| static boolean | isVariableLength (short dataFormat) |
| Determines whether the input format is of variable length (one of CF_STRING, CF_AIMAGE, CF_IMAGE, CF_ASPECTRUM) | |
| static boolean | isVariableLengthString (short dataFormat) |
| Determines whether the given format is a variable length type. | |
| static boolean | isAdjustableLength (short dataFormat) |
| Determines whether the input format is of adjustable length (one of CF_STRING, CF_AIMAGE, CF_ASPECTRUM) | |
| static boolean | isString (short dataFormat) |
| static boolean | formatsCanMap (short dataFormat1, short dataFormat2, boolean input) |
| Returns true if the input formats can be converted. | |
| static int | formatSizeOf (short dataFormat) |
| The size in bytes of the specified data format. | |
| static String | toString (short dataFormat) |
| The string representation of the specified data format. | |
| static String | getFormatTag (String dataFormatString) |
| Parses an input format string and extracts the given data tag. | |
| static short | getFormatArrayType (String dataFormatString) |
| Parses an input format string and extracts the given array type. | |
| static short | getFormatCode (String dataFormatString) |
| The format code of the specified String. | |
| static int | getCarriedFormatSize (String tag) |
| Returns the size in bytes of a given format type. | |
| static TFormat | valueOf (short fmt) |
TINE data format types.
| static boolean de.desy.tine.definitions.TFormat.beginsWithString | ( | short | dataFormat | ) | [static] |
Determines whether the given format begins with a string type variable (either fixed-capacity or free)
| dataFormat | is the tine format to be examined |
true or false. | static boolean de.desy.tine.definitions.TFormat.containsString | ( | short | dataFormat | ) | [static] |
Determines whether the given format contains a string type variable (either fixed-capacity or free)
| dataFormat | is the tine format to be examined |
true or false. | static boolean de.desy.tine.definitions.TFormat.endsWithString | ( | short | dataFormat | ) | [static] |
Determines whether the given format ends with a string type variable (either fixed-capacity or free)
| dataFormat | is the tine format to be examined |
true or false. | static boolean de.desy.tine.definitions.TFormat.formatsCanMap | ( | short | dataFormat1, |
| short | dataFormat2, | ||
| boolean | input | ||
| ) | [static] |
Returns true if the input formats can be converted.
| dataFormat1 | is the first of the format pair |
| dataFormat2 | is the second of the format pair |
| input | specifies whether the conversion concerns input data (true) or not. |
| static int de.desy.tine.definitions.TFormat.formatSizeOf | ( | short | dataFormat | ) | [static] |
The size in bytes of the specified data format.
| dataFormat | is the tine data type for which the size in bytes is desired |
| static short de.desy.tine.definitions.TFormat.getBitfieldFormat | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
| static int de.desy.tine.definitions.TFormat.getCarriedFormatSize | ( | String | tag | ) | [static] |
Returns the size in bytes of a given format type.
| tag | is the format string representation |
| static short de.desy.tine.definitions.TFormat.getFormatArrayType | ( | String | dataFormatString | ) | [static] |
Parses an input format string and extracts the given array type.
| dataFormatString | is the data format string which is to be parsed |
| static int de.desy.tine.definitions.TFormat.getFormatBodyStart | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format data type |
| static short de.desy.tine.definitions.TFormat.getFormatCode | ( | String | dataFormatString | ) | [static] |
The format code of the specified String.
| dataFormatString | is the string representation for which the tine data type is desired |
| static short de.desy.tine.definitions.TFormat.getFormatDataType | ( | short | dataFormat | ) | [static] |
Determines the carried format type according to the format type given.
This is largely equal to the input format itself. However some formats (CF_SPECTRUM, CF_IMAGE) imply a carried format.
| dataFormat | is the targeted format data type |
| static int de.desy.tine.definitions.TFormat.getFormatHeaderSize | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format data type |
| static String de.desy.tine.definitions.TFormat.getFormatTag | ( | String | dataFormatString | ) | [static] |
Parses an input format string and extracts the given data tag.
| dataFormatString | is the data format string which is to be parsed |
| static short de.desy.tine.definitions.TFormat.getIntegerFormat | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
| short de.desy.tine.definitions.TFormat.getValue | ( | ) |
Returns short value for format enum.
| static boolean de.desy.tine.definitions.TFormat.hasHeader | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
| static boolean de.desy.tine.definitions.TFormat.isAdjustableLength | ( | short | dataFormat | ) | [static] |
Determines whether the input format is of adjustable length (one of CF_STRING, CF_AIMAGE, CF_ASPECTRUM)
Formats of adjustable length as in the case of variable length types imply that an array of such entities do not have a known total length in bytes as the size of each element is variable. In addition, the transport mechanism is allowed to adjust the size of the transfered data. This is the same list of types as the variable length types, except for the exclusion of CF_IMAGE. An adjustable image type (CF_AIMAGE) will pass a reference of the adjusted image to the caller whereas a non-adjustable image (CF_IMAGE) will copy the image bytes into the caller's buffer (truncating if necessary).
| dataFormat | is the format to be examined |
true if the format data type is of adjustable length | static boolean de.desy.tine.definitions.TFormat.isBitfield | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
true if the format is a bitfield data type | static boolean de.desy.tine.definitions.TFormat.isCompoundFormat | ( | short | dataFormat | ) | [static] |
determines whether the given format is a compound data type
| dataFormat | is the targeted format |
true if the format is composed of more than a single entity (a TCompoundDataObject composed of at least a doublet). | static boolean de.desy.tine.definitions.TFormat.isName | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
true if the format is a fixed-length string type | static boolean de.desy.tine.definitions.TFormat.isNameInt | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
true if the given format represents a NAME-Integer pair | static boolean de.desy.tine.definitions.TFormat.isNumberFormat | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
true if the format represents a simple number type | static boolean de.desy.tine.definitions.TFormat.isPlotable | ( | short | dataFormat | ) | [static] |
Determines whether the given format is plotable in a trend chart (value vs time).
| dataFormat | is the tine format to be examined |
true or false. | static boolean de.desy.tine.definitions.TFormat.isSimpleFormat | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
| static boolean de.desy.tine.definitions.TFormat.isString | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
true if the format data type represents a string | static boolean de.desy.tine.definitions.TFormat.isStructFormat | ( | short | dataFormat | ) | [static] |
| dataFormat | is the targeted format |
true if the format is a structure | static boolean de.desy.tine.definitions.TFormat.isTaggedStruct | ( | short | dataFormat, |
| String | dataTag | ||
| ) | [static] |
| dataFormat | is the targeted format |
true if the format is a tagged structure | static boolean de.desy.tine.definitions.TFormat.isVariableLength | ( | short | dataFormat | ) | [static] |
Determines whether the input format is of variable length (one of CF_STRING, CF_AIMAGE, CF_IMAGE, CF_ASPECTRUM)
Formats of variable length imply that an array of such entities do not have a known total length in bytes as the size of each element is variable.
| dataFormat | is the format to be examined |
true if the format data type is of variable length | static boolean de.desy.tine.definitions.TFormat.isVariableLengthString | ( | short | dataFormat | ) | [static] |
Determines whether the given format is a variable length type.
| dataFormat | is the tine format to be examined |
true or false. | static TCompoundDataObject [] de.desy.tine.definitions.TFormat.makeCompoundDataObjectArray | ( | short | dataFormat, |
| String | dataTag, | ||
| int | arrayLength | ||
| ) | [static] |
makes an array of compound data type objects according to the input given
| dataFormat | is the targeted format (must refer to a TCompoundDataObject type) |
| dataTag | is the targeted data tag (if applicable) |
| arrayLength | is the size of the array to generate |
| static String de.desy.tine.definitions.TFormat.toString | ( | short | dataFormat | ) | [static] |
The string representation of the specified data format.
| dataFormat | is the tine data type for which the string representation is desired |
| String de.desy.tine.definitions.TFormat.toString | ( | ) |
| static TFormat de.desy.tine.definitions.TFormat.valueOf | ( | short | fmt | ) | [static] |
| fmt | is the targeted format as a short integer |
1.7.4