Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Plugin Class Reference

Simple class wrapping for the shared object functions. More...

#include <page_magick.h>

List of all members.

Public Member Functions

bool Open (char *file)
 Plugin - wrapper for the dlopen/dlsym functions.
void Close ()
void * Find (char *symbol)
const char * GetError ()

Private Attributes

void * ptr


Detailed Description

Simple class wrapping for the shared object functions.

Definition at line 37 of file page_magick.h.


Member Function Documentation

void Plugin::Close  ) 
 

Definition at line 356 of file page_magick.cc.

References ptr.

00357 {
00358     if ( ptr != NULL )
00359         dlclose( ptr );
00360 }

void * Plugin::Find char *  symbol  ) 
 

Definition at line 362 of file page_magick.cc.

References ptr.

Referenced by PluginAudioTransitionRepository::InstallPlugins(), PluginAudioFilterRepository::InstallPlugins(), PluginImageTransitionRepository::InstallPlugins(), PluginImageFilterRepository::InstallPlugins(), and PluginImageCreateRepository::InstallPlugins().

00363 {
00364     return dlsym( ptr, symbol );
00365 }

const char * Plugin::GetError  ) 
 

Definition at line 367 of file page_magick.cc.

Referenced by PluginCollection::RegisterPlugin().

00368 {
00369     return dlerror();
00370 }

bool Plugin::Open char *  file  ) 
 

Plugin - wrapper for the dlopen/dlsym functions.

Definition at line 350 of file page_magick.cc.

References ptr.

Referenced by PluginCollection::RegisterPlugin().

00351 {
00352     ptr = dlopen( file, RTLD_NOW );
00353     return ptr != NULL;
00354 }


Member Data Documentation

void* Plugin::ptr [private]
 

Definition at line 40 of file page_magick.h.

Referenced by Close(), Find(), and Open().


The documentation for this class was generated from the following files:
Generated on Sun Mar 11 22:13:22 2007 for Kino by  doxygen 1.4.2