ximol/namespace_defs.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 Define all macros for the namespaces.
00024 
00025     These macro are only here to let you put ximol in your own namespace.
00026 
00027         \author Tournois Florent
00028         \version 1.0
00029 
00030     $Id: namespace_defs.hpp,v 1.11 2004/03/03 22:05:30 tournois Exp $
00031     $Log: namespace_defs.hpp,v $
00032     Revision 1.11  2004/03/03 22:05:30  tournois
00033     Add a short roadmap.
00034     Add BOOST_NO_STD_WSTRING for gcc.
00035 
00036     Revision 1.10  2004/02/22 10:27:32  tournois
00037     Add some doc.
00038 
00039     Revision 1.9  2004/02/22 09:54:19  tournois
00040     Change years on the copyright.
00041 
00042     Revision 1.8  2004/01/16 21:05:02  tournois
00043     Beginning the databinbding stuff
00044     Add the first facets and datatype.
00045 
00046     Revision 1.7  2003/11/19 20:52:54  tournois
00047     Add new manipulator for stag and etag.
00048     Correct bugs and add tests.
00049 
00050     Revision 1.6  2003/11/16 11:03:23  tournois
00051     no message
00052 
00053     Revision 1.5  2003/11/14 11:45:04  tournois
00054     First try for the stag.
00055 
00056     Revision 1.4  2003/11/02 19:23:01  tournois
00057     Go to the boost coding standard.
00058     Change all name to lower case.
00059 
00060     Revision 1.3  2003/09/24 08:28:17  tournois
00061     Create the namespace Encoders, Parser, Xml
00062     Change the library organization.
00063     add VC7.1 project for this organization.
00064 
00065   */
00066 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00067 #ifndef XIMOL_NAMESPACE_DEFS_HPP_
00068 #define XIMOL_NAMESPACE_DEFS_HPP_
00069 
00070 /// macro definition for the namespace
00071 #define XIMOL_BEGIN_PRIVATE_NAMESPACE namespace {
00072 #define XIMOL_END_PRIVATE_NAMESPACE   };
00073 
00074 /// macro definition for the namespace
00075 #define XIMOL_NAMESPACE       ximol
00076 #define XIMOL_NAMESPACE_PATH  ::XIMOL_NAMESPACE
00077 #define XIMOL_BEGIN_NAMESPACE namespace XIMOL_NAMESPACE {
00078 #define XIMOL_END_NAMESPACE   };
00079 #define XIMOL_USING_NAMESPACE using namespace XIMOL_NAMESPACE_PATH;
00080 
00081 /// macro definition for the namespace
00082 #define XIMOL_XML_NAMESPACE       xml
00083 #define XIMOL_XML_NAMESPACE_PATH  XIMOL_NAMESPACE_PATH::XIMOL_XML_NAMESPACE
00084 #define XIMOL_XML_BEGIN_NAMESPACE XIMOL_BEGIN_NAMESPACE namespace XIMOL_XML_NAMESPACE {
00085 #define XIMOL_XML_END_NAMESPACE   }; XIMOL_END_NAMESPACE
00086 #define XIMOL_XML_USING_NAMESPACE using namespace XIMOL_XML_NAMESPACE_PATH;
00087 
00088 /// macro definition for the namespace
00089 #define XIMOL_PARSER_NAMESPACE       parser
00090 #define XIMOL_PARSER_NAMESPACE_PATH  XIMOL_NAMESPACE_PATH::XIMOL_PARSER_NAMESPACE
00091 #define XIMOL_PARSER_BEGIN_NAMESPACE XIMOL_BEGIN_NAMESPACE namespace XIMOL_PARSER_NAMESPACE {
00092 #define XIMOL_PARSER_END_NAMESPACE   }; XIMOL_END_NAMESPACE
00093 #define XIMOL_PARSER_USING_NAMESPACE using namespace XIMOL_PARSER_NAMESPACE_PATH;
00094 
00095 /// macro definition for the namespace
00096 #define XIMOL_ENCODERS_NAMESPACE       encoders
00097 #define XIMOL_ENCODERS_NAMESPACE_PATH  XIMOL_NAMESPACE_PATH::XIMOL_ENCODERS_NAMESPACE
00098 #define XIMOL_ENCODERS_BEGIN_NAMESPACE XIMOL_BEGIN_NAMESPACE namespace XIMOL_ENCODERS_NAMESPACE {
00099 #define XIMOL_ENCODERS_END_NAMESPACE   };  XIMOL_END_NAMESPACE
00100 #define XIMOL_ENCODERS_USING_NAMESPACE using namespace XIMOL_ENCODERS_NAMESPACE_PATH;
00101 
00102 /// macro definition for the namespace
00103 #define XIMOL_DATATYPE_NAMESPACE       datatype
00104 #define XIMOL_DATATYPE_NAMESPACE_PATH  XIMOL_NAMESPACE_PATH::XIMOL_DATATYPE_NAMESPACE
00105 #define XIMOL_DATATYPE_BEGIN_NAMESPACE XIMOL_BEGIN_NAMESPACE namespace XIMOL_DATATYPE_NAMESPACE {
00106 #define XIMOL_DATATYPE_END_NAMESPACE   }; XIMOL_END_NAMESPACE
00107 #define XIMOL_DATATYPE_USING_NAMESPACE using namespace XIMOL_DATATYPE_NAMESPACE_PATH;
00108 
00109 /// macro definition for the namespace
00110 #define XIMOL_FACET_NAMESPACE       facet
00111 #define XIMOL_FACET_NAMESPACE_PATH  XIMOL_NAMESPACE_PATH::XIMOL_FACET_NAMESPACE
00112 #define XIMOL_FACET_BEGIN_NAMESPACE XIMOL_BEGIN_NAMESPACE namespace XIMOL_FACET_NAMESPACE {
00113 #define XIMOL_FACET_END_NAMESPACE   }; XIMOL_END_NAMESPACE
00114 #define XIMOL_FACET_USING_NAMESPACE using namespace XIMOL_FACET_NAMESPACE_PATH;
00115 
00116 /// macro definition for the namespace
00117 #define XIMOL_DOM_NAMESPACE       dom
00118 #define XIMOL_DOM_NAMESPACE_PATH  XIMOL_NAMESPACE_PATH::XIMOL_DOM_NAMESPACE
00119 #define XIMOL_DOM_BEGIN_NAMESPACE XIMOL_BEGIN_NAMESPACE namespace XIMOL_DOM_NAMESPACE {
00120 #define XIMOL_DOM_END_NAMESPACE   }; XIMOL_END_NAMESPACE
00121 #define XIMOL_DOM_USING_NAMESPACE using namespace XIMOL_DOM_NAMESPACE_PATH;
00122 
00123 /// Namespace for all parser and interface functions.
00124 XIMOL_BEGIN_NAMESPACE
00125 
00126 /// Namespace for all XiMoL Interface functions.
00127 namespace XIMOL_XML_NAMESPACE {
00128 };
00129 
00130 /// Namespace for all XiMoL Interface functions.
00131 namespace XIMOL_PARSER_NAMESPACE {
00132 };
00133 
00134 /// Namespace for all XiMoL encoders functions.
00135 namespace XIMOL_ENCODERS_NAMESPACE {
00136 };
00137 
00138 /// Namespace for all XiMoL datatype.
00139 namespace XIMOL_DATATYPE_NAMESPACE {
00140 };
00141 
00142 /// Namespace for all XiMoL datatype.
00143 namespace XIMOL_FACET_NAMESPACE {
00144 };
00145 
00146 /// Namespace for all XiMoL DOM.
00147 namespace XIMOL_DOM_NAMESPACE {
00148 };
00149 
00150 XIMOL_END_NAMESPACE
00151 
00152 #endif // #ifndef XIMOL_NAMESPACE_DEFS_HPP_


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