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

rtetools.h

Go to the documentation of this file.
00001 /*
00002  * rtetools.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  */
00015 
00020 #ifndef __LRT_EPOC_TOOLS__
00021 #define __LRT_EPOC_TOOLS__
00022 
00023 #include <rtstring.h>
00024 
00025 #include <e32std.h>
00026 
00028 #ifdef __SYMBIAN32__
00029 
00030 #ifdef _UNICODE
00031 #include <e32std.h>
00032 TBuf<256> ESTRING(const lrt::String& str);
00033 #else
00034 #include <e32def.h>
00036 #define ESTRING(str) _L(((unsigned char*)str.cStr()))
00037 #endif
00038 
00039 #ifdef _UNICODE
00040 lrt::String MYSTRING(const TDesC& str);
00041 #define MYSTRING_C(str) MYSTRING(str)
00042 #else
00043 
00044 #define MYSTRING(str) lrt::String((char*)(str.PtrZ()))
00045 
00046 #define MYSTRING_C(str) lrt::String((const char *)(str.Des().PtrZ()))
00047 #endif
00048 
00049 #endif
00050 
00051 
00052 
00053 #endif
00054 

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