neo::cca::ports::Loader Class Reference

NOT YET DEFINED IN CCA.SIDL: This is related to, but not the same as, cca ComponentRepository or ComponentFactory or sidl.DLL or sidl.Loader. More...

#include <Loader.hh>

Inheritance diagram for neo::cca::ports::Loader:

Inheritance graph
[legend]
Collaboration diagram for neo::cca::ports::Loader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~Loader ()
virtual void setPath (const std::vector< std::string > &paths)=0
 replace current path with new paths.
virtual std::vector< std::string > getPath ()=0
 return the list of directories searched for .cca files.
virtual int loadPortLibrary (const std::string &portLibraryName)=0
 Cause the named port interface library to be dynamically loaded.
virtual void loadComponent (const std::string &paletteClassAlias, bool global, bool lazy)=0
 Cause the named class to become instantiable by a subsequent call to BuilderSErvice.createComponentInstance().


Detailed Description

NOT YET DEFINED IN CCA.SIDL: This is related to, but not the same as, cca ComponentRepository or ComponentFactory or sidl.DLL or sidl.Loader.

It gives access to the global resources that handle dynamic loading of components (.so, .dll).


Constructor & Destructor Documentation

virtual neo::cca::ports::Loader::~Loader (  )  [inline, virtual]

00021 {}


Member Function Documentation

virtual void neo::cca::ports::Loader::setPath ( const std::vector< std::string > &  paths  )  [pure virtual]

replace current path with new paths.

each vector element is one directory name. Path is searched for .cca and possibly .scl elements.

virtual std::vector< std::string > neo::cca::ports::Loader::getPath (  )  [pure virtual]

return the list of directories searched for .cca files.

virtual int neo::cca::ports::Loader::loadPortLibrary ( const std::string &  portLibraryName  )  [pure virtual]

Cause the named port interface library to be dynamically loaded.

The port class will be loaded globally, as interfaces between components must be globally defined.

Returns:
0 if loaded, nonzero if some problem detected.

virtual void neo::cca::ports::Loader::loadComponent ( const std::string &  paletteClassAlias,
bool  global,
bool  lazy 
) [pure virtual]

Cause the named class to become instantiable by a subsequent call to BuilderSErvice.createComponentInstance().

This activity may require side effects with dlopen. In dlopen terms, lazy=true -> RTLD_LAZY, false->RTLD_NOW; global=true ->RTLD_GLOBAL, false->RTLD_LOCAL.


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

Generated on Mon Sep 14 18:33:38 2009 for NEOCCA bindings Specification by  doxygen 1.5.9