29 #include <arcs/arcscompositecomponent.h>
30 #include <arcs/arcsxmlhandler.h>
41 ARCSCompositeComponent::~ARCSCompositeComponent()
65 return proxySlots.uniqueKeys();
70 return proxySignals.uniqueKeys();
79 xmlHandler.storeCompositeComponent(
this);
80 return xmlHandler.getContents();
84 bool ARCSCompositeComponent::addMethod(QMap<QString, ARCSMethod> &list , QString proxy, QString
id, QString method)
90 list.insertMulti(proxy,
ARCSMethod(cmp, method));
99 return xmlHandler.parseCompositeComponent(
this);
106 return xmlHandler.parseCompositeComponent(
this);
112 xmlHandler.storeCompositeComponent(
this);
118 QList<ARCSMethod> lst = proxySlots.values(slot);
121 for (
int i = lst.count() - 1 ; i >= 0 ; i--)
128 proxySlot << methods;
135 QList<ARCSMethod> lst = proxySignals.values(signal);
138 for (
int i = lst.count()-1 ; i >=0 ; i--)
145 proxySignal << methods;
151 void ARCSCompositeComponent::getProxyMethods(QMap<QString,ARCSMethod> & ,QStringList& , QStringList& , QStringList& )
bool setContents(QString s)
Gives the content to parse.
virtual QString toString()
Defines a basic seralization mechanism.
virtual bool parseString(QString s)
Defines a basic seralization mechanism.
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)=0
Creates a proxy signal to interface a component to native ARCS components.
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)
Creates a proxy slot to interface a component to native ARCS components.
bool openFile(QString s)
Opens a file given its path. The file should describe either an application or a composite component...
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)=0
Creates a proxy slot to interface a component to native ARCS components.
Class handling the generic description of a component.
virtual bool saveFile(QString fn)
Defines a way to save a component description inside a file.
ARCSAbstractComponent * getComponent(QString name)
Retrieves a component by its id.
virtual QStringList getSignals()
Returns the names of the availables signals.
bool saveFile(QString s)
Saves a file given its path. The file will describe either an application or a composite component...
A class describing a component/method pair.
bool instanciatePool()
Instanciates the whole pool of components inside the context.
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)
Creates a proxy signal to interface a component to native ARCS components.
virtual bool genuineInstanciate()
This method should implement the instanciation of the actual component.
virtual QStringList getSlots()
Returns the names of the available slots.
virtual bool loadFile(QString fn)
Defines a way to load a component description from a file.
virtual void genuineDestroy()
This method should implement the destruction of the actual component.
This is an XML Handler for all ARCS native XML formats.