okteta
taggeduniondatainformation.h
Go to the documentation of this file.
41 inline explicit FieldInfo(const QString& n, const QScriptValue& s, const QVector<DataInformation*>& f)
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
virtual bool replaceChildAt(unsigned int index, DataInformation *newChild)
replaces child at index with newChild.
Definition: taggeduniondatainformation.cpp:235
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
virtual DataInformation * childAt(unsigned int index) const
Definition: taggeduniondatainformation.cpp:263
virtual bool isTaggedUnion() const
Definition: taggeduniondatainformation.h:85
virtual BitCount32 size() const
the size in bits of this element
Definition: taggeduniondatainformation.cpp:224
virtual ~TaggedUnionDataInformation()
Definition: taggeduniondatainformation.cpp:39
A class holding the data of a struct for Okteta.
Definition: taggeduniondatainformation.h:31
virtual unsigned int childCount() const
Definition: taggeduniondatainformation.cpp:275
virtual qint64 readData(Okteta::AbstractByteArrayModel *input, Okteta::Address address, BitCount64 bitsRemaining, quint8 *bitOffset)
Reads the necessary data from input and returns the number of bytes read.
Definition: taggeduniondatainformation.cpp:146
virtual DataInformation * child(const QString &name) const
Looks for a child of this object with given name.
Definition: datainformation.cpp:228
virtual int indexOf(const DataInformation *const data) const
Find the index of a DataInformation in this object, needed to calculate the row.
Definition: taggeduniondatainformation.cpp:243
QScriptValue selectIf
Definition: taggeduniondatainformation.h:46
virtual BitCount64 childPosition(const DataInformation *child, Okteta::Address start) const
Definition: taggeduniondatainformation.cpp:187
virtual QVariant data(int column, int role) const
get the necessary data (for the model)
Definition: datainformation.cpp:156
If selector is a function and it evaluates to true these fields are chosen.
Definition: taggeduniondatainformation.h:39
TaggedUnionDataInformation(const QString &name, DataInformation *parent=0)
Definition: taggeduniondatainformation.cpp:48
QVector< DataInformation * > fields
Definition: taggeduniondatainformation.h:47
FieldInfo(const QString &n, const QScriptValue &s, const QVector< DataInformation * > &f)
Definition: taggeduniondatainformation.h:41
QString name
The name this tagged union gets when this is selected.
Definition: taggeduniondatainformation.h:43
FieldInfo()
Definition: taggeduniondatainformation.h:43
void setAlternatives(const QVector< FieldInfo > &alternatives, bool emitSignal)
Definition: taggeduniondatainformation.cpp:73
void appendDefaultField(DataInformation *field, bool emitSignal)
Definition: taggeduniondatainformation.cpp:63
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.