LoadableModuleFactory Class Reference

#include <LoadableModuleFactory.h>

List of all members.

Public Types

typedef void(* CallbackFunctionType )(const char *)
 Typedef of callback function.

Public Member Functions

CallbackFunctionType GetErrorMessageCallback ()
CallbackFunctionType GetInformationMessageCallback ()
LoadableModuleDescription GetModuleDescription (const std::string &) const
 Get a module description by name.
CallbackFunctionType GetModuleDiscoveryMessageCallback ()
std::vector< std::string > GetModuleNames () const
 Get the names of all the modules.
const std::string & GetName () const
const std::string & GetSearchPaths () const
 Get the module search paths.
CallbackFunctionType GetWarningMessageCallback ()
 LoadableModuleFactory ()
virtual void Scan ()
void SetErrorMessageCallback (CallbackFunctionType)
 Set/Get a function to call to report back errors.
void SetInformationMessageCallback (CallbackFunctionType)
 Set/Get a function to call to report back information.
void SetModuleDiscoveryMessageCallback (CallbackFunctionType)
 Set/Get a function to call to report back a discovered module.
void SetName (const std::string &name)
void SetSearchPaths (const std::string &paths)
void SetWarningMessageCallback (CallbackFunctionType)
 Set/Get a function to call to report back warnings.
virtual ~LoadableModuleFactory ()

Protected Member Functions

void ErrorMessage (const char *)
void InformationMessage (const char *)
void ModuleDiscoveryMessage (const char *)
virtual long ScanForSharedObjectModules ()
void WarningMessage (const char *)

Protected Attributes

bool CacheModified
LoadableModuleCacheInternalCache
LoadableModuleFileMapInternalFileMap
LoadableModuleDescriptionMapInternalMap

Private Attributes

std::string CachePath
CallbackFunctionType ErrorMessageCallback
CallbackFunctionType InformationMessageCallback
CallbackFunctionType ModuleDiscoveryMessageCallback
std::string Name
std::string SearchPaths
CallbackFunctionType WarningMessageCallback

Member Typedef Documentation

Typedef of callback function.


Constructor & Destructor Documentation

LoadableModuleFactory::LoadableModuleFactory (  ) 
LoadableModuleFactory::~LoadableModuleFactory (  )  [virtual]

Member Function Documentation

void LoadableModuleFactory::ErrorMessage ( const char msg  )  [protected]

References ErrorMessageCallback.

LoadableModuleFactory::CallbackFunctionType LoadableModuleFactory::GetErrorMessageCallback (  ) 

References ErrorMessageCallback.

LoadableModuleFactory::CallbackFunctionType LoadableModuleFactory::GetInformationMessageCallback (  ) 
LoadableModuleDescription LoadableModuleFactory::GetModuleDescription ( const std::string &  name  )  const

Get a module description by name.

Referenced by Slicer3_main().

LoadableModuleFactory::CallbackFunctionType LoadableModuleFactory::GetModuleDiscoveryMessageCallback (  ) 
std::vector< std::string > LoadableModuleFactory::GetModuleNames (  )  const

Get the names of all the modules.

Referenced by main(), and Slicer3_main().

const std::string& LoadableModuleFactory::GetName (  )  const [inline]

Get the name of the module factory. The name is used in error messages (to refer to the application using the module factory) and in encoding entry points.

const std::string& LoadableModuleFactory::GetSearchPaths (  )  const [inline]

Get the module search paths.

LoadableModuleFactory::CallbackFunctionType LoadableModuleFactory::GetWarningMessageCallback (  ) 
void LoadableModuleFactory::InformationMessage ( const char msg  )  [protected]
void LoadableModuleFactory::ModuleDiscoveryMessage ( const char msg  )  [protected]
void LoadableModuleFactory::Scan (  )  [virtual]

Scan for modules in the module search path. This will locate command line modules as well as shared object modules.

References LoadableModuleDescription::GetName(), and WarningMessage().

Referenced by main(), and Slicer3_main().

long LoadableModuleFactory::ScanForSharedObjectModules (  )  [protected, virtual]
void LoadableModuleFactory::SetErrorMessageCallback ( CallbackFunctionType  f  ) 

Set/Get a function to call to report back errors.

References ErrorMessageCallback.

Referenced by main(), and Slicer3_main().

void LoadableModuleFactory::SetInformationMessageCallback ( CallbackFunctionType  f  ) 

Set/Get a function to call to report back information.

References InformationMessageCallback.

Referenced by main(), and Slicer3_main().

void LoadableModuleFactory::SetModuleDiscoveryMessageCallback ( CallbackFunctionType  f  ) 

Set/Get a function to call to report back a discovered module.

References ModuleDiscoveryMessageCallback.

Referenced by main(), and Slicer3_main().

void LoadableModuleFactory::SetName ( const std::string &  name  )  [inline]

Set the name of the module factory. The name is used in error messages (to refer to the application using the module factory) and in encoding entry points.

Referenced by Slicer3_main().

void LoadableModuleFactory::SetSearchPaths ( const std::string &  paths  )  [inline]

Set the search paths for modules (both command line modules and shared object modules). A list of ':' or ';' separated paths.

Referenced by main(), and Slicer3_main().

void LoadableModuleFactory::SetWarningMessageCallback ( CallbackFunctionType  f  ) 

Set/Get a function to call to report back warnings.

References WarningMessageCallback.

Referenced by main(), and Slicer3_main().

void LoadableModuleFactory::WarningMessage ( const char msg  )  [protected]

Member Data Documentation

Referenced by LoadableModuleFactory().

std::string LoadableModuleFactory::CachePath [private]
std::string LoadableModuleFactory::Name [private]

Referenced by LoadableModuleFactory().

std::string LoadableModuleFactory::SearchPaths [private]

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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1