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

corelinux::MetaClass Class Reference

MetaClass is the aggregate node information about a MetaType in a Ontology, which for now is limited to hierarchical information. More...

#include <MetaClass.hpp>

Inheritance diagram for corelinux::MetaClass:

corelinux::TransparentComponent List of all members.

Public Methods

virtual ~MetaClass ( void )
 Virtual Destructor.

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

UniversalIdentifierCref getIdentifier ( void ) const
 Get the class identifier.

CharCptr getInstanceTypeName ( void ) const
 Return the object type for this meta class.

CharCptr getMetaTypeName ( void ) const
 Return the name of the meta class.

CharCptr getTypeDescription ( void ) const
 get the class description. More...

CharCptr getDomainName ( void ) const
 get the domain name (the Ontology) that this class is a member of. More...

Count getParentCount ( void ) const
 get the parent count. More...

Count getInstanceMemberCount ( void ) const
 get the instance member (attributes) count. More...

Count getInstanceFunctionCount ( void ) const
 get the dispatch functions count. More...

bool isAbstractType ( void ) const
 tells if this is an abstract type. More...

MetaTypeCptr getType ( void ) const
 Retrieve the MetaType associated with this MetaClass. More...

virtual void addComponent ( MetaClassPtr ) throw ( InvalidCompositeException )
 Add a child component to this composite. More...

virtual void removeComponent ( MetaClassPtr ) throw ( InvalidCompositeException )
 Remove a child component from this composite. More...

void dispatch ( FrameworkEntityPtr, CharPtr, void **, void * ) throw ( NullPointerException, DescriptorNotFound )
 Attempts to call the method via a dispatch function on the object. More...

void dispatch ( CharPtr, void **, void * ) throw ( NullPointerException, DescriptorNotFound )
 Attempts to call the method via a dispatch function on the object. More...

virtual Iterator<MetaClassPtr>* createIterator ( void ) throw ( InvalidCompositeException )
 Create a iterator over the children of this composite. More...

virtual Iterator<MetaClassPtr>* createParentIterator ( void ) throw ( InvalidCompositeException )
 Create a iterator over the parents of this composite. More...

virtual Iterator<MemberDescriptorPtr>* createMemberIterator ( void ) throw ( InvalidCompositeException )
 Create a iterator over the data member declarations of this composite. More...

virtual Iterator<DispatchDescriptorPtr>* createMethodIterator ( void ) throw ( InvalidCompositeException )
 Create a iterator over the methods of this composite. More...

virtual void destroyIterator ( Iterator<MetaClassPtr>* ) throw ( InvalidCompositeException )
 Destroy the iterator. More...

virtual void destroyIterator ( Iterator<MemberDescriptorPtr> * ) throw ( InvalidCompositeException )
 Destroy the iterator. More...

virtual void destroyIterator ( Iterator<DispatchDescriptorPtr> * ) throw ( InvalidCompositeException )
 Destroy the iterator. More...


Friends

class  Ontology

Detailed Description

MetaClass is the aggregate node information about a MetaType in a Ontology, which for now is limited to hierarchical information.


Constructor & Destructor Documentation

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

Virtual Destructor.


Member Function Documentation

void corelinux::MetaClass::addComponent ( MetaClassPtr aClass ) throw ( InvalidCompositeException ) [virtual]
 

Add a child component to this composite.

Parameters:
MetaClass   const pointer
Exceptions:
signature   from base type

Iterator< MetaClassPtr >* corelinux::MetaClass::createIterator ( void ) throw ( InvalidCompositeException ) [virtual]
 

Create a iterator over the children of this composite.

Returns:
Iterator<MetaClassCptr> pointer

Iterator< MemberDescriptorPtr >* corelinux::MetaClass::createMemberIterator ( void ) throw ( InvalidCompositeException ) [virtual]
 

Create a iterator over the data member declarations of this composite.

Returns:
Iterator<MemberDescriptorCptr> pointer

