okteta
datainformation.h
Go to the documentation of this file.
49 #define DATAINFORMATION_CLONE(type, supertype) DATAINFORMATION_CLONE_DECL(type, supertype) : supertype(d)
73 template<PrimitiveDataTypeEnum type> friend class PrimitiveArrayData; //to set mWasAbleToRead (when returning a script value)
111 virtual BitCount64 childPosition(const DataInformation* child, Okteta::Address start) const = 0;
226 void setAdditionalFunction(AdditionalData::AdditionalDataType entry, const QScriptValue& value, const char* name);
234 QSysInfo::Endian byteOrderFromSettings() const; //so there is no need to include structviewpreferences.h here
245 mutable ScriptLogger::LogLevel mLoggedData :2; //mutable is ugly but i guess it is the best solution
293 inline void DataInformation::setByteOrder(DataInformation::DataInformationEndianess newByteOrder)
QString valueString() const
by default just returns an empty QString
Definition: datainformation.h:414
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
QSysInfo::Endian effectiveByteOrder() const
Definition: datainformation.h:389
TopLevelDataInformation * topLevelDataInformation() const
Definition: datainformation.cpp:240
virtual unsigned int childCount() const =0
Definition: datainformation.h:278
virtual QString tooltipString() const
Definition: datainformation.cpp:202
virtual bool setData(const QVariant &value, Okteta::AbstractByteArrayModel *out, Okteta::Address address, BitCount64 bitsRemaining, quint8 bitOffset)=0
Writes the current data contained in this object to out.
void beginRead()
sets mWasAbleToRead to false for all children and this object.
Definition: datainformation.cpp:118
Definition: datainformation.h:84
Definition: datainformation.h:84
virtual Qt::ItemFlags flags(int column, bool fileLoaded=true) const
Definition: datainformation.h:251
Definition: endianness.h:33
void setValidationFunc(const QScriptValue &func)
Definition: datainformation.h:374
DataInformation(const DataInformation &)
Definition: datainformation.cpp:43
virtual DataInformation * childAt(unsigned int) const =0
Definition: datainformation.h:268
QScriptValue validationFunc() const
Definition: datainformation.h:359
virtual QString sizeString() const
needs to be virtual for bitfields
Definition: datainformation.cpp:56
void setToStringFunction(const QScriptValue &value)
Definition: datainformation.h:379
DataInformationEndianess byteOrder() const
Definition: datainformation.h:288
void setParent(DataInformationBase *newParent)
Definition: datainformation.h:303
virtual bool canHaveChildren() const =0
true for unions and structs and arrays
Definition: datainformation.h:273
void setByteOrder(DataInformationEndianess newEndianess)
Definition: datainformation.h:293
virtual qint64 readData(Okteta::AbstractByteArrayModel *input, Okteta::Address address, BitCount64 bitsRemaining, quint8 *bitOffset)=0
Reads the necessary data from input and returns the number of bytes read.
Definition: scripthandler.h:39
virtual int indexOf(const DataInformation *const data) const =0
Find the index of a DataInformation in this object, needed to calculate the row.
virtual bool isTopLevel() const =0
virtual QScriptValue toScriptValue(QScriptEngine *engine, ScriptHandlerInfo *handlerInfo)
This method is virtual since DummyDataInformation has to override it.
Definition: datainformation.cpp:275
virtual DataInformation * child(const QString &name) const
Looks for a child of this object with given name.
Definition: datainformation.cpp:228
virtual QVariant dataFromWidget(const QWidget *w) const =0
get the needed data from the widget
Definition: datainformation.h:84
void setCustomTypeName(const QString &customTypeName)
Set a custom string to be used for typeName() instead of the default.
Definition: datainformation.cpp:103
Definition: primitivearraydata.h:32
virtual QVariant data(int column, int role) const
get the necessary data (for the model)
Definition: datainformation.cpp:156
A base class for data types which just wrap an underlying primitive data type.
Definition: primitivedatainformation.h:76
ScriptLogger::LogLevel loggedData() const
whether data was logged from here (and which level it was)
Definition: datainformation.h:329
DataInformation * asDataInformation()
Definition: datainformationbase.h:107
Definition: scripthandlerinfo.h:39
virtual void resetValidationState()
Definition: datainformation.cpp:111
virtual BitCount64 positionInFile(Okteta::Address start) const
Definition: datainformation.cpp:75
void setLoggedData(ScriptLogger::LogLevel lvl) const
Definition: datainformation.h:334
bool validationSuccessful() const
Definition: datainformation.h:344
Definition: datainformationbase.h:44
virtual DataInformation * clone() const =0
virtual void setWidgetData(QWidget *w) const =0
initialize the delegate widget with the correct data
Definition: defaultscriptclass.h:36
virtual BitCount64 childPosition(const DataInformation *child, Okteta::Address start) const =0
void setAdditionalFunction(AdditionalData::AdditionalDataType entry, const QScriptValue &value, const char *name)
Definition: datainformation.cpp:139
void setUpdateFunc(const QScriptValue &func)
Definition: datainformation.h:369
virtual QWidget * createEditWidget(QWidget *parent) const =0
create a QWidget for the QItemDelegate
Definition: endianness.h:32
QScriptValue toStringFunction() const
Definition: datainformation.h:364
static QVariant eofReachedData(int role)
Definition: datainformation.cpp:189
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 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:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.