29 #ifndef __ARCSXMLHANDLER_H__
30 #define __ARCSXMLHANDLER_H__
32 #include <QDomDocument>
34 #include <arcs/arcssheet.h>
203 bool openFile(QString s);
208 bool saveFile(QString s);
215 bool setContents(QString s);
216 QString getContents();
219 void setType(XMLType t) { type = t; }
229 bool parseProcess(
ARCSProcess* ap, QDomElement processNode);
237 bool parseSheet(
ARCSSheet* as, QDomElement father);
241 QStringList parseLibraries(QDomElement libraries,
bool* ok=0);
245 QDomNode node = QDomNode());
258 void storeSheet(
ARCSSheet* as, QDomElement father,
259 QString
id=QString::null);
265 void storeProcess(
ARCSProcess*,QDomElement father);
271 QDomElement father= QDomElement());
274 bool storeInvocations(
ARCSSheet* sheet, ARCSSheet::GetInvocationsMethod,
276 void storeSheetProperties(
ARCSSheet* sheet,QDomElement root);
278 void parseContextElement(QDomElement elt,
ARCSContext* ctx,
280 ARCSContext::AddPoolMethod);
283 void parseSheetProperties(QDomElement elt,
ARCSSheet* sheet);
284 void parseInvocation(QDomElement elt,
ARCSSheet* sheet,
285 ARCSSheet::AddInvocationMethod method);
287 void parseMethodList(QDomElement elt,QStringList & aliases,
288 QStringList & components,
289 QStringList & methods);
291 static QString nodeInternalsToText(QDomNode node);
292 bool parseComponents(QDomElement elt,
ARCSContext* ctx);
294 void parseConstants(QDomElement elt,
ARCSContext* ctx) {
299 void computeRelativePaths(QString basePath);
300 QString solveRelativePath(QString path);
308 QStringList libraryStrings;
311 QList<QDomAttr> fileAttributes;
315 QString logSource(
int line) {
316 return "XML:" + fileName +
":" + QString::number(line);
318 QString logSource() {
319 return "XML:" + fileName;
324 #endif //__ARCSXMLHANDLER_H__
XML representation of a statemachine.
Class defining a composite component i.e. a component made of components.
XML representation of an application.
This class represents an application.
This class is representing a process under ARCS.
XMLType
This enumeration gives the list of ARCS XML structures.
XML representation of a composite component.
Class handling the generic description of a component.
A singleton handling all needed factories in ARCS runtime.
XML representation of an interface.
bool addConstant(QString name, QString type, QString representation)
Adds a constant to the list.
This class manages components and constants in a given context.
Class describing a state machine in order to control an application.
XML type not determined yet.
Maintains connections between objects.
This is an XML Handler for all ARCS native XML formats.