home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
borhead.zip
/
TYPEINFO.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-09
|
2KB
|
90 lines
/* typeinfo.h
Definitions for RTTI
*/
/*
* C/C++ Run Time Library - Version 1.5
*
* Copyright (c) 1993, 1994 by Borland International
* All Rights Reserved.
*
*/
#if !defined(__cplusplus)
#error Must use C++ for typeinfo.h
#endif
#if defined(__TINY__)
#error Cannot use Runtime Type Information in tiny model
#endif
#ifndef __TYPEINFO_H
#define __TYPEINFO_H
#if !defined(___DEFS_H)
#include <_defs.h>
#endif
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn -nak
#endif
#pragma option -Vt- // make sure vtable pointer is 'low'
#pragma option -RT
#endif /* !RC_INVOKED */
#if defined(_BUILDRTLDLL) || defined(_RTLDLL)
# define _TIDIST _EXPCLASS
#else
# define _TIDIST
#endif
class tpid;
class _TIDIST __rtti Type_info
{
public:
tpid * tpp;
private:
__cdecl Type_info(const Type_info _FAR &);
Type_info & __cdecl operator=(const Type_info _FAR &);
public:
virtual __cdecl ~Type_info();
int __cdecl operator==(const Type_info _FAR &) const;
int __cdecl operator!=(const Type_info _FAR &) const;
int __cdecl before(const Type_info _FAR &) const;
const char _FAR *__cdecl name() const;
};
class Bad_cast{};
class Bad_typeid{};
#if !defined(RC_INVOKED)
#pragma option -RT.
#pragma option -Vt.
#if defined(__STDC__)
#pragma warn .nak
#endif
#endif /* !RC_INVOKED */
#endif