Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::Library Class Reference

Library supports resolving library library loaders using the LibraryType classes described in the 'corelinux' ontology. More...

#include <Library.hpp>

List of all members.

Public Methods

 Library ( void )
 Default constructor.

virtual ~Library ( void )
 Virtual Destructor.

bool operator== ( LibraryCref ) const
 Equality operator. More...

virtual LibraryInstancePtr load ( CharPtr ) throw ( NullPointerException, LoaderNotFoundException )
 Load is the request to access a Loader that handles the library type as determined by the name. More...

virtual LibraryInstancePtr load ( CharPtr, MetaClassPtr ) throw ( NullPointerException, LoaderNotFoundException )
 Load is the request to access a Loader that handles the library type as determined by the MetaClass provided with the library name. More...

virtual void unLoad ( LibraryInstancePtr ) throw ( NullPointerException )
 Unload will remove all library objects associated with the LibraryInstance. More...


Protected Methods

 Library ( LibraryCref ) throw (Assertion)
 Copy constructor not allowed.

MetaClassPtr findLibraryHandler ( CharCptr )
 Finds a handler for the library type.

LibraryInstancePtr loadInstance ( CharPtr , MetaClassPtr )
 Do the actual load.

void unloadInstance ( LibraryInstancePtr, MetaClassPtr )
 Do a unload of the instance.

LibraryRef operator= ( LibraryCref ) throw (Assertion)
 Assignment not allowed.


Detailed Description

Library supports resolving library library loaders using the LibraryType classes described in the 'corelinux' ontology.

See also:
corelinux::LibraryType , corelinux::LibraryInstance


Constructor & Destructor Documentation

corelinux::Library::Library ( void )
 

Default constructor.

corelinux::Library::~Library ( void ) [virtual]
 

Virtual Destructor.

corelinux::Library::Library ( LibraryCref ) throw (Assertion) [protected]
 

Copy constructor not allowed.


Member Function Documentation

MetaClassPtr corelinux::Library::findLibraryHandler ( CharCptr aName ) [protected]
 

Finds a handler for the library type.

LibraryInstancePtr corelinux::Library::load ( CharPtr aName,
MetaClassPtr aClass ) throw ( NullPointerException, LoaderNotFoundException ) [virtual]
 

Load is the request to access a Loader that handles the library type as determined by the MetaClass provided with the library name.

In effect, this overrides searching for the first handler available.

Parameters:
Char   pointer to name of library
MetaClass   pointer to MetaLibraryType derivation that handles the load
Returns:
LibraryInstance instance of LibraryInstance
Exceptions:
NullPointerException   if either pointer is null
LoaderNotFoundException   if type can't be resolved

LibraryInstancePtr corelinux::Library::load ( CharPtr aName ) throw ( NullPointerException, LoaderNotFoundException ) [virtual]
 

Load is the request to access a Loader that handles the library type as determined by the name.

This will delegate the work to the first loader it finds that can handle the file type.

Parameters:
Char   pointer to name of library
Returns:
LibraryInstance instance of LibraryInstance
Exceptions:
NullPointerException   if pointer is null
LoaderNotFoundException   if type can't be resolved

LibraryInstancePtr corelinux::Library::loadInstance ( CharPtr aLibraryName,
MetaClassPtr aTypeClass ) [protected]
 

Do the actual load.

LibraryRef corelinux::Library::operator= ( LibraryCref ) throw (Assertion) [protected]
 

Assignment not allowed.

bool corelinux::Library::operator== ( LibraryCref aLibrary ) const
 

Equality operator.

Parameters:
Library   const reference to other Library
Returns:
bool true if equal, false otherwise

void corelinux::Library::unLoad ( LibraryInstancePtr aLibInst ) throw ( NullPointerException ) [virtual]
 

Unload will remove all library objects associated with the LibraryInstance.

Parameters:
LibraryInstancePtr   instance pointer
Exceptions:
NullPointerException   if argument is null

void corelinux::Library::unloadInstance ( LibraryInstancePtr anInstance,
MetaClassPtr aTypeClass ) [protected]
 

Do a unload of the instance.


The documentation for this class was generated from the following files:
This is the CoreLinux++ Framework reference manual
Provided by The CoreLinux Consortium