![]() |
A singleton handling all needed factories in ARCS runtime. More...
#include <arcsfactory.h>
Public Member Functions | |
bool | loadLibrary (QString path) |
Loads a library given the path to it. | |
void | unLoadLibrary (QString path) |
Unloads a library given the path to it. | |
QStringList | getLibraryNames () |
Returns the names of the currently loaded libraries. | |
QStringList | getTypeNames () |
Returns the names of the types currently stored. | |
QStringList | getFamilyNames () |
Returns the names of the family currently stored. | |
QStringList | getComponentNames () |
Returns the class names of the components currently stored. | |
ARCSAbstractComponent * | createComponent (QString componentType) |
Creates a component given its class name. | |
void | destroyComponent (ARCSAbstractComponent *aac) |
Destroys a component. | |
QString | getComponentLibrary (QString s) |
Returns the path of the library associated to a certain kind of component. More... | |
QStringList | getLibraryComponents (QString s) |
Returns the list of components associated to a library. More... | |
QString | getVariantType (QVariant var) |
Returns the type of a QVariant. More... | |
QString | getInternalType (QString s) |
QString | getTypeLibrary (QString s) |
Returns the path of the library associated to a certain kind of type. More... | |
QString | getFamilyLibrary (QString s) |
QVariant | dataDeserialize (QString type, QString representation) |
Deserialize data from their string representation. | |
QString | dataSerialize (QVariant var) |
Serializes data from their QVariant counterpart. | |
Static Public Member Functions | |
static ARCSFactory * | getInstance () |
Returns the instance of the singleton ARCSFactory. | |
A singleton handling all needed factories in ARCS runtime.
There are currently 3 groups of factories supported inside ARCS :
ARCSFactory is implemented as a singleton.
Definition at line 58 of file arcsfactory.h.
QString ARCSFactory::getComponentLibrary | ( | QString | s | ) |
Returns the path of the library associated to a certain kind of component.
s | type name of the component |
Definition at line 526 of file arcsfactory.cpp.
QString ARCSFactory::getFamilyLibrary | ( | QString | s | ) |
Definition at line 573 of file arcsfactory.cpp.
QString ARCSFactory::getInternalType | ( | QString | s | ) |
Definition at line 455 of file arcsfactory.cpp.
QStringList ARCSFactory::getLibraryComponents | ( | QString | s | ) |
Returns the list of components associated to a library.
s | library name or library path |
Definition at line 541 of file arcsfactory.cpp.
QString ARCSFactory::getTypeLibrary | ( | QString | s | ) |
Returns the path of the library associated to a certain kind of type.
s |
Definition at line 564 of file arcsfactory.cpp.
QString ARCSFactory::getVariantType | ( | QVariant | var | ) |
Returns the type of a QVariant.
var | a QVariant |
Definition at line 427 of file arcsfactory.cpp.