Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-.NET | API-Java | Examples | Downloads
page generated on 31.05.2023 - 04:45
Public Member Functions | List of all members
de.desy.tine.types.TCompoundDataObject Interface Reference

interface for most TINE complex data types More...

Inheritance diagram for de.desy.tine.types.TCompoundDataObject:
de.desy.tine.types.DBLINT de.desy.tine.types.IMAGE de.desy.tine.types.LNGINT de.desy.tine.types.TDS

Public Member Functions

byte[] toByteArray ()
 Active method to convert the relevant data fields of this compound data type into the underlying byte stream (data being sent). More...
 
void toStruct ()
 Active method to convert the underlying byte stream to the relevant data fields of this compound data type. More...
 
byte[] getByteArray ()
 Passive method that simple returns the reference to the underlying bytestream Used by TDataType(), TTaggedStruct, and THistoryRecord. More...
 
void setByteArray (byte[] byteArray)
 Sets the underlying bytestream to that give Used only by the HISTORY data type for manipulating compound data types. More...
 
int getSizeInBytes ()
 Used by TDataType, TTaggedStruct and other routines. More...
 
short getFormat ()
 Used by TDataType, TTaggedStruct and other routines. More...
 
String getTag ()
 Used by TDataType, TTaggedStruct and other routines. More...
 
double getDoubleValue ()
 Used only by the THistoryRecord class in retrieving the primary double floating point value for this compound data object (if available). More...
 
int getIntegerValue ()
 Used only by the THistoryRecord class in retrieving the primary 32-bit integer value for this compound data object (if available). More...
 
String getCsvString ()
 Used by TDataType.toCsvString() to get a valid parse-able string to of the objects data contents to supply to csv files.
 
void setFieldSeparator (String value)
 sets the field separator token used the the toString() method More...
 

Detailed Description

interface for most TINE complex data types

Author
duval

Member Function Documentation

◆ getByteArray()

byte [] de.desy.tine.types.TCompoundDataObject.getByteArray ( )

Passive method that simple returns the reference to the underlying bytestream Used by TDataType(), TTaggedStruct, and THistoryRecord.

Returns
a reference to the underlying bytestream (if any)

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.TDS, de.desy.tine.types.LNGINT, and de.desy.tine.types.DBLINT.

Referenced by de.desy.tine.dataUtils.TDataType.getData().

◆ getDoubleValue()

double de.desy.tine.types.TCompoundDataObject.getDoubleValue ( )

Used only by the THistoryRecord class in retrieving the primary double floating point value for this compound data object (if available).

If the compound data object has no double value, then a '0' is returned.

Returns
the canonical double value part of this compound data object.

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.LNGINT, de.desy.tine.types.TDS, and de.desy.tine.types.DBLINT.

◆ getFormat()

short de.desy.tine.types.TCompoundDataObject.getFormat ( )

Used by TDataType, TTaggedStruct and other routines.

Returns
the format code of this compound data type

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.TDS, de.desy.tine.types.LNGINT, and de.desy.tine.types.DBLINT.

Referenced by de.desy.tine.structUtils.TTaggedStructure.addField().

◆ getIntegerValue()

int de.desy.tine.types.TCompoundDataObject.getIntegerValue ( )

Used only by the THistoryRecord class in retrieving the primary 32-bit integer value for this compound data object (if available).

If the compound data object has no integer value, then a '0' is returned.

Returns
the canonical integer value part of this compound data object.

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.LNGINT, de.desy.tine.types.TDS, and de.desy.tine.types.DBLINT.

◆ getSizeInBytes()

int de.desy.tine.types.TCompoundDataObject.getSizeInBytes ( )

Used by TDataType, TTaggedStruct and other routines.

Returns
the size in bytes of the of this compound data type

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.TDS, de.desy.tine.types.LNGINT, and de.desy.tine.types.DBLINT.

Referenced by de.desy.tine.structUtils.TTaggedStructure.addField(), de.desy.tine.dataUtils.TDataType.getData(), and de.desy.tine.dataUtils.TDataType.putData().

◆ getTag()

String de.desy.tine.types.TCompoundDataObject.getTag ( )

Used by TDataType, TTaggedStruct and other routines.

Returns
the data tag of this compound data type

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.TDS, de.desy.tine.types.LNGINT, and de.desy.tine.types.DBLINT.

◆ setByteArray()

void de.desy.tine.types.TCompoundDataObject.setByteArray ( byte[]  byteArray)

Sets the underlying bytestream to that give Used only by the HISTORY data type for manipulating compound data types.

Parameters
byteArraya new reference to an underlying bytestream

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.TDS, de.desy.tine.types.LNGINT, and de.desy.tine.types.DBLINT.

◆ setFieldSeparator()

void de.desy.tine.types.TCompoundDataObject.setFieldSeparator ( String  value)

sets the field separator token used the the toString() method

Parameters
value

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.DBLINT, de.desy.tine.types.LNGINT, and de.desy.tine.types.TDS.

◆ toByteArray()

byte [] de.desy.tine.types.TCompoundDataObject.toByteArray ( )

Active method to convert the relevant data fields of this compound data type into the underlying byte stream (data being sent).

This primarily involves byte swapping from big-endian to little-endian. Used systematically by TDataType() and other routines.

Returns
a reference to the underlying bytestream (as a courtesy)

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.DBLINT, de.desy.tine.types.LNGINT, and de.desy.tine.types.TDS.

Referenced by de.desy.tine.dataUtils.TDataType.getData().

◆ toStruct()

void de.desy.tine.types.TCompoundDataObject.toStruct ( )

Active method to convert the underlying byte stream to the relevant data fields of this compound data type.

(data being received). This primarily involved swapping from little-endian to big-endian. Used systematically by TDataType() and other routines.

Returns

Implemented in de.desy.tine.types.IMAGE, de.desy.tine.types.DBLINT, de.desy.tine.types.TDS, and de.desy.tine.types.LNGINT.

Referenced by de.desy.tine.dataUtils.TDataType.getData().


The documentation for this interface was generated from the following file: