okteta
#include <primitivedatainformation.h>

Protected Member Functions | |
PrimitiveDataInformationWrapper (const PrimitiveDataInformationWrapper &d) | |
![]() | |
PrimitiveDataInformation (const PrimitiveDataInformation &d) | |
virtual BitCount32 | offset (unsigned int index) const |
![]() | |
DataInformation (const DataInformation &) | |
void | setAdditionalFunction (AdditionalData::AdditionalDataType entry, const QScriptValue &value, const char *name) |
Protected Attributes | |
QScopedPointer < PrimitiveDataInformation > | mValue |
![]() | |
AdditionalData | mAdditionalData |
DataInformationEndianess | mByteOrder:2 |
bool | mHasBeenUpdated:1 |
bool | mHasBeenValidated:1 |
ScriptLogger::LogLevel | mLoggedData:2 |
QString | mName |
DataInformationBase * | mParent |
bool | mValidationSuccessful:1 |
bool | mWasAbleToRead:1 |
Additional Inherited Members | |
![]() | |
enum | Columns { ColumnName = 0, ColumnType, ColumnValue, COLUMN_COUNT } |
enum | DataInformationEndianess { EndianessFromSettings = 0, EndianessInherit, EndianessLittle, EndianessBig } |
![]() | |
static QString | basePrefix (int base) |
![]() | |
static const QString | binaryPrefix = QLatin1String("0b") |
static const QString | hexPrefix = QLatin1String("0x") |
static const QString | octalPrefix = QLatin1String("0o") |
![]() | |
static QVariant | eofReachedData (int role) |
Detailed Description
A base class for data types which just wrap an underlying primitive data type.
The basic operations (reading/writing/size/value) are simply delegated to the wrapped element.
This is used for pointers (wrapping differently sized integers) and enumerations/bitflags Due to the use of a PrimitiveDataInformation pointer as a member any primitive type can be wrapped. For example pointers using a bitfield value are possible and theoretically floating point enums (although these were not added due to float comparison issues - use the binary representation of an equally sized integer instead).
Definition at line 76 of file primitivedatainformation.h.
Constructor & Destructor Documentation
|
protected |
Definition at line 44 of file primitivedatainformation.cpp.
PrimitiveDataInformationWrapper::PrimitiveDataInformationWrapper | ( | const QString & | name, |
PrimitiveDataInformation * | valueType, | ||
DataInformation * | parent = 0 |
||
) |
takes ownership of valueType
Definition at line 50 of file primitivedatainformation.cpp.
|
inlinevirtual |
Definition at line 84 of file primitivedatainformation.h.
Member Function Documentation
|
inlinevirtual |
create a QWidget for the QItemDelegate
Implements DataInformation.
Definition at line 100 of file primitivedatainformation.h.
|
inlinevirtual |
get the needed data from the widget
Implements DataInformation.
Definition at line 98 of file primitivedatainformation.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.
Reimplemented in PointerDataInformation.
Definition at line 64 of file primitivedatainformation.cpp.
|
inlinevirtual |
Writes the current data contained in this object to out.
Implements DataInformation.
Definition at line 88 of file primitivedatainformation.h.
|
inlinevirtual |
Implements PrimitiveDataInformation.
Definition at line 104 of file primitivedatainformation.h.
|
inlinevirtual |
initialize the delegate widget with the correct data
Implements DataInformation.
Definition at line 96 of file primitivedatainformation.h.
|
inlinevirtual |
the size in bits of this element
Implements DataInformation.
Definition at line 94 of file primitivedatainformation.h.
|
inlinevirtual |
Implements PrimitiveDataInformation.
Definition at line 107 of file primitivedatainformation.h.
|
inlinevirtual |
Implements PrimitiveDataInformation.
Definition at line 102 of file primitivedatainformation.h.
|
virtual |
Implements PrimitiveDataInformation.
Definition at line 59 of file primitivedatainformation.cpp.
Member Data Documentation
|
protected |
Definition at line 116 of file primitivedatainformation.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.