okteta
#include <topleveldatainformation.h>
|
| TopLevelDataInformation (DataInformation *data, ScriptLogger *logger=0, QScriptEngine *engine=0, const QFileInfo &structureFile=QFileInfo()) |
|
virtual | ~TopLevelDataInformation () |
|
void | _childCountAboutToChange (DataInformation *sender, uint oldCount, uint newCount) |
|
void | _childCountChanged (DataInformation *sender, uint oldCount, uint newCount) |
|
DataInformation * | actualDataInformation () const |
|
void | enqueueReadData (PointerDataInformation *toRead) |
|
int | index () const |
|
int | indexOf (const DataInformation *const data) const |
|
bool | isLockedByDefault () const |
|
bool | isLockedFor (const Okteta::AbstractByteArrayModel *model) const |
|
virtual bool | isTopLevel () const |
|
bool | isValid () const |
|
quint64 | lockPositionFor (const Okteta::AbstractByteArrayModel *model) const |
|
void | lockPositionToOffset (Okteta::Address offset, const Okteta::AbstractByteArrayModel *model) |
|
ScriptLogger * | logger () const |
|
void | read (Okteta::AbstractByteArrayModel *input, Okteta::Address address, const Okteta::ArrayChangeMetricsList &changesList, bool forceRead) |
|
QScriptEngine * | scriptEngine () const |
|
ScriptHandler * | scriptHandler () const |
|
void | setActualDataInformation (DataInformation *newData) |
|
void | setChildDataChanged () |
|
void | setDefaultLockOffset (Okteta::Address offset) |
|
void | setIndex (int newIndex) |
|
void | unlockPosition (const Okteta::AbstractByteArrayModel *model) |
|
void | validate () |
|
| DataInformationBase () |
|
virtual | ~DataInformationBase () |
|
ArrayDataInformation * | asArray () |
|
const ArrayDataInformation * | asArray () const |
|
AbstractBitfieldDataInformation * | asBitfield () |
|
const
AbstractBitfieldDataInformation * | asBitfield () const |
|
DataInformation * | asDataInformation () |
|
const DataInformation * | asDataInformation () const |
|
DummyDataInformation * | asDummy () |
|
const DummyDataInformation * | asDummy () const |
|
EnumDataInformation * | asEnum () |
|
const EnumDataInformation * | asEnum () const |
|
PointerDataInformation * | asPointer () |
|
const PointerDataInformation * | asPointer () const |
|
PrimitiveDataInformation * | asPrimitive () |
|
const PrimitiveDataInformation * | asPrimitive () const |
|
StringDataInformation * | asString () |
|
const StringDataInformation * | asString () const |
|
StructureDataInformation * | asStruct () |
|
const StructureDataInformation * | asStruct () const |
|
TaggedUnionDataInformation * | asTaggedUnion () |
|
const TaggedUnionDataInformation * | asTaggedUnion () const |
|
TopLevelDataInformation * | asTopLevel () |
|
const TopLevelDataInformation * | asTopLevel () const |
|
UnionDataInformation * | asUnion () |
|
const UnionDataInformation * | asUnion () const |
|
virtual bool | isArray () const |
|
virtual bool | isBitfield () const |
|
virtual bool | isDummy () const |
|
virtual bool | isEnum () const |
|
virtual bool | isPointer () const |
|
virtual bool | isPrimitive () const |
|
virtual bool | isString () const |
|
virtual bool | isStruct () const |
|
virtual bool | isTaggedUnion () const |
|
virtual bool | isUnion () const |
|
|
static const quint64 | INVALID_OFFSET = std::numeric_limits<quint64>::max() |
|
Definition at line 46 of file topleveldatainformation.h.
TopLevelDataInformation::TopLevelDataInformation |
( |
DataInformation * |
data, |
|
|
ScriptLogger * |
logger = 0 , |
|
|
QScriptEngine * |
engine = 0 , |
|
|
const QFileInfo & |
structureFile = QFileInfo() |
|
) |
| |
|
explicit |
create a new TopLevelDataInformation wrapping data
- Parameters
-
data | the object to wrap (takes ownership). If data is dummy then this object is invalid |
logger | the logger to use (takes ownership). If null a new one is created |
engine | the script engine to use. If null this object contains no dynamic elements |
structureFile | the file which this was loaded from |
Definition at line 43 of file topleveldatainformation.cpp.
TopLevelDataInformation::~TopLevelDataInformation |
( |
| ) |
|
|
virtual |
void TopLevelDataInformation::_childCountAboutToChange |
( |
DataInformation * |
sender, |
|
|
uint |
oldCount, |
|
|
uint |
newCount |
|
) |
| |
|
inline |
void TopLevelDataInformation::_childCountChanged |
( |
DataInformation * |
sender, |
|
|
uint |
oldCount, |
|
|
uint |
newCount |
|
) |
| |
|
inline |
void TopLevelDataInformation::childrenAboutToBeInserted |
( |
DataInformation * |
sender, |
|
|
uint |
startIndex, |
|
|
uint |
endIndex |
|
) |
| |
|
signal |
items are inserted before startIndex
void TopLevelDataInformation::childrenAboutToBeRemoved |
( |
DataInformation * |
sender, |
|
|
uint |
startIndex, |
|
|
uint |
endIndex |
|
) |
| |
|
signal |
items are removed before startIndex
void TopLevelDataInformation::childrenInserted |
( |
const DataInformation * |
sender, |
|
|
uint |
startIndex, |
|
|
uint |
endIndex |
|
) |
| |
|
signal |
items are inserted before startIndex
void TopLevelDataInformation::childrenRemoved |
( |
const DataInformation * |
sender, |
|
|
uint |
startIndex, |
|
|
uint |
endIndex |
|
) |
| |
|
signal |
items are inserted before startIndex
void TopLevelDataInformation::dataChanged |
( |
| ) |
|
|
signal |
int TopLevelDataInformation::index |
( |
| ) |
const |
|
inline |
int TopLevelDataInformation::indexOf |
( |
const DataInformation *const |
data | ) |
const |
bool TopLevelDataInformation::isLockedByDefault |
( |
| ) |
const |
bool TopLevelDataInformation::isTopLevel |
( |
| ) |
const |
|
inlinevirtual |
bool TopLevelDataInformation::isValid |
( |
| ) |
const |
|
inline |
Reads the necessary data from input
.
- Parameters
-
input | the byte array to read from |
byteOrder | the byte order used to read the data (big/little endian), may be overridden by child structures |
address | the starting offset to read from, or if an offset is locked, the locked offset |
changesList | the list with changes to , so that it is possible to check whether reading is necessary This parameter is only useful if the structure was locked to a specific position. |
forceRead | whether to always read data, ignoring the change list |
Definition at line 81 of file topleveldatainformation.cpp.
void TopLevelDataInformation::resetValidationState |
( |
| ) |
|
|
slot |
QScriptEngine * TopLevelDataInformation::scriptEngine |
( |
| ) |
const |
void TopLevelDataInformation::setActualDataInformation |
( |
DataInformation * |
newData | ) |
|
void TopLevelDataInformation::setChildDataChanged |
( |
| ) |
|
|
inline |
void TopLevelDataInformation::setDefaultLockOffset |
( |
Okteta::Address |
offset | ) |
|
void TopLevelDataInformation::setIndex |
( |
int |
newIndex | ) |
|
|
inline |
void TopLevelDataInformation::validate |
( |
| ) |
|
const quint64 TopLevelDataInformation::INVALID_OFFSET = std::numeric_limits<quint64>::max() |
|
static |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
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.