• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

Public Types | Public Slots | Signals | Public Member Functions | Static Public Attributes | List of all members
TopLevelDataInformation Class Reference

#include <topleveldatainformation.h>

Inheritance diagram for TopLevelDataInformation:
Inheritance graph
[legend]

Public Types

typedef QVector< Ptr > List
 
typedef QSharedPointer
< TopLevelDataInformation > 
Ptr
 

Public Slots

void newModelActivated (Okteta::AbstractByteArrayModel *model)
 
void resetValidationState ()
 

Signals

void childrenAboutToBeInserted (DataInformation *sender, uint startIndex, uint endIndex)
 
void childrenAboutToBeRemoved (DataInformation *sender, uint startIndex, uint endIndex)
 
void childrenInserted (const DataInformation *sender, uint startIndex, uint endIndex)
 
void childrenRemoved (const DataInformation *sender, uint startIndex, uint endIndex)
 
void dataChanged ()
 

Public Member Functions

 TopLevelDataInformation (DataInformation *data, ScriptLogger *logger=0, QScriptEngine *engine=0, const QFileInfo &structureFile=QFileInfo())
 
virtual ~TopLevelDataInformation ()
 
void _childCountAboutToChange (DataInformation *sender, uint oldCount, uint newCount)
 
void _childCountChanged (DataInformation *sender, uint oldCount, uint newCount)
 
DataInformation * actualDataInformation () const
 
void enqueueReadData (PointerDataInformation *toRead)
 
int index () const
 
int indexOf (const DataInformation *const data) const
 
bool isLockedByDefault () const
 
bool isLockedFor (const Okteta::AbstractByteArrayModel *model) const
 
virtual bool isTopLevel () const
 
bool isValid () const
 
quint64 lockPositionFor (const Okteta::AbstractByteArrayModel *model) const
 
void lockPositionToOffset (Okteta::Address offset, const Okteta::AbstractByteArrayModel *model)
 
ScriptLogger * logger () const
 
void read (Okteta::AbstractByteArrayModel *input, Okteta::Address address, const Okteta::ArrayChangeMetricsList &changesList, bool forceRead)
 
QScriptEngine * scriptEngine () const
 
ScriptHandler * scriptHandler () const
 
void setActualDataInformation (DataInformation *newData)
 
void setChildDataChanged ()
 
void setDefaultLockOffset (Okteta::Address offset)
 
void setIndex (int newIndex)
 
void unlockPosition (const Okteta::AbstractByteArrayModel *model)
 
void validate ()
 
- 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 isArray () 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
 

Static Public Attributes

static const quint64 INVALID_OFFSET = std::numeric_limits<quint64>::max()
 

Detailed Description

Definition at line 46 of file topleveldatainformation.h.

Member Typedef Documentation

typedef QVector<Ptr> TopLevelDataInformation::List

Definition at line 62 of file topleveldatainformation.h.

typedef QSharedPointer<TopLevelDataInformation> TopLevelDataInformation::Ptr

Definition at line 61 of file topleveldatainformation.h.

Constructor & Destructor Documentation

TopLevelDataInformation::TopLevelDataInformation ( DataInformation *  data,
ScriptLogger *  logger = 0,
QScriptEngine *  engine = 0,
const QFileInfo &  structureFile = QFileInfo() 
)
explicit

create a new TopLevelDataInformation wrapping data

Parameters
datathe object to wrap (takes ownership). If data is dummy then this object is invalid
loggerthe logger to use (takes ownership). If null a new one is created
enginethe script engine to use. If null this object contains no dynamic elements
structureFilethe file which this was loaded from

Definition at line 43 of file topleveldatainformation.cpp.

TopLevelDataInformation::~TopLevelDataInformation ( )
virtual

Definition at line 61 of file topleveldatainformation.cpp.

Member Function Documentation

void TopLevelDataInformation::_childCountAboutToChange ( DataInformation *  sender,
uint  oldCount,
uint  newCount 
)
inline

Definition at line 184 of file topleveldatainformation.h.

void TopLevelDataInformation::_childCountChanged ( DataInformation *  sender,
uint  oldCount,
uint  newCount 
)
inline

Definition at line 192 of file topleveldatainformation.h.

DataInformation * TopLevelDataInformation::actualDataInformation ( ) const
inline

Definition at line 144 of file topleveldatainformation.h.

void TopLevelDataInformation::childrenAboutToBeInserted ( DataInformation *  sender,
uint  startIndex,
uint  endIndex 
)
signal

