Xrtti::Context Class Reference

#include <Xrtti.h>

Inheritance diagram for Xrtti::Context:

Xrtti::Incomplete Xrtti::Namespace Xrtti::Structure Xrtti::Struct Xrtti::Union Xrtti::Class List of all members.

Public Types

enum  Type {
  Type_Class = 0, Type_Incomplete = 1, Type_Namespace = 2, Type_Struct = 3,
  Type_Union = 4
}

Public Member Functions

virtual Type GetType () const =0
const char * GetName () const
const char * GetFullName () const
const ContextGetParent () const

Friends

class Incomplete
class Namespace
class Structure

Detailed Description

************************************************************************** An Xrtti::Context is either a namespace or a structure (class, struct, or union), or is incomplete; it has a name and a parent context.


Member Enumeration Documentation

enum Xrtti::Context::Type
 

********************************************************************** This enumerates the valid Context types


Member Function Documentation

virtual Type Xrtti::Context::GetType  )  const [pure virtual]
 

Returns the type of this context. The most derived class of this object is determined by the value returned here:

Type_Class: most derived type is Class
Type_Incomplete: most derived type is Incomplete
Type_Namespace: most derived type is Namespace
Type_Struct: most derived type is Struct
Type_Union: most derived type is Union

Returns:
the type of this context

Implemented in Xrtti::Incomplete, Xrtti::Namespace, Xrtti::Union, Xrtti::Struct, and Xrtti::Class.

const char* Xrtti::Context::GetName  )  const [inline]
 

Returns the name of this context.

Returns:
the name of this context.

const char* Xrtti::Context::GetFullName  )  const [inline]
 

Returns the full name of this context. This includes the entire namespace leading up to this context. It is the name of the parent Context prepended to the name of this Context, with a double-colon separator.

Returns:
the full name of this context

const Context* Xrtti::Context::GetParent  )  const [inline]
 

This is the parent context of this context. If this is NULL, then this Context is the root Context and has no parent.


The documentation for this class was generated from the following file:
Generated on Sun Apr 29 22:26:04 2007 by  doxygen 1.4.6