Iterator< DispatchDescriptorPtr >* corelinux::MetaClass::createMethodIterator ( void ) throw ( InvalidCompositeException ) [virtual]
 

Create a iterator over the methods of this composite.

Returns:
Iterator<DispatchDescriptorCptr> pointer

Iterator< MetaClassPtr >* corelinux::MetaClass::createParentIterator ( void ) throw ( InvalidCompositeException ) [virtual]
 

Create a iterator over the parents of this composite.

Returns:
Iterator<MetaClassCptr> pointer

void corelinux::MetaClass::destroyIterator ( Iterator< DispatchDescriptorPtr >* anIterator ) throw ( InvalidCompositeException ) [virtual]
 

Destroy the iterator.

Parameters:
Iterator<MetaClassCptr>   pointer

void corelinux::MetaClass::destroyIterator ( Iterator< MemberDescriptorPtr >* anIterator ) throw ( InvalidCompositeException ) [virtual]
 

Destroy the iterator.

Parameters:
Iterator<MetaClassCptr>   pointer

void corelinux::MetaClass::destroyIterator ( Iterator< MetaClassPtr >* anIterator ) throw ( InvalidCompositeException ) [virtual]
 

Destroy the iterator.

Parameters:
Iterator<MetaClassCptr>   pointer

void corelinux::MetaClass::dispatch ( CharPtr aName,
void ** args,
void * ret ) throw ( NullPointerException, DescriptorNotFound )
 

Attempts to call the method via a dispatch function on the object.

Parameters:
char   pointer to the named method (used for lookup)
void   pointer array of arguments
void   pointer to return value
Exceptions:
NullpointerException   if object or name are null
DescriptorNotFound   if no match

void corelinux::MetaClass::dispatch ( FrameworkEntityPtr aEntity,
CharPtr aName,
void ** args,
void * ret ) throw ( NullPointerException, DescriptorNotFound )
 

Attempts to call the method via a dispatch function on the object.

Parameters:
FrameworkEntity   pointer to the object
char   pointer to the named method (used for lookup)
void   pointer array of arguments
void   pointer to return value
Exceptions:
NullpointerException   if object or name are null
DescriptorNotFound   if no match

CharCptr corelinux::MetaClass::getDomainName ( void ) const
 

get the domain name (the Ontology) that this class is a member of.

Returns:
char pointer to domain name, or null

UniversalIdentifierCref corelinux::MetaClass::getIdentifier ( void ) const
 

Get the class identifier.

Count corelinux::MetaClass::getInstanceFunctionCount ( void ) const
 

get the dispatch functions count.

Returns:
Count of dispatch functions

Count corelinux::MetaClass::getInstanceMemberCount ( void ) const
 

get the instance member (attributes) count.

Returns:
Count of data members

CharCptr corelinux::MetaClass::getInstanceTypeName ( void ) const
 

Return the object type for this meta class.

CharCptr corelinux::MetaClass::getMetaTypeName ( void ) const
 

Return the name of the meta class.

Count corelinux::MetaClass::getParentCount ( void ) const
 

get the parent count.

Returns:
Count of parents (0 if root)

MetaTypeCptr corelinux::MetaClass::getType ( void ) const
 

Retrieve the MetaType associated with this MetaClass.

Returns:
MetaType const pointer

CharCptr corelinux::MetaClass::getTypeDescription ( void ) const
 

get the class description.

Returns:
char pointer to description or null

bool corelinux::MetaClass::isAbstractType ( void ) const
 

tells if this is an abstract type.

Returns:
true if abstract, false otherwise

bool corelinux::MetaClass::operator== ( MetaClassCref aClass ) const
 

Equality operator.

Parameters:
MetaClass   const reference
Returns:
bool : true if same types

void corelinux::MetaClass::removeComponent ( MetaClassPtr aClass ) throw ( InvalidCompositeException ) [virtual]
 

Remove a child component from this composite.

Parameters:
MetaClass   const pointer
Exceptions:
signature   from base type


Friends And Related Function Documentation

class Ontology [friend]
 


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