ximol/xml/stag.cpp

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 stag Implementation.
00024         
00025         \author Tournois Florent
00026         \version 1.0
00027 
00028     $Id: stag.cpp,v 1.3 2004/02/22 10:27:34 tournois Exp $
00029     $Log: stag.cpp,v $
00030     Revision 1.3  2004/02/22 10:27:34  tournois
00031     Add some doc.
00032 
00033     Revision 1.2  2004/02/22 09:54:21  tournois
00034     Change years on the copyright.
00035 
00036     Revision 1.1  2004/02/21 20:03:58  tournois
00037     Change the stag, etag, open_stag, box and rebox template with macro.
00038 
00039 
00040   */
00041 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00042 #include <ximol/xml/stag.hpp>
00043 
00044 XIMOL_XML_BEGIN_NAMESPACE
00045 
00046 // define all function stag(string1, string2, attributes)
00047 #define XIMOL_HEADER_DEFINE_FUNCTION(type1, type2, type3) \
00048     manipulator_stag< qualified_name<type1, type2>, type3> stag(type1 & prefix, type2 & local, type3 & att){ \
00049     return manipulator_stag< qualified_name<type1,type2>, type3>(qname(prefix, local),att); }; 
00050 #include <ximol/config/define_functions_prefix_local_attributes.hpp>
00051 
00052 // define all function stag(string1, string2)
00053 #define XIMOL_HEADER_DEFINE_FUNCTION(type1, type2) \
00054     manipulator_stag< qualified_name<type1, type2>, xml::attributes> stag(type1 & prefix, type2 & local){ \
00055     return manipulator_stag< qualified_name<type1,type2>, xml::attributes>(qname(prefix, local)); }; 
00056 #include <ximol/config/define_functions_prefix_local.hpp>
00057 
00058 // define all function stag(string1, attribute)
00059 #define XIMOL_HEADER_DEFINE_FUNCTION(type1, type3) \
00060     manipulator_stag< qualified_name<type1, type1>, type3> stag(type1 & local, type3 & att){ \
00061     return manipulator_stag< qualified_name<type1,type1>, type3>(qname(local),att); }; 
00062 #include <ximol/config/define_functions_local_attributes.hpp>
00063 
00064 // define all function stag(string1)
00065 #define XIMOL_HEADER_DEFINE_FUNCTION(type1) \
00066     manipulator_stag< qualified_name<type1, type1>, xml::attributes> stag(type1 & local){ \
00067     return manipulator_stag< qualified_name<type1,type1>, xml::attributes>(qname(local)); }; 
00068 #include <ximol/config/define_functions_local.hpp>
00069 
00070 XIMOL_XML_END_NAMESPACE
00071 


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