Main Page   Class Hierarchy   Compound List   File List   Compound Members  

RTTIRepository Class Reference

#include <reflect.h>

List of all members.

Public Methods

RTTIClassDescriptorgetFirstClass ()
RTTIClassDescriptorfindClass (char const *name)
bool addClass (RTTIClassDescriptor *cls)
virtual bool load (char const *filePath)

Static Public Methods

RTTIRepository * getInstance ()

Protected Attributes

RTTIClassDescriptorclasses
RTTIClassDescriptorhashTable [RTTI_CLASS_HASH_SIZE]

Static Protected Attributes

RTTIRepository theRepository


Detailed Description

Repository with runtime type information


Member Function Documentation

bool RTTIRepository::addClass RTTIClassDescriptor   cls
 

Add new class descriptor to the repository

Parameters:
cls  new class descriptor

RTTIClassDescriptor* RTTIRepository::findClass char const *    name
 

Find class with specified name

Parameters:
name  name of the class
Returns:
class descriptor with specified name or NULL if not found

RTTIClassDescriptor* RTTIRepository::getFirstClass   [inline]
 

Get first class in repostiory. Classes in repository are linked in L1 list. RTTIClassDescriptor::getNext() method can be used to iterate through elements of this list

Returns:
head element of L1 list of classes

RTTIRepository* RTTIRepository::getInstance   [inline, static]
 

Get instance of repostory

Returns:
instance of repository

virtual bool RTTIRepository::load char const *    filePath [virtual]
 

Load type information from specified file. Implementation of this method in this always return false. At this moment there is only one other source of extracting type information - executable files in ELF format compiled with debug information. To be able to extract type information from debug information, you should use RTTIBfdRepository class derived from RTTIRepostiory class and overriding thids method.

Parameters:
filePath  path to the file contaning type information.
Returns:
true if infomation was successfully loaded, false otherwise


The documentation for this class was generated from the following file:
Generated on Fri Apr 26 17:39:24 2002 for CppReflection by doxygen1.2.15