29 #ifndef __ARCSCONTEXT_H__
30 #define __ARCSCONTEXT_H__
32 #include <arcs/arcsfactory.h>
63 bool addComponent(QString name, QString className, QString contents = QString::null );
66 bool renameComponent(QString oldName, QString newName);
74 void removeComponent(QString name);
82 QStringList getComponentList();
84 QStringList getConstantList();
92 bool addConstant(QString name, QString type, QString representation);
98 bool modifyConstant(QString name, QString representation);
100 bool modifyConstant(QString name, QString type, QString representation)
102 removeConstant(name);
103 addConstant(name, type, representation);
110 void removeConstant(QString name);
113 bool isInstanciated() {
return instanciated;}
118 QVariant getConstant(QString name);
122 bool instanciatePool();
125 QVariant createValue(QString type, QString representation);
129 QStringList computeLibraryList();
139 bool serializeConstant(QString name, QString & type, QString & representation);
142 typedef bool (
ARCSContext::*AddPoolMethod) (QString, QString, QString);
145 QHash<QString, ARCSAbstractComponent*> componentPool;
146 QHash<QString, QVariant> constantPool;
155 #endif //__ARCSCONTEXT_H__
Class handling the generic description of a component.
A singleton handling all needed factories in ARCS runtime.
This class manages components and constants in a given context.