okteta
#include <pointerdatainformation.h>
Protected Attributes | |
QScopedPointer< DataInformation > | mPointerTarget |
Protected Attributes inherited from PrimitiveDataInformationWrapper | |
QScopedPointer < PrimitiveDataInformation > | mValue |
Protected Attributes inherited from DataInformation | |
AdditionalData | mAdditionalData |
DataInformationEndianess | mByteOrder:2 |
bool | mHasBeenUpdated:1 |
bool | mHasBeenValidated:1 |
ScriptLogger::LogLevel | mLoggedData:2 |
QString | mName |
DataInformationBase * | mParent |
bool | mValidationSuccessful:1 |
bool | mWasAbleToRead:1 |
Additional Inherited Members | |
Public Types inherited from DataInformation | |
enum | Columns { ColumnName = 0, ColumnType, ColumnValue, COLUMN_COUNT } |
enum | DataInformationEndianess { EndianessFromSettings = 0, EndianessInherit, EndianessLittle, EndianessBig } |
Static Public Member Functions inherited from PrimitiveDataInformation | |
static QString | basePrefix (int base) |
Static Public Attributes inherited from PrimitiveDataInformation | |
static const QString | binaryPrefix = QLatin1String("0b") |
static const QString | hexPrefix = QLatin1String("0x") |
static const QString | octalPrefix = QLatin1String("0o") |
Protected Member Functions inherited from PrimitiveDataInformationWrapper | |
PrimitiveDataInformationWrapper (const PrimitiveDataInformationWrapper &d) | |
Protected Member Functions inherited from PrimitiveDataInformation | |
PrimitiveDataInformation (const PrimitiveDataInformation &d) | |
virtual BitCount32 | offset (unsigned int index) const |
Protected Member Functions inherited from DataInformation | |
DataInformation (const DataInformation &) | |
void | setAdditionalFunction (AdditionalData::AdditionalDataType entry, const QScriptValue &value, const char *name) |
Static Protected Member Functions inherited from DataInformation | |
static QVariant | eofReachedData (int role) |
Detailed Description
Definition at line 30 of file pointerdatainformation.h.
Constructor & Destructor Documentation
PointerDataInformation::PointerDataInformation | ( | QString | name, |
DataInformation * | childType, | ||
PrimitiveDataInformation * | valueType, | ||
DataInformation * | parent | ||
) |
creates a new pointer takes ownership over childType
and valueType
Definition at line 37 of file pointerdatainformation.cpp.
|
virtual |
Definition at line 50 of file pointerdatainformation.cpp.
Member Function Documentation
|
inlinevirtual |
true for unions and structs and arrays
Reimplemented from PrimitiveDataInformation.
Definition at line 74 of file pointerdatainformation.h.
|
virtual |
Definition at line 139 of file pointerdatainformation.cpp.
|
virtual |
Reimplemented from PrimitiveDataInformation.
Definition at line 134 of file pointerdatainformation.cpp.
|
virtual |
- Parameters
-
child the direct child we want to find the address for start the start of the root element
- Returns
- the address of
child
in the file
Reimplemented from PrimitiveDataInformation.
Definition at line 77 of file pointerdatainformation.cpp.
void PointerDataInformation::delayedReadData | ( | Okteta::AbstractByteArrayModel * | input, |
Okteta::Address | address | ||
) |
Called once the whole structure has been read.
Now we can evaluate what we are pointing at.
- Parameters
-
input the input address the address of the root structure start
Definition at line 91 of file pointerdatainformation.cpp.
|
virtual |
Find the index of a DataInformation in this object, needed to calculate the row.
- Returns
- the index of
data
or -1 if not found
Reimplemented from PrimitiveDataInformation.
Definition at line 85 of file pointerdatainformation.cpp.
|
inlinevirtual |
Reimplemented from DataInformationBase.
Definition at line 79 of file pointerdatainformation.h.
|
inline |
Definition at line 84 of file pointerdatainformation.h.
|
inline |
Definition at line 96 of file pointerdatainformation.h.
|
virtual |
Reads the necessary data from input
and returns the number of bytes read.
- Parameters
-
input the byte array to read from address the starting offset to read from bitsRemaining the number of bits remaining in out
bitOffset the bits that have already been read from the current byte (should be modified in this method)
- Returns
- the number of bits read or
-1
if none were read
Reimplemented from PrimitiveDataInformationWrapper.
Definition at line 60 of file pointerdatainformation.cpp.
|
inline |
Set a new pointer target.
- Parameters
-
target the new target (ownership is taken)
Definition at line 89 of file pointerdatainformation.h.
bool PointerDataInformation::setPointerType | ( | DataInformation * | type | ) |
Set a new pointer target.
- Parameters
-
type the new pointer type (ownership is taken if return value is true)
- Returns
- true if type was set, false if not
Definition at line 145 of file pointerdatainformation.cpp.
Member Data Documentation
|
protected |
Definition at line 71 of file pointerdatainformation.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.