Drive Engine  1.0.0
Plateforme de reconstruction 3D
DriveEngine::ExportableFactory Class Reference

The exportable object factory. More...

#include <ExportableFactory.h>

Static Public Member Functions

static IExportableCreate (const std::string &identifier)
 Creates a new exportable object. More...
 
static void Load (const std::string &identifier, const std::string &constructorName, const std::string &path)
 Loads a function and register it with an unique identifier. More...
 

Detailed Description

The exportable object factory.

Use the dynamic library manager.

Member Function Documentation

IExportable * ExportableFactory::Create ( const std::string &  identifier)
static

Creates a new exportable object.

Exception safety : Strong exception safety. This member function throws exceptions.

Parameters
identifierThe unique identifier.
Returns
null if it fails, else an IExportable*.
void ExportableFactory::Load ( const std::string &  identifier,
const std::string &  constructorName,
const std::string &  path 
)
static

Loads a function and register it with an unique identifier.

Exception safety : Strong exception safety. This member function throws exceptions.

Parameters
identifierThe unique identifier.
constructorNameName of the constructor function.
pathFull pathname of the dynamic library.

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