#include <LoadableModule.h>

Collaboration diagram for LoadableModule:

Public Types

enum  LoadMode {
  lmNow,
  lmLazy
}
 

Public Member Functions

 LoadableModule (const String &aName)
 
 ~LoadableModule ()
 
bool loaded () const
 
const Stringname () const
 
const Stringerror () const
 
void load (int mode=lmNow)
 
void unload ()
 

Protected Attributes

String theName
 
String theError
 
void * theHandle
 

Private Member Functions

void * openModule (int mode)
 
bool closeModule ()
 
const char * errorMsg ()
 

Detailed Description

Definition at line 15 of file LoadableModule.h.

Member Enumeration Documentation

Enumerator
lmNow 
lmLazy 

Definition at line 18 of file LoadableModule.h.

Constructor & Destructor Documentation

LoadableModule::LoadableModule ( const String aName)

Definition at line 17 of file LoadableModule.cc.

References TexcHere.

LoadableModule::~LoadableModule ( )

Definition at line 25 of file LoadableModule.cc.

References assert, loaded(), and unload().

Member Function Documentation

bool LoadableModule::closeModule ( )
private

Definition at line 69 of file LoadableModule.cc.

References theHandle.

Referenced by unload().

const String& LoadableModule::error ( ) const
inline

Definition at line 26 of file LoadableModule.h.

References theError.

const char * LoadableModule::errorMsg ( )
private

Definition at line 76 of file LoadableModule.cc.

Referenced by load(), and unload().

void LoadableModule::load ( int  mode = lmNow)

Definition at line 39 of file LoadableModule.cc.

References errorMsg(), loaded(), openModule(), TexcHere, and theHandle.

Referenced by LoadModule().

bool LoadableModule::loaded ( ) const

Definition at line 33 of file LoadableModule.cc.

References theHandle.

Referenced by load(), unload(), and ~LoadableModule().

const String& LoadableModule::name ( ) const
inline

Definition at line 25 of file LoadableModule.h.

References theName.

void * LoadableModule::openModule ( int  mode)
private

Definition at line 63 of file LoadableModule.cc.

References String::termedBuf(), and theName.

Referenced by load().

void LoadableModule::unload ( )

Definition at line 51 of file LoadableModule.cc.

References closeModule(), errorMsg(), loaded(), TexcHere, and theHandle.

Referenced by ~LoadableModule().

Member Data Documentation

String LoadableModule::theError
protected

Definition at line 33 of file LoadableModule.h.

Referenced by error().

void* LoadableModule::theHandle
protected

Definition at line 34 of file LoadableModule.h.

Referenced by closeModule(), load(), loaded(), and unload().

String LoadableModule::theName
protected

Definition at line 32 of file LoadableModule.h.

Referenced by name(), and openModule().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors