fawkes::BlackBoardInstanceFactory Class Reference

BlackBoard instance factory. More...

#include <blackboard/internal/instance_factory.h>

List of all members.

Public Member Functions

 BlackBoardInstanceFactory ()
 Constructor.
 ~BlackBoardInstanceFactory ()
 Destructor.
Interfacenew_interface_instance (const char *type, const char *identifier)
 Creates a new interface instance.
void delete_interface_instance (Interface *interface)
 Destroy an interface instance.

Detailed Description

BlackBoard instance factory.

This class is used to interact with the interface shared object to create and delete interface instances.

Author:
Tim Niemueller

Definition at line 36 of file instance_factory.h.


Constructor & Destructor Documentation

fawkes::BlackBoardInstanceFactory::BlackBoardInstanceFactory (  ) 
fawkes::BlackBoardInstanceFactory::~BlackBoardInstanceFactory (  ) 

Destructor.

Definition at line 55 of file instance_factory.cpp.


Member Function Documentation

void fawkes::BlackBoardInstanceFactory::delete_interface_instance ( Interface interface  ) 

Destroy an interface instance.

The destroyer function for the given interface is called to destroy the given interface instance.

Parameters:
interface to destroy
Exceptions:
BlackBoardInterfaceNotFoundException thrown if the destroyer function for the given interface could not be found. The interface will not be freed.

Definition at line 103 of file instance_factory.cpp.

References fawkes::ModuleManager::close_module(), fawkes::ModuleManager::get_module(), fawkes::ModuleManager::get_module_file_extension(), fawkes::Module::get_symbol(), fawkes::Module::has_symbol(), and fawkes::Module::unref().

Referenced by fawkes::RemoteBlackBoard::close(), BBLogFile::set_interface(), and BBLogFile::~BBLogFile().

Interface * fawkes::BlackBoardInstanceFactory::new_interface_instance ( const char *  type,
const char *  identifier 
)

Creates a new interface instance.

This method will look in the for the appropriate library in LIBDIR/interfaces and then use the factory function for the interface of the given type. If this was found a new instance of the interface is returned.

Parameters:
type type of the interface
identifier identifier of the interface
Returns:
a new instance of the requested interface type
Exceptions:
BlackBoardInterfaceNotFoundException thrown if the factory function for the given interface type could not be found

Definition at line 72 of file instance_factory.cpp.

References fawkes::ModuleManager::get_module_file_extension(), fawkes::Module::get_symbol(), fawkes::Module::has_symbol(), and fawkes::ModuleManager::open_module().

Referenced by BBLogFile::BBLogFile().


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

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1