okteta
topleveldatainformation.cpp
Go to the documentation of this file.
81 void TopLevelDataInformation::read(Okteta::AbstractByteArrayModel* input, Okteta::Address address,
94 mScriptHandler->updateDataInformation(mData.data()); //unlikely that this is useful, but maybe someone needs it
137 const Okteta::Address structureSizeInBytes = (mData->size() / 8) + (mData->size() % 8 == 0 ? 0 : 1);
184 void TopLevelDataInformation::lockPositionToOffset(Okteta::Address offset, const Okteta::AbstractByteArrayModel* model)
193 kDebug() << mData->name() << ": Locking start offset in model" << model << "to position" << hex << offset;
195 connect(model, SIGNAL(destroyed(QObject*)), this, SLOT(removeByteArrayModelFromList(QObject*)));
201 kDebug() << "removing lock at position" << mLockedPositions.value(model) << ", model=" << model;
208 const Okteta::AbstractByteArrayModel* model = static_cast<Okteta::AbstractByteArrayModel*>(obj);
238 kDebug() << "new model activated:" << model << ", locked at 0x" << QString::number(mDefaultLockOffset, 16);
248 quint64 TopLevelDataInformation::lockPositionFor(const Okteta::AbstractByteArrayModel* model) const
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
void read(Okteta::AbstractByteArrayModel *input, Okteta::Address address, const Okteta::ArrayChangeMetricsList &changesList, bool forceRead)
Reads the necessary data from input.
Definition: topleveldatainformation.cpp:81
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
void unlockPosition(const Okteta::AbstractByteArrayModel *model)
Definition: topleveldatainformation.cpp:198
void dataChanged()
ScriptLogger * logger() const
Definition: topleveldatainformation.h:174
void newModelActivated(Okteta::AbstractByteArrayModel *model)
Definition: topleveldatainformation.cpp:228
void setActualDataInformation(DataInformation *newData)
Definition: topleveldatainformation.cpp:261
virtual Size size() const =0
virtual ~TopLevelDataInformation()
Definition: topleveldatainformation.cpp:61
bool isLockedByDefault() const
Definition: topleveldatainformation.cpp:212
void resetValidationState()
Definition: topleveldatainformation.cpp:76
void enqueueReadData(PointerDataInformation *toRead)
Definition: topleveldatainformation.cpp:115
QScriptEngine * newEngine()
Definition: scriptengineinitializer.cpp:106
Definition: scripthandler.h:39
QScriptEngine * scriptEngine() const
Definition: topleveldatainformation.cpp:71
bool isLockedFor(const Okteta::AbstractByteArrayModel *model) const
Definition: topleveldatainformation.cpp:242
int indexOf(const DataInformation *const data) const
Definition: topleveldatainformation.cpp:254
void setDefaultLockOffset(Okteta::Address offset)
Definition: topleveldatainformation.cpp:217
Size removeLength() const
Definition: arraychangemetrics.h:142
quint64 lockPositionFor(const Okteta::AbstractByteArrayModel *model) const
Definition: topleveldatainformation.cpp:248
void lockPositionToOffset(Okteta::Address offset, const Okteta::AbstractByteArrayModel *model)
Definition: topleveldatainformation.cpp:184
Size lengthChange() const
Definition: arraychangemetrics.h:144
static const quint64 INVALID_OFFSET
Definition: topleveldatainformation.h:63
TopLevelDataInformation(DataInformation *data, ScriptLogger *logger=0, QScriptEngine *engine=0, const QFileInfo &structureFile=QFileInfo())
create a new TopLevelDataInformation wrapping data
Definition: topleveldatainformation.cpp:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.