okteta
#include <arraydatainformation.h>
Public Member Functions | |
ArrayDataInformation (const QString &name, uint length, DataInformation *childType, DataInformation *parent=0, const QScriptValue &lengthFuntion=QScriptValue()) | |
virtual | ~ArrayDataInformation () |
DataInformation * | arrayType () const |
virtual bool | canHaveChildren () const |
virtual DataInformation * | childAt (unsigned int idx) const |
virtual unsigned int | childCount () const |
virtual QVariant | childData (int row, int column, int role) const |
virtual Qt::ItemFlags | childFlags (int row, int column, bool fileLoaded=true) const |
virtual BitCount64 | childPosition (const DataInformation *child, Okteta::Address start) const |
BitCount32 | childSize (uint index) const |
QScriptValue | childToScriptValue (uint index, QScriptEngine *engine, ScriptHandlerInfo *handlerInfo) const |
QScriptValue | childType () const |
virtual QString | childTypeName (uint index) const |
virtual QWidget * | createChildEditWidget (uint index, QWidget *parent) const |
virtual QWidget * | createEditWidget (QWidget *parent) const |
virtual QVariant | dataFromChildWidget (uint index, const QWidget *w) const |
virtual QVariant | dataFromWidget (const QWidget *w) const |
virtual int | indexOf (const DataInformation *const data) const |
virtual bool | isArray () const |
uint | length () const |
QScriptValue | lengthFunction () const |
virtual qint64 | readData (Okteta::AbstractByteArrayModel *input, Okteta::Address address, BitCount64 bitsRemaining, quint8 *bitOffset) |
bool | setArrayLength (uint newLength) |
void | setArrayType (DataInformation *newChildtype) |
virtual bool | setChildData (uint row, const QVariant &value, Okteta::AbstractByteArrayModel *out, Okteta::Address address, BitCount64 bitsRemaining, quint8 bitOffset) |
virtual void | setChildWidgetData (uint index, QWidget *w) const |
virtual bool | setData (const QVariant &value, Okteta::AbstractByteArrayModel *out, Okteta::Address address, BitCount64 bitsRemaining, quint8 bitOffset) |
void | setLengthFunction (QScriptValue newFunc) |
virtual void | setWidgetData (QWidget *w) const |
virtual BitCount32 | size () const |
Public Member Functions inherited from DataInformationWithDummyChildren | |
DataInformationWithDummyChildren (const QString &name, DataInformationBase *parent=0) | |
virtual | ~DataInformationWithDummyChildren () |
Public Member Functions inherited from DataInformation | |
DataInformation (const QString &name, DataInformationBase *parent=NULL) | |
virtual | ~DataInformation () |
void | beginRead () |
DataInformationEndianess | byteOrder () const |
virtual DataInformation * | child (const QString &name) const |
virtual DataInformation * | clone () const =0 |
virtual QVariant | data (int column, int role) const |
QSysInfo::Endian | effectiveByteOrder () const |
virtual Qt::ItemFlags | flags (int column, bool fileLoaded=true) const |
QString | fullObjectPath () const |
bool | hasBeenUpdated () const |
bool | hasBeenValidated () const |
virtual bool | isTopLevel () const |
QDebug | logError () const |
ScriptLogger::LogLevel | loggedData () const |
ScriptLogger * | logger () const |
QDebug | logInfo () const |
QDebug | logWarn () const |
DataInformation * | mainStructure () |
QString | name () const |
DataInformationBase * | parent () const |
virtual BitCount64 | positionInFile (Okteta::Address start) const |
virtual void | resetValidationState () |
int | row () const |
void | setByteOrder (DataInformationEndianess newEndianess) |
void | setCustomTypeName (const QString &customTypeName) |
void | setLoggedData (ScriptLogger::LogLevel lvl) const |
void | setName (const QString &newName) |
void | setParent (DataInformationBase *newParent) |
void | setToStringFunction (const QScriptValue &value) |
void | setUpdateFunc (const QScriptValue &func) |
void | setValidationFunc (const QScriptValue &func) |
virtual QString | sizeString () const |
virtual QString | tooltipString () const |
TopLevelDataInformation * | topLevelDataInformation () const |
virtual QScriptValue | toScriptValue (QScriptEngine *engine, ScriptHandlerInfo *handlerInfo) |
QScriptValue | toScriptValue (TopLevelDataInformation *top) |
QScriptValue | toStringFunction () const |
QString | typeName () const |
QScriptValue | updateFunc () const |
QString | validationError () const |
QScriptValue | validationFunc () const |
bool | validationSuccessful () const |
QString | valueString () const |
bool | wasAbleToRead () const |
Public Member Functions inherited from DataInformationBase | |
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 | 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 |
Detailed Description
Definition at line 36 of file arraydatainformation.h.
Constructor & Destructor Documentation
ArrayDataInformation::ArrayDataInformation | ( | const QString & | name, |
uint | length, | ||
DataInformation * | childType, | ||
DataInformation * | parent = 0 , |
||
const QScriptValue & | lengthFuntion = QScriptValue() |
||
) |
creates a new array with initial length length
.
takes ownership over childType
length should be > 0
Definition at line 36 of file arraydatainformation.cpp.
|
virtual |
Definition at line 64 of file arraydatainformation.cpp.
Member Function Documentation
|
inline |
Definition at line 168 of file arraydatainformation.h.
|
inlinevirtual |
true for unions and structs and arrays
Implements DataInformation.
Definition at line 128 of file arraydatainformation.h.
|
inlinevirtual |
Implements DataInformation.
Definition at line 118 of file arraydatainformation.h.
|
inlinevirtual |
Implements DataInformation.
Definition at line 123 of file arraydatainformation.h.
|
virtual |
the data of child at index row
.
Useful for arrays, or DataInformations with fake children
Implements DataInformationWithDummyChildren.
Definition at line 121 of file arraydatainformation.cpp.
|
inlinevirtual |
Implements DataInformationWithDummyChildren.
Definition at line 143 of file arraydatainformation.h.
|
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
Implements DataInformation.
Definition at line 144 of file arraydatainformation.cpp.
|
inlinevirtual |
Implements DataInformationWithDummyChildren.
Definition at line 138 of file arraydatainformation.h.
|
virtual |
Implements DataInformationWithDummyChildren.
Definition at line 198 of file arraydatainformation.cpp.
QScriptValue ArrayDataInformation::childType | ( | ) | const |
Definition at line 116 of file arraydatainformation.cpp.
|
inlinevirtual |
Implements DataInformationWithDummyChildren.
Definition at line 163 of file arraydatainformation.h.
|
inlinevirtual |
create a QWidget for the QItemDelegate
Implements DataInformationWithDummyChildren.
Definition at line 148 of file arraydatainformation.h.
create a QWidget for the QItemDelegate
Implements DataInformation.
Definition at line 127 of file arraydatainformation.cpp.
|
inlinevirtual |
get the needed data from the widget
Implements DataInformationWithDummyChildren.
Definition at line 153 of file arraydatainformation.h.
|
virtual |
get the needed data from the widget
Implements DataInformation.
Definition at line 133 of file arraydatainformation.cpp.
|
inlinevirtual |
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 DataInformationWithDummyChildren.
Definition at line 133 of file arraydatainformation.h.
|
inlinevirtual |
Reimplemented from DataInformationBase.
Definition at line 113 of file arraydatainformation.h.
|
inline |
Definition at line 98 of file arraydatainformation.h.
|
inline |
Definition at line 173 of file arraydatainformation.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
Implements DataInformation.
Definition at line 152 of file arraydatainformation.cpp.
bool ArrayDataInformation::setArrayLength | ( | uint | newLength | ) |
Definition at line 68 of file arraydatainformation.cpp.
void ArrayDataInformation::setArrayType | ( | DataInformation * | newChildtype | ) |
Sets the new array type.
- Parameters
-
newChildtype the new type (ownership is always taken, do not use anymore after this call!)
Definition at line 83 of file arraydatainformation.cpp.
|
virtual |
Implements DataInformationWithDummyChildren.
Definition at line 173 of file arraydatainformation.cpp.
|
inlinevirtual |
initialize the delegate widget with the correct data
Implements DataInformationWithDummyChildren.
Definition at line 158 of file arraydatainformation.h.
|
virtual |
Writes the current data contained in this object to out.
Implements DataInformation.
Definition at line 186 of file arraydatainformation.cpp.
|
inline |
Definition at line 178 of file arraydatainformation.h.
|
virtual |
initialize the delegate widget with the correct data
Implements DataInformation.
Definition at line 139 of file arraydatainformation.cpp.
|
inlinevirtual |
the size in bits of this element
Implements DataInformation.
Definition at line 108 of file arraydatainformation.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.