okteta
#include <stringdata.h>
Public Types | |
enum | TerminationMode { None = 0x0, Sequence = 0x1, CharCount = 0x2, ByteCount = 0x4, SeqOrCharCount = CharCount + Sequence, SeqOrByteCount = ByteCount + Sequence } |
Public Member Functions | |
StringData (StringDataInformation *parent) | |
virtual | ~StringData () |
virtual QString | charType () const =0 |
virtual QString | completeString (bool skipInvalid=false) const =0 |
void | copyTerminationFrom (const StringData *data) |
virtual uint | count () const =0 |
uint | maxByteCount () const |
uint | maxCharCount () const |
virtual qint64 | read (Okteta::AbstractByteArrayModel *input, Okteta::Address address, BitCount64 bitsRemaining)=0 |
virtual void | setLittleEndian (bool littleEndian) |
void | setMaxByteCount (uint count) |
void | setMaxCharCount (uint count) |
void | setTerminationCodePoint (quint32 term) |
void | setTerminationMode (TerminationMode mode) |
virtual BitCount32 | size () const =0 |
virtual BitCount32 | sizeAt (uint index) const =0 |
virtual QString | stringValue (int row) const =0 |
uint | terminationCodePoint () const |
TerminationMode | terminationMode () const |
virtual QString | typeName () const =0 |
bool | wasEof () const |
Static Public Attributes | |
static const char | ASCII_MAX = 0x7f |
static const uint | BMP_MAX = 0xffff |
static const uint | UNICODE_MAX = 0x10ffff |
Protected Attributes | |
bool | mEofReached: 1 |
union { | |
uint maxBytes | |
uint maxChars | |
} | mLength |
bool | mLittleEndian: 1 |
uint | mMode: 4 |
StringDataInformation * | mParent |
quint32 | mTerminationCodePoint |
Detailed Description
Definition at line 36 of file stringdata.h.
Member Enumeration Documentation
Enumerator | |
---|---|
None | |
Sequence | |
CharCount | |
ByteCount | |
SeqOrCharCount | |
SeqOrByteCount |
Definition at line 41 of file stringdata.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 27 of file stringdata.cpp.
|
virtual |
Definition at line 34 of file stringdata.cpp.
Member Function Documentation
|
pure virtual |
Implemented in AsciiStringData, Latin1StringData, Utf8StringData, Utf16StringData, and Utf32StringData.
|
pure virtual |
Implemented in AsciiStringData, Latin1StringData, Utf8StringData, Utf16StringData, and Utf32StringData.
|
inline |
Definition at line 126 of file stringdata.h.
|
pure virtual |
Implemented in AsciiStringData, Latin1StringData, Utf8StringData, Utf16StringData, and Utf32StringData.
|
inline |
Definition at line 102 of file stringdata.h.
|
inline |
Definition at line 114 of file stringdata.h.
|
pure virtual |
Implemented in Utf16StringData, AsciiStringData, Latin1StringData, Utf32StringData, and Utf8StringData.
|
inlinevirtual |
by default just sets value, if more logic is needed can be overridden
Definition at line 149 of file stringdata.h.
|
inline |
Definition at line 107 of file stringdata.h.
|
inline |
Definition at line 119 of file stringdata.h.
void StringData::setTerminationCodePoint | ( | quint32 | term | ) |
Definition at line 39 of file stringdata.cpp.
|
inline |
Definition at line 138 of file stringdata.h.
|
pure virtual |
Implemented in Utf16StringData, AsciiStringData, Latin1StringData, Utf8StringData, and Utf32StringData.
|
pure virtual |
Implemented in Utf16StringData, AsciiStringData, Latin1StringData, Utf32StringData, and Utf8StringData.
|
pure virtual |
Implemented in Utf16StringData, AsciiStringData, Latin1StringData, Utf8StringData, and Utf32StringData.
|
inline |
Definition at line 97 of file stringdata.h.
|
inline |
Definition at line 133 of file stringdata.h.
|
pure virtual |
Implemented in AsciiStringData, Latin1StringData, Utf16StringData, Utf8StringData, and Utf32StringData.
|
inline |
Definition at line 143 of file stringdata.h.
Member Data Documentation
|
static |
Definition at line 80 of file stringdata.h.
|
static |
Definition at line 79 of file stringdata.h.
uint StringData::maxBytes |
Definition at line 85 of file stringdata.h.
uint StringData::maxChars |
Definition at line 84 of file stringdata.h.
|
protected |
Definition at line 90 of file stringdata.h.
union { ... } StringData::mLength |
|
protected |
Definition at line 89 of file stringdata.h.
|
protected |
Definition at line 88 of file stringdata.h.
|
protected |
Definition at line 82 of file stringdata.h.
|
protected |
Definition at line 87 of file stringdata.h.
|
static |
Definition at line 78 of file stringdata.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.