rocs/RocsCore
#include <GraphFileBackendManager.h>

Public Types | |
enum | PluginType { Import, Export } |
Public Member Functions | |
GraphFilePluginInterface * | backendByExtension (QString ext) |
QList< GraphFilePluginInterface * > | backends () const |
QList< GraphFilePluginInterface * > | backends (PluginType type) const |
GraphFilePluginInterface * | defaultBackend () |
Static Public Member Functions | |
static GraphFileBackendManager * | self () |
Detailed Description
The GraphFileBackendMananger is a singleton class that provides backends for graph file writing and reading.
The backend manager loads dynamic and static backend plugins on first access to
- See also
- GraphFileBackendMananger::self() and provides access to these backends as
- GraphFilePluginInterface objects.
Definition at line 37 of file GraphFileBackendManager.h.
Member Enumeration Documentation
Selector for graph file backend with specific capability.
Enumerator | |
---|---|
Import | |
Export |
Definition at line 44 of file GraphFileBackendManager.h.
Member Function Documentation
GraphFilePluginInterface * GraphFileBackendManager::backendByExtension | ( | QString | ext | ) |
Returns an arbitrary loaded plugin that can handle extension ext
.
If no backend specifies this extension, return value is 0.
- Parameters
-
ext specifies the extension string
- Returns
- backend to handle files with specified extension or 0 otherwise
Definition at line 140 of file GraphFileBackendManager.cpp.
QList< GraphFilePluginInterface * > GraphFileBackendManager::backends | ( | ) | const |
Returns list of loaded backends.
Backends are loaded with first call to
- See also
- self().
- Returns
- list of plugin interfaces of loaded backends
Definition at line 71 of file GraphFileBackendManager.cpp.
QList< GraphFilePluginInterface * > GraphFileBackendManager::backends | ( | PluginType | type | ) | const |
Returns list of all loaded backends with specified capability (.
- See also
- PluginType). Backends are loaded with first call to
- self().
- Parameters
-
type specifies capability of the plugin
- Returns
- list of plugin interfaces of loaded backends
Definition at line 77 of file GraphFileBackendManager.cpp.
GraphFilePluginInterface * GraphFileBackendManager::defaultBackend | ( | ) |
Returns the default backend used for serialization/loading of graph files.
Use this if the graph document shall be serialized in the default format.
- Returns
- plugin interface for the graph file backend
Definition at line 151 of file GraphFileBackendManager.cpp.
|
static |
Returns self reference to backend manager.
First call of this method initializes file backend manager and loads plugins.
- Returns
- self reference
Definition at line 49 of file GraphFileBackendManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.