Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

Plugin Class Reference

#include <Plugin.h>

Inheritance diagram for Plugin:

FilePlugin LogPlugin MetadataPlugin SecurityPlugin UserPlugin LocalFilePlugin ODBCFilePlugin SysLogPlugin BDBMetadataPlugin ODBCMetadataPlugin BDBSecurityPlugin ODBCSecurityPlugin STUBSecurityPlugin InetUserServer SoapServer SSLUser List of all members.

Public Methods

 Plugin (const Config &cfg)
virtual ~Plugin ()=0
Configconfig ()
virtual bool init ()=0
bool attachCore (StrongroomCore *core)
void log (const string &msg, int level=0)

Protected Attributes

StrongroomCorecore

Detailed Description

This is the base class for all dynamically loaded Strongroom plugins.


Constructor & Destructor Documentation

Plugin::Plugin const Config   cfg
 

Construct the plugin and load the configuration. This should always work.

Parameters:
cfg  the configuration for the plugin

Plugin::~Plugin   [pure virtual]
 

Destructor.


Member Function Documentation

bool Plugin::attachCore StrongroomCore   core
 

Give core reference to plugin

Reimplemented in UserPlugin.

Config & Plugin::config  
 

Returns the configuration of this plugin.

virtual bool Plugin::init   [pure virtual]
 

Initialize the plugin

Implemented in LogPlugin, LocalFilePlugin, ODBCFilePlugin, SysLogPlugin, BDBMetadataPlugin, ODBCMetadataPlugin, BDBSecurityPlugin, ODBCSecurityPlugin, STUBSecurityPlugin, InetUserServer, and SoapServer.

void Plugin::log const string &    msg,
int    level = 0
 

Log with priority level.

Reimplemented in LogPlugin, and SysLogPlugin.


Member Data Documentation

StrongroomCore* Plugin::core [protected]
 

Reference to the strongroom core

Reimplemented in UserPlugin.


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 13:45:56 2004 for strongroom by doxygen1.2.18