charon-core  0.3.1
PluginManagerInterface Class Referenceabstract

Interface for a plugin manager. More...

#include <charon-core/PluginManagerInterface.h>

Inheritance diagram for PluginManagerInterface:

Public Types

enum  PluginVersionCheckLevel { PluginVersionIgnore = 0, PluginVersionWarn = 1, PluginVersionDiscard = 2 }
 info how to handle version information
 

Public Member Functions

virtual ~PluginManagerInterface ()
 Default destructor.
 
virtual std::set< std::string > getConnected (const std::string &root, const ParameterFile &pf) const =0
 Recurse into object list and find connected objects. More...
 
virtual ParameteredObjectgetInstance (const std::string &instanceName) const =0
 Get an existing instance of a loaded plugin. More...
 
virtual bool initializePluginOnLoad () const =0
 
virtual void setInitiailizePluginOnLoad (bool initOnLoad)=0
 
virtual std::string templateTypeToString (ParameteredObject::template_type t) const =0
 Converts template_type to std::string. More...
 

Detailed Description

Definition at line 30 of file PluginManagerInterface.h.

Member Function Documentation

virtual std::set<std::string> PluginManagerInterface::getConnected ( const std::string &  root,
const ParameterFile pf 
) const
pure virtual

This is based on the content of the given ParameterFile, i.e. the connected objects need not to exist really. This is also independend of the existing connections of the current object, it is only based on the connections saved in the parameter file. Nonexistent objects are created, so you have to make sure, that the object factory is up and running. The root object itself is also part of the connected component.

Parameters
rootStarting point for connected object search
pfParameterFile to read connections from.
Returns
set of connected object names

Implemented in PluginManager.

virtual ParameteredObject* PluginManagerInterface::getInstance ( const std::string &  instanceName) const
pure virtual
Parameters
instanceNameName of the instance
Returns
Pointer to the requested instance

Implemented in PluginManager.

virtual std::string PluginManagerInterface::templateTypeToString ( ParameteredObject::template_type  t) const
pure virtual
Parameters
ttemplate type to convert
Returns
string representation of t

Implemented in PluginManager.


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