Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | Static Public Member Functions | List of all members
xmog_sharedlib Class Reference

A wrapper around shared libraries. More...

#include <xmog_sharedlib.h>

Public Member Functions

void * get_handle () const
 Returns the handle represented by this instance.
 
int open (const char *path, int flags, void *handle)
 Attempts to "open" the specified library.
 
 xmog_sharedlib ()
 The default constructor.
 
 ~xmog_sharedlib ()
 Cleans up behind the instance.
 
void * resolveSymbol (const char *symbol)
 Attempts to resolve a symbol in the shared library. More...
 
void * symbol (const char *symbol, int _ignored)
 Attempts to resolve a symbol in the shared library. More...
 

Static Public Member Functions

static xmog_sharedlibresolve (const char *file)
 Returns an instance that represents the specified file or NULL if it cannot be resolved. More...
 
static xmog_sharedlibgetRuntimeLib ()
 Returns an instance that represents the module in which this method resides (typically the runtime library).
 
static xmog_sharedlibgetCallingProcess ()
 Returns an instance that represents the calling process. More...
 

Detailed Description

A wrapper around shared libraries.

This class can be used to resolve symbols in dynamically loaded modules.

Member Function Documentation

◆ getCallingProcess()

static xmog_sharedlib* xmog_sharedlib::getCallingProcess ( )
static

Returns an instance that represents the calling process.

◆ resolve()

static xmog_sharedlib* xmog_sharedlib::resolve ( const char *  file)
static

Returns an instance that represents the specified file or NULL if it cannot be resolved.

Parameters
filethe file we're trying to resolve.

◆ resolveSymbol()

void* xmog_sharedlib::resolveSymbol ( const char *  symbol)

Attempts to resolve a symbol in the shared library.

Parameters
symbolthe name of the symbol we're looking up.

◆ symbol()

void* xmog_sharedlib::symbol ( const char *  symbol,
int  _ignored 
)

Attempts to resolve a symbol in the shared library.

An alias for resolveSymbol().

Parameters
symbolthe name of the symbol we're looking up.

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

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.