Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
Arc::ServicePluginArgument Class Reference

#include <Service.h>

Inheritance diagram for Arc::ServicePluginArgument:
Inheritance graph
[legend]
Collaboration diagram for Arc::ServicePluginArgument:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ServicePluginArgument (Config *config, ChainContext *context)
virtual ~ServicePluginArgument (void)
 operator Config * (void)
 operator ChainContext * (void)
PluginsFactoryget_factory (void)
 Returns pointer to factory which instantiated plugin.
Glib::Module * get_module (void)
 Returns pointer to loadable module/library which contains plugin.

Private Attributes

Configconfig_
ChainContextcontext_

Detailed Description

Definition at line 74 of file Service.h.


Constructor & Destructor Documentation

Definition at line 79 of file Service.h.

:config_(config),context_(context) { };
virtual Arc::ServicePluginArgument::~ServicePluginArgument ( void  ) [inline, virtual]

Definition at line 80 of file Service.h.

{ };

Member Function Documentation

Returns pointer to factory which instantiated plugin.

Because factory usually destroys/unloads plugins in its destructor it should be safe to keep this pointer inside plugin for later use. But one must always check.

Definition at line 587 of file Plugin.cpp.

                                                  {
    return factory_;
  }

Here is the caller graph for this function:

Glib::Module * Arc::PluginArgument::get_module ( void  ) [inherited]

Returns pointer to loadable module/library which contains plugin.

Corresponding factory keeps list of modules till itself is destroyed. So it should be safe to keep that pointer. But care must be taken if module contains persistent plugins. Such modules stay in memory after factory is detroyed. So it is advisable to use obtained pointer only in constructor function of plugin.

Definition at line 591 of file Plugin.cpp.

                                             {
    return module_;
  }

Here is the caller graph for this function:

Arc::ServicePluginArgument::operator ChainContext * ( void  ) [inline]

Definition at line 82 of file Service.h.

{ return context_; };
Arc::ServicePluginArgument::operator Config * ( void  ) [inline]

Definition at line 81 of file Service.h.

{ return config_; };

Member Data Documentation

Definition at line 76 of file Service.h.

Definition at line 77 of file Service.h.


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