Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
tstring.h
Go to the documentation of this file.00001 00004 /* 00005 * Copyright © 2002 Sofus Mortensen 00006 * 00007 * This material is provided "as is", with absolutely no warranty 00008 * expressed or implied. Any use is at your own risk. Permission to 00009 * use or copy this software for any purpose is hereby granted without 00010 * fee, provided the above notices are retained on all copies. 00011 * Permission to modify the code and to distribute modified code is 00012 * granted, provided the above notices are retained, and a notice that 00013 * the code was modified is included with the above copyright notice. 00014 * 00015 * This header is part of comet. 00016 * http://www.lambdasoft.dk/comet 00017 */ 00018 00019 #ifndef COMET_TSTRING_H 00020 #define COMET_TSTRING_H 00021 00022 #include <tchar.h> 00023 #include <string> 00024 #include <iosfwd> 00025 00026 namespace comet { 00027 00031 00032 #if defined(_MBCS) && !defined(_UNICODE) && !defined(COMET_NO_MBCS_WARNING) 00033 #pragma message( "Warning: _MBCS is defined. Be aware that tstring does not support multi-byte character strings" ) 00034 #endif 00035 00065 typedef std::basic_string< TCHAR > tstring; 00066 00070 typedef std::basic_ios<TCHAR, std::char_traits<TCHAR> > tios; 00074 typedef std::basic_streambuf<TCHAR, std::char_traits<TCHAR> > tstreambuf; 00078 typedef std::basic_istream<TCHAR, std::char_traits<TCHAR> > tistream; 00082 typedef std::basic_ostream<TCHAR, std::char_traits<TCHAR> > tostream; 00086 typedef std::basic_iostream<TCHAR, std::char_traits<TCHAR> > tiostream; 00090 typedef std::basic_stringbuf<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR> > tstringbuf; 00094 typedef std::basic_istringstream<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR> > tistringstream; 00098 typedef std::basic_ostringstream<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR> > tostringstream; 00102 typedef std::basic_stringstream<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR> > tstringstream; 00106 typedef std::basic_filebuf<TCHAR, std::char_traits<TCHAR> > tfilebuf; 00110 typedef std::basic_ifstream<TCHAR, std::char_traits<TCHAR> > tifstream; 00114 typedef std::basic_ofstream<TCHAR, std::char_traits<TCHAR> > tofstream; 00118 typedef std::basic_fstream<TCHAR, std::char_traits<TCHAR> > tfstream; 00119 00121 } 00122 00123 00124 #endif