/home/martin/workspace/OpenStreetNav/src/xmlparse/tag-pskel.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2005-2010 Code Synthesis Tools CC
00002 //
00003 // This program was generated by CodeSynthesis XSD, an XML Schema to
00004 // C++ data binding compiler.
00005 //
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License version 2 as
00008 // published by the Free Software Foundation.
00009 //
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00018 //
00019 // In addition, as a special exception, Code Synthesis Tools CC gives
00020 // permission to link this program with the Xerces-C++ library (or with
00021 // modified versions of Xerces-C++ that use the same license as Xerces-C++),
00022 // and distribute linked combinations including the two. You must obey
00023 // the GNU General Public License version 2 in all respects for all of
00024 // the code used other than Xerces-C++. If you modify this copy of the
00025 // program, you may extend this exception to your version of the program,
00026 // but you are not obligated to do so. If you do not wish to do so, delete
00027 // this exception statement from your version.
00028 //
00029 // Furthermore, Code Synthesis Tools CC makes a special exception for
00030 // the Free/Libre and Open Source Software (FLOSS) which is described
00031 // in the accompanying FLOSSE file.
00032 //
00033 
00034 #ifndef TAG_PSKEL_HXX
00035 #define TAG_PSKEL_HXX
00036 
00037 // Begin prologue.
00038 //
00039 //
00040 // End prologue.
00041 
00042 #include <xsd/cxx/config.hxx>
00043 
00044 #if (XSD_INT_VERSION != 3030000L)
00045 #error XSD runtime version mismatch
00046 #endif
00047 
00048 #include <xsd/cxx/pre.hxx>
00049 
00050 // Forward declarations
00051 //
00052 class tag_pskel;
00053 
00054 #ifndef XSD_USE_CHAR
00055 #define XSD_USE_CHAR
00056 #endif
00057 
00058 #ifndef XSD_CXX_PARSER_USE_CHAR
00059 #define XSD_CXX_PARSER_USE_CHAR
00060 #endif
00061 
00062 #include "xml_schema-pskel.hxx"
00063 
00064 class tag_pskel: public ::xml_schema::complex_content
00065 {
00066   public:
00067   // Parser callbacks. Override them in your implementation.
00068   //
00069   // virtual void
00070   // pre ();
00071 
00072   virtual void
00073   k (const ::std::string&);
00074 
00075   virtual void
00076   v (const ::std::string&);
00077 
00078   virtual std::pair<std::string, std::string>
00079   post_tag () = 0;
00080 
00081   // Parser construction API.
00082   //
00083   void
00084   k_parser (::xml_schema::string_pskel&);
00085 
00086   void
00087   v_parser (::xml_schema::string_pskel&);
00088 
00089   void
00090   parsers (::xml_schema::string_pskel& /* k */,
00091            ::xml_schema::string_pskel& /* v */);
00092 
00093   // Constructor.
00094   //
00095   tag_pskel ();
00096 
00097   // Implementation.
00098   //
00099   protected:
00100   virtual bool
00101   _attribute_impl_phase_one (const ::xml_schema::ro_string&,
00102                              const ::xml_schema::ro_string&,
00103                              const ::xml_schema::ro_string&);
00104 
00105 
00106   protected:
00107   ::xml_schema::string_pskel* k_parser_;
00108   ::xml_schema::string_pskel* v_parser_;
00109 
00110   protected:
00111   struct v_state_attr_
00112   {
00113     bool k;
00114     bool v;
00115   };
00116 
00117   v_state_attr_ v_state_attr_first_;
00118   ::xsd::cxx::parser::pod_stack v_state_attr_stack_;
00119 
00120   virtual void
00121   _pre_a_validate ();
00122 
00123   virtual void
00124   _post_a_validate ();
00125 };
00126 
00127 #include <xsd/cxx/post.hxx>
00128 
00129 // Begin epilogue.
00130 //
00131 //
00132 // End epilogue.
00133 
00134 #endif // TAG_PSKEL_HXX
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines