Aria: ArModuleLoader Class Reference

- Main Page
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# 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:

- ArModuleLoader.h