Public Member Functions | Static Public Member Functions | List of all members
ARCSFactory Class Reference

A singleton handling all needed factories in ARCS runtime. More...

#include <arcsfactory.h>

Collaboration diagram for ARCSFactory:
Collaboration graph

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.
 
ARCSAbstractComponentcreateComponent (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 ARCSFactorygetInstance ()
 Returns the instance of the singleton ARCSFactory.
 

Detailed Description

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.

Author
Jean-Yves Didier
Date
November, 2008

Definition at line 58 of file arcsfactory.h.

Member Function Documentation

QString ARCSFactory::getComponentLibrary ( QString  s)

Returns the path of the library associated to a certain kind of component.

Parameters
stype name of the component
Returns
a library path

Definition at line 526 of file arcsfactory.cpp.

Here is the caller graph for this function:

QString ARCSFactory::getFamilyLibrary ( QString  s)
Todo:
est ce vraiment nécessaire de rendre cette méthode publique ?

Definition at line 573 of file arcsfactory.cpp.

QString ARCSFactory::getInternalType ( QString  s)
Todo:
factorize the function below with previous one

Definition at line 455 of file arcsfactory.cpp.

QStringList ARCSFactory::getLibraryComponents ( QString  s)

Returns the list of components associated to a library.

Parameters
slibrary name or library path
Returns
a list of component names.

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.

Parameters
s
Returns
a library path

Definition at line 564 of file arcsfactory.cpp.

Here is the caller graph for this function:

QString ARCSFactory::getVariantType ( QVariant  var)

Returns the type of a QVariant.

Parameters
vara QVariant
Returns
the type of the QVariant as a string.

Definition at line 427 of file arcsfactory.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: