ArModuleLoader Class Reference

#include <ArModuleLoader.h>

List of all members.


Detailed Description

Dynamic ArModule loader.

The ArModuleLoader is used to load ArModules into a program and invoke them.

See also ArModule to see how to define an ArModule.

See also the example programs advanced/simpleMod.cpp and advanced/simpleModule.cpp.


Public Types

typedef void * DllRef
enum  Status {
  STATUS_SUCCESS = 0, STATUS_ALREADY_LOADED, STATUS_FAILED_OPEN, STATUS_INVALID,
  STATUS_INIT_FAILED, STATUS_EXIT_FAILED, STATUS_NOT_FOUND
}

Static Public Member Functions

static Status close (const char *modName, bool quiet=false)
 Close an ArModule.
static void closeAll ()
 Close all open ArModule.
static Status load (const char *modName, ArRobot *robot, void *modArgument=NULL, bool quiet=false)
 Load an ArModule.
static Status reload (const char *modName, ArRobot *robot, void *modArgument=NULL, bool quiet=false)
 Close and then reload an ArModule.

Static Protected Attributes

static std::map< std::string,
DllRef > 
ourModMap


Member Enumeration Documentation

enum ArModuleLoader::Status

Enumerator:
STATUS_SUCCESS  Load succeded.
STATUS_ALREADY_LOADED  Module already loaded.
STATUS_FAILED_OPEN  Could not find or open the module.
STATUS_INVALID  Invalid module file format.
STATUS_INIT_FAILED  The module failed its init stage.
STATUS_EXIT_FAILED  The module failed its exit stage.
STATUS_NOT_FOUND  The module was not found.


The documentation for this class was generated from the following file:
Generated on Thu Aug 6 09:39:36 2009 for Aria by  doxygen 1.5.1