home *** CD-ROM | disk | FTP | other *** search
- #ifndef _H_RTTI_ENTRY
- #define _H_RTTI_ENTRY
- /* %Z%%I% %G% %U% %W% */
- /*
- * COMPONENT_NAME: (COMINC) Common Header File for RTTI
- *
- * ORIGINS: 27
- *
- * (C) COPYRIGHT International Business Machines Corp. 1992
- * This work was supported by a grant from International Business
- * Machines, Inc. These procedures are contributed to the public domain
- * by International Business Machines Inc. "AS IS" without any warranty
- * of any kind including the warranty of merchantability or fitness
- * for a particular purpose.
- *
- * This is free software. Feel free to redistribute and/or modify it.
- * Please send us e-mail and let us know if you have any problems
- * or suggestions.
- *
- * Arindam Banerji
- * axb@cse.nd.edu
- *
- *
- *
- */
-
- #include "trace.h"
-
- class CLASS ; // a fwd declaration to make the rtti classes work
- class Type_info ; // a fwd declaration to make rtti classes work
-
- // In order to avoid a cycle in the definition of classes - the following
- // hack class is introduced. The following two class definitions are
- // hacks are are essentially non-portable.
- class hndl_recursion
- {
- public :
- hndl_recursion() : name("CLASS"), ptr(0) { } ;
- virtual ~hndl_recursion() { } ;
- const char *name ;
- const int *ptr ;
- const Type_info *operator & () ;
- const Type_info *convert_type() const ;
- } ;
-
-
- #include "rtti.h"
- #include "rttimacros.h"
-
- #endif // _H_CPP_ENTRY
-