ITS
apiData.h File Reference

API used for C++ style data. More...

#include <QtGlobal>
Include dependency graph for apiData.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

quint64 extractUInt (char *data, int l, int *offset)
 extractUInt Extract an unsigned integer from byte array. More...
 
qint64 extractInt (char *data, int l, int *offset)
 extractInt Extract an signed integer from byte array. More...
 
void passBytes (int *offset, int l)
 passBytes Increase the offset. More...
 

Detailed Description

API used for C++ style data.

Definition in file apiData.h.

Function Documentation

◆ extractInt()

qint64 extractInt ( char *  data,
int  l,
int *  offset 
)

extractInt Extract an signed integer from byte array.

Parameters
dataThe byte array.
lLength in bytes of the number.
offsetOffset of the byte array.
Returns
The extracted signed integer.

Definition at line 22 of file apiData.cpp.

Referenced by AltitudeData::AltitudeData(), DestinationAreaData::DestinationAreaData(), gnDataRequestFromBin(), LongPositionVector::LongPositionVector(), and ReferencePositionData::ReferencePositionData().

Here is the caller graph for this function:

◆ extractUInt()

quint64 extractUInt ( char *  data,
int  l,
int *  offset 
)

extractUInt Extract an unsigned integer from byte array.

Parameters
dataThe byte array.
lLength in bytes of the number.
offsetOffset of the byte array.
Returns
The extracted unsigned integer.

Definition at line 3 of file apiData.cpp.

Referenced by ActionIDData::ActionIDData(), AltitudeData::AltitudeData(), AppDenmResultData::AppDenmResultData(), AppDenmTerminationData::AppDenmTerminationData(), AppDenmTriggerData::AppDenmTriggerData(), AppDenmUpdateData::AppDenmUpdateData(), DestinationAreaData::DestinationAreaData(), gnDataRequestFromBin(), LongPositionVector::LongPositionVector(), PosConfidenceEllipseData::PosConfidenceEllipseData(), UpperTester::utDenmTrigger(), and UpperTester::utDenmUpdate().

Here is the caller graph for this function:

◆ passBytes()

void passBytes ( int *  offset,
int  l 
)

passBytes Increase the offset.

Parameters
offsetThe offset to increase.
lThe number to add to the offset.

Definition at line 41 of file apiData.cpp.

Referenced by AppDenmTerminationData::AppDenmTerminationData(), AppDenmTriggerData::AppDenmTriggerData(), and AppDenmUpdateData::AppDenmUpdateData().

Here is the caller graph for this function: