ximol/typedefs.hpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002  *                                                                           *
00003  * library XiMoL                                                             *
00004  * Copyright (C) 2002, 2003, 2004 Florent Tournois                           *
00005  *                                                                           *
00006  * This library is free software; you can redistribute it and/or             *
00007  * modify it under the terms of the GNU Lesser General Public                *
00008  * License as published by the Free Software Foundation; either              *
00009  * version 2.1 of the License, or (at your option) any later version.        *
00010  *                                                                           *
00011  * This library is distributed in the hope that it will be useful,           *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00014  * Lesser General Public License for more details.                           *
00015  *                                                                           *
00016  * You should have received a copy of the GNU Lesser General Public          *
00017  * License along with this library; if not, write to the Free Software       *
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA   *
00019  *                                                                           *
00020 \*****************************************************************************/
00021 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00022 /** \file 
00023         \brief All cool type definition.
00024   
00025         \author Tournois Florent
00026         \version 1.0
00027 
00028     $Id: typedefs.hpp,v 1.8 2004/03/04 18:45:29 tournois Exp $
00029     $Log: typedefs.hpp,v $
00030     Revision 1.8  2004/03/04 18:45:29  tournois
00031     Compatibility with gcc.
00032 
00033     Revision 1.7  2004/03/03 22:05:30  tournois
00034     Add a short roadmap.
00035     Add BOOST_NO_STD_WSTRING for gcc.
00036 
00037     Revision 1.6  2004/02/22 10:27:33  tournois
00038     Add some doc.
00039 
00040     Revision 1.5  2004/02/22 09:54:19  tournois
00041     Change years on the copyright.
00042 
00043     Revision 1.4  2004/01/25 17:20:24  tournois
00044     no message
00045 
00046     Revision 1.3  2003/11/02 19:23:01  tournois
00047     Go to the boost coding standard.
00048     Change all name to lower case.
00049 
00050     Revision 1.2  2003/09/24 08:28:17  tournois
00051     Create the namespace Encoders, Parser, Xml
00052     Change the library organization.
00053     add VC7.1 project for this organization.
00054 
00055   */
00056 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00057 #ifndef XIMOL_TYPEDEFS_HPP_
00058 #define XIMOL_TYPEDEFS_HPP_
00059 
00060 #include <boost/config.hpp>
00061 #include <ximol/namespace_defs.hpp>
00062 #include <string>
00063 #include <sstream>
00064 
00065 #ifdef BOOST_NO_STD_WSTRING
00066 namespace std {
00067     typedef basic_string<wchar_t> wstring;
00068     typedef basic_ostream<wchar_t> wostream;
00069     typedef basic_istream<wchar_t> wistream;
00070     typedef basic_iostream<wchar_t>  wstream;
00071     typedef basic_ostringstream<wchar_t> wostringstream;
00072     typedef basic_istringstream<wchar_t> wistringstream;
00073     typedef basic_stringstream<wchar_t>  wstringstream;
00074 };
00075 #endif
00076 
00077 XIMOL_BEGIN_NAMESPACE
00078 
00079 /// definition of our character.
00080 typedef wchar_t xchar_t;
00081 
00082 /// definition of our string.
00083 typedef ::std::basic_string<xchar_t> xstring;
00084 
00085 XIMOL_END_NAMESPACE
00086 
00087 #endif // #ifndef XIMOL_TYPEDEFS_HPP_


Donate to the XiMoL project SourceForge.net Logo If you have any questions about XiMoL, you could write to tournois@users.sourceforge.net.