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

corelinux::LibraryInstance Class Reference

#include <LibraryInstance.hpp>

List of all members.

Public Methods

 LibraryInstance ( CharCptr ) throw ( NullPointerException )
 LibraryInstances are typically constructed by the Loader with the name of the library. More...

virtual ~LibraryInstance ( void )
 Virtual Destructor.

bool operator== ( LibraryInstanceCref ) const
 Equality operator.

CharCptr getLibraryName ( void ) const
 Fetch the library name.

virtual LibraryObjectPtr getObject ( CharCptr ) = 0 throw ( NullPointerException )
 Retrieves a LibraryObject instance from the LibraryInstance. More...

virtual void returnObject ( LibraryObjectPtr ) = 0 throw ( NullPointerException )
 Returns the library object to the instance. More...

virtual MetaClassPtr getObjectClassParent ( void ) const
 Returns the MetaClassPtr that represents the canonical reference point from which all other types for this library are subsumed. More...


Protected Methods

 LibraryInstance ( void ) throw ( Assertion )
 Never used, exception thrown.

 LibraryInstance ( LibraryInstanceCref ) throw ( Assertion )
 Copy constructor, never used.

LibraryInstanceRef operator= ( LibraryInstanceCref ) throw ( Assertion )
 Assignment operator never used.

LibraryObjectPtr getLibraryObject ( CharCptr ) throw ( NullPointerException )
 Instance method for derivations to call to actually resolve the library object from the Registry. More...

void returnLibraryObject ( LibraryObjectPtr ) throw ( NullPointerException )
 Instance method for derivations to call to actually remove the library object instance. More...


Constructor & Destructor Documentation

corelinux::LibraryInstance::LibraryInstance ( CharCptr aName ) throw ( NullPointerException )
 

LibraryInstances are typically constructed by the Loader with the name of the library.

Parameters:
CharCptr   for library name
Exceptions:
NullPointerException   the empty string.

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

Virtual Destructor.

corelinux::LibraryInstance::LibraryInstance ( void ) throw ( Assertion ) [protected]
 

Never used, exception thrown.

corelinux::LibraryInstance::LibraryInstance ( LibraryInstanceCref ) throw ( Assertion ) [protected]
 

Copy constructor, never used.


Member Function Documentation

CharCptr corelinux::LibraryInstance::getLibraryName ( void ) const
 

Fetch the library name.

LibraryObjectPtr corelinux::LibraryInstance::getLibraryObject ( CharCptr aObjectName ) throw ( NullPointerException ) [protected]
 

Instance method for derivations to call to actually resolve the library object from the Registry.

Calls LibraryObjectRegistry::createObject

Parameters:
CharCptr   to the name of the object
Exceptions:
NullPointerException   if the name is null

LibraryObjectPtr corelinux::LibraryInstance::getObject ( CharCptr ) throw ( NullPointerException ) [pure virtual]
 

Retrieves a LibraryObject instance from the LibraryInstance.

Parameters:
CharCptr   to the name of the object
Returns:
The instance of the LibraryObject
Exceptions:
NullPointerException   if the name is null

MetaClassPtr corelinux::LibraryInstance::getObjectClassParent ( void ) const [virtual]
 

Returns the MetaClassPtr that represents the canonical reference point from which all other types for this library are subsumed.

Returns:
MetaClassPtr to top level class

LibraryInstanceRef corelinux::LibraryInstance::operator= ( LibraryInstanceCref ) throw ( Assertion ) [protected]
 

Assignment operator never used.

bool corelinux::LibraryInstance::operator== ( LibraryInstanceCref aInstance ) const
 

Equality operator.

void corelinux::LibraryInstance::returnLibraryObject ( LibraryObjectPtr aObject ) throw ( NullPointerException ) [protected]
 

Instance method for derivations to call to actually remove the library object instance.

Calls LibraryObjectRegistry::destroyObject

Exceptions:
NullPointerException   if LibraryObject is null

void corelinux::LibraryInstance::returnObject ( LibraryObjectPtr ) throw ( NullPointerException ) [pure virtual]
 

Returns the library object to the instance.

Parameters:
LibraryObject   pointer to instance
Exceptions:
NullPointerException   if LibraryObject is null


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