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

exotkPlugin_Plugin Class Reference

Plugin class. More...

#include <exotkPlugin_Plugin.hxx>

List of all members.

Public Methods

void * operator new (size_t, void *anAddress)
 OCC new. More...

void * operator new (size_t size)
 OCC new. More...

void operator delete (void *anAddress)
 OCC delete. More...

Standard_EXPORT exotkPlugin_Plugin (const TCollection_AsciiString &aFilename)
 Constructor. More...

virtual Standard_EXPORT ~exotkPlugin_Plugin ()
 Destructor. More...

virtual Standard_EXPORT Standard_Boolean IsValid ()
 Return true if the plugin is valid. More...

Standard_EXPORT OSD_Function Function (const TCollection_AsciiString &aFunctionName)
 Return the exported function names aFunctionName. More...

Standard_EXPORT TCollection_AsciiString Filename ()
 Return rthe filename. More...

Standard_EXPORT const Handle_Standard_Type & DynamicType () const
 Type management. More...

Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &) const
 Type management. More...


Private Methods

Standard_Boolean OpenLibrary ()
 Open the library. More...


Private Attributes

OSD_SharedLibrary myLibrary
TCollection_AsciiString myFilename
Standard_Boolean myLibraryIsOpened

Friends

Standard_EXPORT friend Handle_Standard_Type & exotkPlugin_Plugin_Type_ ()
 Type management. More...


Detailed Description

Plugin class.

Author:
Stephane Routelous

Definition at line 53 of file exotkPlugin_Plugin.hxx.


Constructor & Destructor Documentation

exotkPlugin_Plugin::exotkPlugin_Plugin const TCollection_AsciiString &    aFilename
 

Constructor.

Parameters:
aFilename  const TCollection_AsciiString&

Definition at line 78 of file exotkPlugin_Plugin.cxx.

References myFilename, and myLibraryIsOpened.

exotkPlugin_Plugin::~exotkPlugin_Plugin   [virtual]
 

Destructor.

Definition at line 92 of file exotkPlugin_Plugin.cxx.


Member Function Documentation

Handle_Standard_Type & exotkPlugin_Plugin::DynamicType   const
 

Type management.

Returns:
const Handle_Standard_Type&

exotkPlugin_Plugin::Filename   [inline]
 

Return rthe filename.

Returns:
TCollection_AsciiString

Definition at line 125 of file exotkPlugin_Plugin.hxx.

References myFilename.

exotkPlugin_Plugin::Function const TCollection_AsciiString &    aFunctionName
 

Return the exported function names aFunctionName.

Returns:
OSD_Function : NULL if failed
Parameters:
aFunctionName  const TCollection_AsciiString&

Definition at line 105 of file exotkPlugin_Plugin.cxx.

References myLibrary, and OpenLibrary().

Referenced by IsValid().

exotkPlugin_Plugin::IsKind const Handle_Standard_Type &    const
 

Type management.

Returns:
Standard_Boolean
Parameters:
const  Handle_Standard_Type&

exotkPlugin_Plugin::IsValid   [virtual]
 

Return true if the plugin is valid.

Returns:
Standard_Boolean

Definition at line 123 of file exotkPlugin_Plugin.cxx.

References EXOTKID_FCT, Function(), and OpenLibrary().

exotkPlugin_Plugin::OpenLibrary   [private]
 

Open the library.

Returns:
Standard_Boolean : true if success

Definition at line 155 of file exotkPlugin_Plugin.cxx.

References myFilename, myLibrary, and myLibraryIsOpened.

Referenced by Function(), and IsValid().

void exotkPlugin_Plugin::operator delete void *    anAddress [inline]
 

OCC delete.

Returns:
inline void
Parameters:
void  *anAddress

Definition at line 86 of file exotkPlugin_Plugin.hxx.

void * exotkPlugin_Plugin::operator new size_t    size [inline]
 

OCC new.

Returns:
inline void*
Parameters:
size_t  size

Definition at line 75 of file exotkPlugin_Plugin.hxx.

void * exotkPlugin_Plugin::operator new size_t   ,
void *    anAddress
[inline]
 

OCC new.

Returns:
inline void*
Parameters:
size_t 
void  * anAddress

Definition at line 64 of file exotkPlugin_Plugin.hxx.


Friends And Related Function Documentation

Handle_Standard_Type & exotkPlugin_Plugin::exotkPlugin_Plugin_Type_   [friend]
 

Type management.

Returns:
friend Handle_Standard_Type&


Member Data Documentation

TCollection_AsciiString exotkPlugin_Plugin::myFilename [private]
 

the plugin filename

Definition at line 160 of file exotkPlugin_Plugin.hxx.

Referenced by exotkPlugin_Plugin(), Filename(), and OpenLibrary().

OSD_SharedLibrary exotkPlugin_Plugin::myLibrary [private]
 

the shared library

Definition at line 158 of file exotkPlugin_Plugin.hxx.

Referenced by Function(), and OpenLibrary().

Standard_Boolean exotkPlugin_Plugin::myLibraryIsOpened [private]
 

true if the library is opened

Definition at line 162 of file exotkPlugin_Plugin.hxx.

Referenced by exotkPlugin_Plugin(), and OpenLibrary().


The documentation for this class was generated from the following files:
Generated on Wed Jan 23 12:18:36 2002 for exotk by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001