INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydrodll Namespace Reference

Dynamically loads C++ classes. More...

Classes

class  DynamicallyLoadedLibrary
class  DynamicLoadException
 Dynamic load exception. More...

Functions

template<class LoadedClass , typename MakerFunc >
LoadedClass * dynamicallyLoadClass (DynamicallyLoadedLibrary &lib, const char *makerFuncName)

Detailed Description

Dynamically loads C++ classes.

This is a very small library for dynamically loading C++ classes.

See also:
hydro_library_orcadynamicload

Function Documentation

template<class LoadedClass , typename MakerFunc >
LoadedClass* hydrodll::dynamicallyLoadClass ( DynamicallyLoadedLibrary &  lib,
const char *  makerFuncName 
) [inline]

Uses a function in the lib to load an instance of 'LoadedClass'.

Assumes the library has a 'maker' function with the signature: extern "C" { LoadedClass *makerFunc(); }

The type of this function should be typedef'd to MakerFunc somewhere, as in: typedef LoadedClass *MakerFunc();

References hydrodll::DynamicallyLoadedLibrary::handle(), and hydrodll::DynamicallyLoadedLibrary::name().

 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5