50#include <QDomDocument>
54#include <parser/type.hh>
81 void parse (QFile& _xml);
84 const QVector<Element *>&
elements ()
const {
return elements_; };
87 QVector<Element *>
elements (
const QString& _category);
105 bool canConvert (
const QString& _type1,
const QString& _type2);
108 static bool strToBool (
const QString& _str);
111 static QString
getXmlString (QDomElement &_element,
const QString& _tag, QString _default =
"");
117 void executeScript(
const QString& _script);
120 void openScriptInEditor(
const QString& _script);
128 Input *parseInput (QDomElement &_domElement,
Element *_e);
137 bool parseInOutBase (QDomElement &_domElement,
InOut *_io);
140 QVector <Element *> elements_;
142 QMap <QString, Type*> supportedTypes_;
144 QList <Type *> types_;
Interface for all Plugins which do logging to the logging window of the framework.
Interface class for exporting functions to python.
Context(LoggingInterface *_loggingInterface, PythonInterface *_pythonInterface)
Constructor.
static bool strToBool(const QString &_str)
Converts the given string to bool.
void registerType(Type *_type)
Registers a supported datatype.
bool typeSupported(const QString &_type)
Is the given type supported.
void parseElement(QDomElement &_element)
parse element from xml
static QString getXmlString(QDomElement &_element, const QString &_tag, QString _default="")
Gets the string of a xml query.
Type * getType(const QString &_type)
Get type object for given type name.
bool canConvert(const QString &_type1, const QString &_type2)
Can the given types be converted to each other.
const QVector< Element * > & elements() const
Returns all available elements.
static QString removeCommonTrailingSpaces(const QString &in)
Removes trailing spaces from string which are present in each line - relative trailing spaces are not...
Element * element(const QString &_name)
Returns the element with a given name.
void parse(QFile &_xml)
Parse xml content.
QStringList categories()
List of categories.