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

rtdefs.h

Go to the documentation of this file.
00001 /*
00002  * rtdefs.h
00003  * 
00004  * Copyright (c) 2000-2004 by Florian Fischer (florianfischer@gmx.de)
00005  * and Martin Trautmann (martintrautmann@gmx.de) 
00006  * 
00007  * This file may be distributed and/or modified under the terms of the 
00008  * GNU General Public License version 2 as published by the Free Software 
00009  * Foundation. 
00010  * 
00011  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  */
00019 #ifndef __LRT_DEFS_H__
00020 #define __LRT_DEFS_H__
00021 
00022 #if defined _MSC_VER && !defined __MSVC__
00023 #define __MSVC__
00024 #endif
00025 
00026 // for template specializations to T* (which are not really supported by VC++)
00027 #ifdef __MSVC__
00028 
00029 #define LRT_DEFINE_PTR(T) \
00030    template<class T> typedef T* LRT_PTR_##T;
00031 #define LRT_PTR(T) LRT_PTR_##T
00032 #define LRT_NPTR(T) LRT_PTR_##T
00033 
00034 #else
00035 #define LRT_DEFINE_PTR(T)
00036 #define LRT_PTR(T) T*
00037 #define LRT_NPTR(T) T
00038 
00039 #endif // compiler
00040 
00041 // There is no RTTI on EPOC (and it can't be enabled)
00042 // that's a real problem, but I don't know an easy solution
00043 #ifndef __SYMBIAN32__
00044 #define LRT_DYNAMIC_CAST(T) dynamic_cast<T>
00045 #else
00046 #define LRT_DYNAMIC_CAST(T) (T)
00047 #endif
00048 
00049 
00050 #endif // include guard

This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer