Bayonne2 / Common C++ 2 Framework
Public Member Functions | Static Public Member Functions | Private Attributes
DSO Class Reference

The DSO dynamic loader class is used to load object files. More...

#include <file.h>

Inheritance diagram for DSO:
Inheritance graph
[legend]
Collaboration diagram for DSO:
Collaboration graph
[legend]

Public Member Functions

  DSO (const char *filename)
  Construct and load a DSO object file. More...
 
  DSO (const char *filename, bool resolve)
 
const char *  getError (void)
  Retrieve error indicator associated with DSO failure. More...
 
void *  operator[] (const char *)
  Detach a DSO object from running memory. More...
 
bool  isValid (void)
  See if DSO object is valid. More...
 

Static Public Member Functions

static void  dynunload (void)
 
static DSOgetObject (const char *name)
  Find a specific DSO object by filename. More...
 
static void  setDebug (void)
  Install debug handler... More...
 

Private Attributes

const char *  err
 

Detailed Description

The DSO dynamic loader class is used to load object files.

On elf based systems this is typically done with dlopen. A dummy stub class is generated for non-dl capable systems.

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m Dynamic class file loader.

Definition at line 889 of file file.h.

Constructor & Destructor Documentation

DSO::DSO ( const char *  filename )
inline

Construct and load a DSO object file.

Parameters
filename pathname of object file to load.

Definition at line 924 of file file.h.

DSO::DSO ( const char *  filename,
bool  resolve 
)
inline

Definition at line 926 of file file.h.

Member Function Documentation

static void DSO::dynunload ( void  )
inlinestatic

Definition at line 957 of file file.h.

const char* DSO::getError ( void  )
inline

Retrieve error indicator associated with DSO failure.

This is often used in catch handlers.

Definition at line 934 of file file.h.

static DSO* DSO::getObject ( const char *  name )
static

Find a specific DSO object by filename.

Parameters
name of DSO object file (partial).
bool DSO::isValid ( void  )

See if DSO object is valid.

Returns
true if valid.
void* DSO::operator[] ( const char *  )
inline

Detach a DSO object from running memory.

Lookup a symbol in the loaded file.

Definition at line 950 of file file.h.

static void DSO::setDebug ( void  )
static

Install debug handler...

Field Documentation

const char* DSO::err
private

Definition at line 892 of file file.h.


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

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /