okteta
parserutils.h
Go to the documentation of this file.
50 inline ParserInfo(const QString& name, ScriptLogger* logger, DataInformation* parent, QScriptEngine* engine)
197 DataInformation::DataInformationEndianess byteOrderFromString(const QString& string, const LoggerWithContext& logger);
200 StringDataInformation::StringType toStringEncoding(const QString& str, const LoggerWithContext& logger);
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
virtual bool hasNext()=0
Definition: scriptlogger.h:94
const QString NAME_POINTER_VALUE_TYPE
Definition: parserutils.h:168
ParsedNumber(T val, const QString &str, bool ok)
Definition: parserutils.h:86
const QString PROPERTY_MAX_BYTE_COUNT
Definition: parserutils.h:143
virtual DataInformation * next()=0
ParsedNumber< int > intFromScriptValue(const QScriptValue &val)
Checks whether the value is a number, and if it is converts it.
Definition: parserutils.cpp:86
QScriptValue functionSafeEval(QScriptEngine *engine, const QString &str)
This essentially calls engine->evaluate(str), but ensures it can be a function (QTBUG-5757) ...
Definition: parserutils.cpp:184
Holds a number that was converted either from a QScriptValue or a QString.
Definition: parserutils.h:84
Definition: enumdatainformation.h:29
Definition: parserutils.h:72
const QString PROPERTY_CUSTOM_TYPE_NAME
Definition: parserutils.h:124
virtual void setParent(DataInformation *parent)=0
const QString PROPERTY_TO_STRING_FUNC
Definition: parserutils.h:122
const QString PROPERTY_DEFAULT_LOCK_OFFSET
Definition: parserutils.h:112
ParsedNumber< int > intFromString(const QString &str)
If string starts with 0x, the remainder is interpreted as a hexadecimal (unsigned) number otherwise i...
Definition: parserutils.cpp:27
A class holding the data of a struct for Okteta.
Definition: taggeduniondatainformation.h:31
static ParsedNumber< T > badInput(const QString &str)
Definition: parserutils.h:90
Definition: arraydatainformation.h:36
ParsedNumber< uint > uintFromScriptValue(const QScriptValue &val)
Definition: parserutils.cpp:103
StringDataInformation::StringType toStringEncoding(const QString &str, const LoggerWithContext &logger)
Definition: parserutils.cpp:148
For use by the parsers so that the functions don't have as many parameters.
Definition: parserutils.h:48
A class holding the data of a union for Okteta.
Definition: uniondatainformation.h:28
QString byteOrderToString(DataInformation::DataInformationEndianess order)
Definition: parserutils.cpp:137
ParsedNumber< quint64 > uint64FromString(const QString &str)
Definition: parserutils.cpp:56
ParserInfo(const QString &name, ScriptLogger *logger, DataInformation *parent, QScriptEngine *engine)
Definition: parserutils.h:50
ParsedNumber< uint > uintFromString(const QString &str)
Definition: parserutils.cpp:45
const QString PROPERTY_VALIDATION_FUNC
Definition: parserutils.h:121
DataInformation::DataInformationEndianess byteOrderFromString(const QString &string, const LoggerWithContext &logger)
Definition: parserutils.cpp:67
const QString PROPERTY_ABLE_TO_READ
Definition: parserutils.h:119
ParsedNumber< quint64 > uint64FromScriptValue(const QScriptValue &val)
Definition: parserutils.cpp:120
const QString PROPERTY_MAX_CHAR_COUNT
Definition: parserutils.h:142
const QString PROPERTY_ALTERNATIVES
Definition: parserutils.h:151
const QString PROPERTY_INTERNAL_TYPE
Definition: parserutils.h:156
A base class for all primitive data elements (e.g.
Definition: primitivedatainformation.h:34
Definition: stringdatainformation.h:39
const QString PROPERTY_TERMINATED_BY
Definition: parserutils.h:144
A class holding the data of a struct for Okteta.
Definition: structuredatainformation.h:28
const QString PROPERTY_DEFAULT_CHILDREN
Definition: parserutils.h:152
const QString PROPERTY_VALIDATION_ERROR
Definition: parserutils.h:117
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 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:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.