items are inserted before startIndex

void TopLevelDataInformation::childrenAboutToBeRemoved ( DataInformation *  sender,
uint  startIndex,
uint  endIndex 
)
signal

items are removed before startIndex

void TopLevelDataInformation::childrenInserted ( const DataInformation *  sender,
uint  startIndex,
uint  endIndex 
)
signal

items are inserted before startIndex

void TopLevelDataInformation::childrenRemoved ( const DataInformation *  sender,
uint  startIndex,
uint  endIndex 
)
signal

items are inserted before startIndex

void TopLevelDataInformation::dataChanged ( )
signal
void TopLevelDataInformation::enqueueReadData ( PointerDataInformation *  toRead)

Definition at line 115 of file topleveldatainformation.cpp.

int TopLevelDataInformation::index ( ) const
inline

Definition at line 154 of file topleveldatainformation.h.

int TopLevelDataInformation::indexOf ( const DataInformation *const  data) const

Definition at line 254 of file topleveldatainformation.cpp.

bool TopLevelDataInformation::isLockedByDefault ( ) const

Definition at line 212 of file topleveldatainformation.cpp.

bool TopLevelDataInformation::isLockedFor ( const Okteta::AbstractByteArrayModel *  model) const

Definition at line 242 of file topleveldatainformation.cpp.

bool TopLevelDataInformation::isTopLevel ( ) const
inlinevirtual

Implements DataInformationBase.

Definition at line 169 of file topleveldatainformation.h.

bool TopLevelDataInformation::isValid ( ) const
inline

Definition at line 149 of file topleveldatainformation.h.

quint64 TopLevelDataInformation::lockPositionFor ( const Okteta::AbstractByteArrayModel *  model) const

Definition at line 248 of file topleveldatainformation.cpp.

void TopLevelDataInformation::lockPositionToOffset ( Okteta::Address  offset,
const Okteta::AbstractByteArrayModel *  model 
)

Definition at line 184 of file topleveldatainformation.cpp.

ScriptLogger * TopLevelDataInformation::logger ( ) const
inline

Definition at line 174 of file topleveldatainformation.h.

void TopLevelDataInformation::newModelActivated ( Okteta::AbstractByteArrayModel *  model)
slot

Definition at line 228 of file topleveldatainformation.cpp.

void TopLevelDataInformation::read ( Okteta::AbstractByteArrayModel *  input,
Okteta::Address  address,
const Okteta::ArrayChangeMetricsList &  changesList,
bool  forceRead 
)

Reads the necessary data from input.

Parameters
inputthe byte array to read from
byteOrderthe byte order used to read the data (big/little endian), may be overridden by child structures
addressthe starting offset to read from, or if an offset is locked, the locked offset
changesListthe list with changes to , so that it is possible to check whether reading is necessary This parameter is only useful if the structure was locked to a specific position.
forceReadwhether to always read data, ignoring the change list

Definition at line 81 of file topleveldatainformation.cpp.

void TopLevelDataInformation::resetValidationState ( )
slot

Definition at line 76 of file topleveldatainformation.cpp.

QScriptEngine * TopLevelDataInformation::scriptEngine ( ) const

Definition at line 71 of file topleveldatainformation.cpp.

ScriptHandler * TopLevelDataInformation::scriptHandler ( ) const
inline

Definition at line 179 of file topleveldatainformation.h.

void TopLevelDataInformation::setActualDataInformation ( DataInformation *  newData)

Definition at line 261 of file topleveldatainformation.cpp.

void TopLevelDataInformation::setChildDataChanged ( )
inline

Definition at line 164 of file topleveldatainformation.h.

void TopLevelDataInformation::setDefaultLockOffset ( Okteta::Address  offset)

Definition at line 217 of file topleveldatainformation.cpp.

void TopLevelDataInformation::setIndex ( int  newIndex)
inline

Definition at line 159 of file topleveldatainformation.h.

void TopLevelDataInformation::unlockPosition ( const Okteta::AbstractByteArrayModel *  model)

Definition at line 198 of file topleveldatainformation.cpp.

void TopLevelDataInformation::validate ( )

Definition at line 65 of file topleveldatainformation.cpp.

Member Data Documentation

const quint64 TopLevelDataInformation::INVALID_OFFSET = std::numeric_limits<quint64>::max()
static

Definition at line 63 of file topleveldatainformation.h.


The documentation for this class was generated from the following files:
  • topleveldatainformation.h
  • topleveldatainformation.cpp
This file is part of the KDE documentation.
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.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal