TINE data format types. More...
Public Member Functions | |
short | getValue () |
Returns short value for format enum. More... | |
String | toString () |
The string representation of this TFormat object. More... | |
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). More... | |
static boolean | containsString (short dataFormat) |
Determines whether the given format contains a string type variable (either fixed-capacity or free) More... | |
static boolean | beginsWithString (short dataFormat) |
Determines whether the given format begins with a string type variable (either fixed-capacity or free) More... | |
static boolean | endsWithString (short dataFormat) |
Determines whether the given format ends with a string type variable (either fixed-capacity or free) More... | |
static boolean | isName (short dataFormat) |
static boolean | isBitfield (short dataFormat) |
static boolean | isStructFormat (short dataFormat) |
static boolean | isNumberFormat (short dataFormat) |
static boolean | isTimeFormat (short dataFormat) |
static boolean | isTaggedStruct (short dataFormat, String dataTag) |
static boolean | isCompoundFormat (short dataFormat) |
determines whether the given format is a compound data type More... | |
static TCompoundDataObject[] | makeCompoundDataObjectArray (short dataFormat, String dataTag, int arrayLength) |
makes an array of compound data type objects according to the input given More... | |
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. More... | |
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) More... | |
static boolean | isVariableLengthString (short dataFormat) |
Determines whether the given format is a variable length type. More... | |
static boolean | isAdjustableLength (short dataFormat) |
Determines whether the input format is of adjustable length (one of CF_STRING, CF_AIMAGE, CF_ASPECTRUM) More... | |
static boolean | isString (short dataFormat) |
static boolean | formatsCanMap (short dataFormat1, short dataFormat2, boolean input) |
Returns true if the input formats can be converted. More... | |
static int | formatSizeOf (short dataFormat) |
The size in bytes of the specified data format. More... | |
static String | toString (int dataFormat) |
The string representation of the specified data format. More... | |
static String | getFormatTag (String dataFormatString) |
Parses an input format string and extracts the given data tag. More... | |
static short | getFormatArrayType (String dataFormatString) |
Parses an input format string and extracts the given array type. More... | |
static short | getFormatCode (String dataFormatString) |
The format code of the specified String. More... | |
static int | getCarriedFormatSize (String tag) |
Returns the size in bytes of a given format type. More... | |
static TFormat | valueOf (short fmt) |
TINE data format types.
|
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 |
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 |
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 |
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 |
The size in bytes of the specified data format.
dataFormat | is the tine data type for which the size in bytes is desired |
Referenced by de.desy.tine.structUtils.TTaggedStructure.addField(), de.desy.tine.definitions.TFormat.getCarriedFormatSize(), de.desy.tine.dataUtils.TDataType.getData(), and de.desy.tine.dataUtils.TDataType.putData().
|
static |
dataFormat | is the targeted format |
|
static |
Returns the size in bytes of a given format type.
tag | is the format string representation |
References de.desy.tine.definitions.TFormat.formatSizeOf(), and de.desy.tine.definitions.TFormat.getFormatCode().
|
static |
Parses an input format string and extracts the given array type.
dataFormatString | is the data format string which is to be parsed |
References de.desy.tine.definitions.TArrayType.getType().
|
static |
dataFormat | is the targeted format data type |
|
static |
The format code of the specified String.
dataFormatString | is the string representation for which the tine data type is desired |
Referenced by de.desy.tine.definitions.TFormat.getCarriedFormatSize(), and de.desy.tine.dataUtils.TDataType.toTDataType().
|
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 |
dataFormat | is the targeted format data type |
Referenced by de.desy.tine.structUtils.TTaggedStructure.addField().
|
static |
Parses an input format string and extracts the given data tag.
dataFormatString | is the data format string which is to be parsed |
|
static |
dataFormat | is the targeted format |
short de.desy.tine.definitions.TFormat.getValue | ( | ) |
Returns short value for format enum.
|
static |
dataFormat | is the targeted format |
Referenced by de.desy.tine.structUtils.TTaggedStructure.addField().
|
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 Referenced by de.desy.tine.dataUtils.TDataType.getArrayLength().
|
static |
dataFormat | is the targeted format |
true
if the format is a bitfield data type Referenced by de.desy.tine.definitions.TFormat.isPlotable(), and de.desy.tine.dataUtils.TDataType.setArrayDelimiter().
|
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 |
dataFormat | is the targeted format |
true
if the format is a fixed-length string type Referenced by de.desy.tine.dataUtils.TDataType.putData().
|
static |
dataFormat | is the targeted format |
true
if the given format represents a NAME-Integer pair Referenced by de.desy.tine.dataUtils.TDataType.putData().
|
static |
dataFormat | is the targeted format |
true
if the format represents a simple number type
|
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
. References de.desy.tine.definitions.TFormat.isBitfield().
|
static |
dataFormat | is the targeted format |
|
static |
dataFormat | is the targeted format |
true
if the format data type represents a string
|
static |
dataFormat | is the targeted format |
true
if the format is a structure
|
static |
dataFormat | is the targeted format |
true
if the format is a tagged structure
|
static |
dataFormat | is the targeted format |
true
if the format represents a compound type with a timestamp as the last element
|
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 |
Determines whether the given format is a variable length type.
dataFormat | is the tine format to be examined |
true
or false
.
|
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 |
String de.desy.tine.definitions.TFormat.toString | ( | ) |
The string representation of this TFormat object.
Referenced by de.desy.tine.definitions.TFormat.toString().
|
static |
The string representation of the specified data format.
dataFormat | is the tine data type for which the string representation is desired |
References de.desy.tine.definitions.TFormat.toString().
Referenced by de.desy.tine.queryUtils.TQuery.getDeviceServerReport(), and de.desy.tine.dataUtils.TDataType.putData().
|
static |
fmt | is the targeted format as a short integer |
Referenced by de.desy.tine.accesslayer.ChannelFactory.getChannel().