- Main Page
- Related Pages
- Classes
- Files

# work/mixpp/tests/hello-pskel.hxx

    00001 // Copyright (C) 2005-2008 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 CXX_HOME_SMIDL_WORK_MIXPP_TESTS_HELLO_PSKEL_HXX
    00035 #define CXX_HOME_SMIDL_WORK_MIXPP_TESTS_HELLO_PSKEL_HXX
    00036
    00037 // Begin prologue.
    00038 //
    00039 //
    00040 // End prologue.
    00041
    00042 #include <xsd/cxx/version.hxx>
    00043
    00044 #if (XSD_INT_VERSION != 3010000L)
    00045 #error XSD runtime version mismatch
    00046 #endif
    00047
    00048 #include <xsd/cxx/pre.hxx>
    00049
    00050 // Forward declarations
    00051 //
    00052 class hello_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 <xsd/cxx/xml/error-handler.hxx>
    00063 #include <xsd/cxx/parser/exceptions.hxx>
    00064 #include <xsd/cxx/parser/elements.hxx>
    00065 #include <xsd/cxx/parser/xml-schema.hxx>
    00066 #include <xsd/cxx/parser/non-validating/parser.hxx>
    00067 #include <xsd/cxx/parser/non-validating/xml-schema-pskel.hxx>
    00068 #include <xsd/cxx/parser/non-validating/xml-schema-pimpl.hxx>
    00069 #include <xsd/cxx/parser/xerces/elements.hxx>
    00070
    00071 namespace xml_schema
    00072 {
    00073   // Built-in XML Schema types mapping.
    00074   //
    00075   typedef ::xsd::cxx::parser::string_sequence< char > string_sequence;
    00076   typedef ::xsd::cxx::parser::qname< char > qname;
    00077   typedef ::xsd::cxx::parser::buffer buffer;
    00078   typedef ::xsd::cxx::parser::time_zone time_zone;
    00079   typedef ::xsd::cxx::parser::gday gday;
    00080   typedef ::xsd::cxx::parser::gmonth gmonth;
    00081   typedef ::xsd::cxx::parser::gyear gyear;
    00082   typedef ::xsd::cxx::parser::gmonth_day gmonth_day;
    00083   typedef ::xsd::cxx::parser::gyear_month gyear_month;
    00084   typedef ::xsd::cxx::parser::date date;
    00085   typedef ::xsd::cxx::parser::time time;
    00086   typedef ::xsd::cxx::parser::date_time date_time;
    00087   typedef ::xsd::cxx::parser::duration duration;
    00088
    00089   // Base parser skeletons.
    00090   //
    00091   typedef ::xsd::cxx::parser::parser_base< char > parser_base;
    00092   typedef ::xsd::cxx::parser::non_validating::empty_content< char > empty_content;
    00093   typedef ::xsd::cxx::parser::non_validating::simple_content< char > simple_content;
    00094   typedef ::xsd::cxx::parser::non_validating::complex_content< char > complex_content;
    00095   typedef ::xsd::cxx::parser::non_validating::list_base< char > list_base;
    00096
    00097   // Parser skeletons and implementations for the XML Schema
    00098   // built-in types.
    00099   //
    00100   typedef ::xsd::cxx::parser::non_validating::any_type_pskel< char > any_type_pskel;
    00101   typedef ::xsd::cxx::parser::non_validating::any_type_pimpl< char > any_type_pimpl;
    00102
    00103   typedef ::xsd::cxx::parser::non_validating::any_simple_type_pskel< char > any_simple_type_pskel;
    00104   typedef ::xsd::cxx::parser::non_validating::any_simple_type_pimpl< char > any_simple_type_pimpl;
    00105
    00106   typedef ::xsd::cxx::parser::non_validating::byte_pskel< char > byte_pskel;
    00107   typedef ::xsd::cxx::parser::non_validating::byte_pimpl< char > byte_pimpl;
    00108
    00109   typedef ::xsd::cxx::parser::non_validating::unsigned_byte_pskel< char > unsigned_byte_pskel;
    00110   typedef ::xsd::cxx::parser::non_validating::unsigned_byte_pimpl< char > unsigned_byte_pimpl;
    00111
    00112   typedef ::xsd::cxx::parser::non_validating::short_pskel< char > short_pskel;
    00113   typedef ::xsd::cxx::parser::non_validating::short_pimpl< char > short_pimpl;
    00114
    00115   typedef ::xsd::cxx::parser::non_validating::unsigned_short_pskel< char > unsigned_short_pskel;
    00116   typedef ::xsd::cxx::parser::non_validating::unsigned_short_pimpl< char > unsigned_short_pimpl;
    00117
    00118   typedef ::xsd::cxx::parser::non_validating::int_pskel< char > int_pskel;
    00119   typedef ::xsd::cxx::parser::non_validating::int_pimpl< char > int_pimpl;
    00120
    00121   typedef ::xsd::cxx::parser::non_validating::unsigned_int_pskel< char > unsigned_int_pskel;
    00122   typedef ::xsd::cxx::parser::non_validating::unsigned_int_pimpl< char > unsigned_int_pimpl;
    00123
    00124   typedef ::xsd::cxx::parser::non_validating::long_pskel< char > long_pskel;
    00125   typedef ::xsd::cxx::parser::non_validating::long_pimpl< char > long_pimpl;
    00126
    00127   typedef ::xsd::cxx::parser::non_validating::unsigned_long_pskel< char > unsigned_long_pskel;
    00128   typedef ::xsd::cxx::parser::non_validating::unsigned_long_pimpl< char > unsigned_long_pimpl;
    00129
    00130   typedef ::xsd::cxx::parser::non_validating::integer_pskel< char > integer_pskel;
    00131   typedef ::xsd::cxx::parser::non_validating::integer_pimpl< char > integer_pimpl;
    00132
    00133   typedef ::xsd::cxx::parser::non_validating::non_positive_integer_pskel< char > non_positive_integer_pskel;
    00134   typedef ::xsd::cxx::parser::non_validating::non_positive_integer_pimpl< char > non_positive_integer_pimpl;
    00135
    00136   typedef ::xsd::cxx::parser::non_validating::non_negative_integer_pskel< char > non_negative_integer_pskel;
    00137   typedef ::xsd::cxx::parser::non_validating::non_negative_integer_pimpl< char > non_negative_integer_pimpl;
    00138
    00139   typedef ::xsd::cxx::parser::non_validating::positive_integer_pskel< char > positive_integer_pskel;
    00140   typedef ::xsd::cxx::parser::non_validating::positive_integer_pimpl< char > positive_integer_pimpl;
    00141
    00142   typedef ::xsd::cxx::parser::non_validating::negative_integer_pskel< char > negative_integer_pskel;
    00143   typedef ::xsd::cxx::parser::non_validating::negative_integer_pimpl< char > negative_integer_pimpl;
    00144
    00145   typedef ::xsd::cxx::parser::non_validating::boolean_pskel< char > boolean_pskel;
    00146   typedef ::xsd::cxx::parser::non_validating::boolean_pimpl< char > boolean_pimpl;
    00147
    00148   typedef ::xsd::cxx::parser::non_validating::float_pskel< char > float_pskel;
    00149   typedef ::xsd::cxx::parser::non_validating::float_pimpl< char > float_pimpl;
    00150
    00151   typedef ::xsd::cxx::parser::non_validating::double_pskel< char > double_pskel;
    00152   typedef ::xsd::cxx::parser::non_validating::double_pimpl< char > double_pimpl;
    00153
    00154   typedef ::xsd::cxx::parser::non_validating::decimal_pskel< char > decimal_pskel;
    00155   typedef ::xsd::cxx::parser::non_validating::decimal_pimpl< char > decimal_pimpl;
    00156
    00157   typedef ::xsd::cxx::parser::non_validating::string_pskel< char > string_pskel;
    00158   typedef ::xsd::cxx::parser::non_validating::string_pimpl< char > string_pimpl;
    00159
    00160   typedef ::xsd::cxx::parser::non_validating::normalized_string_pskel< char > normalized_string_pskel;
    00161   typedef ::xsd::cxx::parser::non_validating::normalized_string_pimpl< char > normalized_string_pimpl;
    00162
    00163   typedef ::xsd::cxx::parser::non_validating::token_pskel< char > token_pskel;
    00164   typedef ::xsd::cxx::parser::non_validating::token_pimpl< char > token_pimpl;
    00165
    00166   typedef ::xsd::cxx::parser::non_validating::name_pskel< char > name_pskel;
    00167   typedef ::xsd::cxx::parser::non_validating::name_pimpl< char > name_pimpl;
    00168
    00169   typedef ::xsd::cxx::parser::non_validating::nmtoken_pskel< char > nmtoken_pskel;
    00170   typedef ::xsd::cxx::parser::non_validating::nmtoken_pimpl< char > nmtoken_pimpl;
    00171
    00172   typedef ::xsd::cxx::parser::non_validating::nmtokens_pskel< char > nmtokens_pskel;
    00173   typedef ::xsd::cxx::parser::non_validating::nmtokens_pimpl< char > nmtokens_pimpl;
    00174
    00175   typedef ::xsd::cxx::parser::non_validating::ncname_pskel< char > ncname_pskel;
    00176   typedef ::xsd::cxx::parser::non_validating::ncname_pimpl< char > ncname_pimpl;
    00177
    00178   typedef ::xsd::cxx::parser::non_validating::language_pskel< char > language_pskel;
    00179   typedef ::xsd::cxx::parser::non_validating::language_pimpl< char > language_pimpl;
    00180
    00181   typedef ::xsd::cxx::parser::non_validating::id_pskel< char > id_pskel;
    00182   typedef ::xsd::cxx::parser::non_validating::id_pimpl< char > id_pimpl;
    00183
    00184   typedef ::xsd::cxx::parser::non_validating::idref_pskel< char > idref_pskel;
    00185   typedef ::xsd::cxx::parser::non_validating::idref_pimpl< char > idref_pimpl;
    00186
    00187   typedef ::xsd::cxx::parser::non_validating::idrefs_pskel< char > idrefs_pskel;
    00188   typedef ::xsd::cxx::parser::non_validating::idrefs_pimpl< char > idrefs_pimpl;
    00189
    00190   typedef ::xsd::cxx::parser::non_validating::uri_pskel< char > uri_pskel;
    00191   typedef ::xsd::cxx::parser::non_validating::uri_pimpl< char > uri_pimpl;
    00192
    00193   typedef ::xsd::cxx::parser::non_validating::qname_pskel< char > qname_pskel;
    00194   typedef ::xsd::cxx::parser::non_validating::qname_pimpl< char > qname_pimpl;
    00195
    00196   typedef ::xsd::cxx::parser::non_validating::base64_binary_pskel< char > base64_binary_pskel;
    00197   typedef ::xsd::cxx::parser::non_validating::base64_binary_pimpl< char > base64_binary_pimpl;
    00198
    00199   typedef ::xsd::cxx::parser::non_validating::hex_binary_pskel< char > hex_binary_pskel;
    00200   typedef ::xsd::cxx::parser::non_validating::hex_binary_pimpl< char > hex_binary_pimpl;
    00201
    00202   typedef ::xsd::cxx::parser::non_validating::date_pskel< char > date_pskel;
    00203   typedef ::xsd::cxx::parser::non_validating::date_pimpl< char > date_pimpl;
    00204
    00205   typedef ::xsd::cxx::parser::non_validating::date_time_pskel< char > date_time_pskel;
    00206   typedef ::xsd::cxx::parser::non_validating::date_time_pimpl< char > date_time_pimpl;
    00207
    00208   typedef ::xsd::cxx::parser::non_validating::duration_pskel< char > duration_pskel;
    00209   typedef ::xsd::cxx::parser::non_validating::duration_pimpl< char > duration_pimpl;
    00210
    00211   typedef ::xsd::cxx::parser::non_validating::gday_pskel< char > gday_pskel;
    00212   typedef ::xsd::cxx::parser::non_validating::gday_pimpl< char > gday_pimpl;
    00213
    00214   typedef ::xsd::cxx::parser::non_validating::gmonth_pskel< char > gmonth_pskel;
    00215   typedef ::xsd::cxx::parser::non_validating::gmonth_pimpl< char > gmonth_pimpl;
    00216
    00217   typedef ::xsd::cxx::parser::non_validating::gmonth_day_pskel< char > gmonth_day_pskel;
    00218   typedef ::xsd::cxx::parser::non_validating::gmonth_day_pimpl< char > gmonth_day_pimpl;
    00219
    00220   typedef ::xsd::cxx::parser::non_validating::gyear_pskel< char > gyear_pskel;
    00221   typedef ::xsd::cxx::parser::non_validating::gyear_pimpl< char > gyear_pimpl;
    00222
    00223   typedef ::xsd::cxx::parser::non_validating::gyear_month_pskel< char > gyear_month_pskel;
    00224   typedef ::xsd::cxx::parser::non_validating::gyear_month_pimpl< char > gyear_month_pimpl;
    00225
    00226   typedef ::xsd::cxx::parser::non_validating::time_pskel< char > time_pskel;
    00227   typedef ::xsd::cxx::parser::non_validating::time_pimpl< char > time_pimpl;
    00228
    00229   // Exceptions. See libxsd/xsd/cxx/parser/exceptions.hxx for details.
    00230   //
    00231   typedef ::xsd::cxx::parser::exception< char > exception;
    00232
    00233   // Parsing diagnostics.
    00234   //
    00235   typedef ::xsd::cxx::parser::severity severity;
    00236   typedef ::xsd::cxx::parser::error< char > error;
    00237   typedef ::xsd::cxx::parser::diagnostics< char > diagnostics;
    00238   typedef ::xsd::cxx::parser::parsing< char > parsing;
    00239
    00240   // Error handler. See libxsd/xsd/cxx/xml/error-handler.hxx for details.
    00241   //
    00242   typedef ::xsd::cxx::xml::error_handler< char > error_handler;
    00243
    00244   // Read-only string.
    00245   //
    00246   typedef ::xsd::cxx::ro_string< char > ro_string;
    00247
    00248   // Parsing flags. See libxsd/xsd/cxx/parser/xerces/elements.hxx
    00249   // for details.
    00250   //
    00251   typedef ::xsd::cxx::parser::xerces::flags flags;
    00252
    00253   // Parsing properties. See libxsd/xsd/cxx/parser/xerces/elements.hxx
    00254   // for details.
    00255   //
    00256   typedef ::xsd::cxx::parser::xerces::properties< char > properties;
    00257
    00258   // Document type. See libxsd/xsd/cxx/parser/xerces/elements.hxx
    00259   // for details.
    00260   //
    00261   typedef ::xsd::cxx::parser::xerces::document< char > document;
    00262 }
    00263
    00264 class hello_pskel: public virtual ::xml_schema::complex_content
    00265 {
    00266   public:
    00267   // Parser callbacks. Override them in your implementation.
    00268   //
    00269   // virtual void
    00270   // pre ();
    00271
    00272   virtual void
    00273   greeting (const ::std::string&);
    00274
    00275   virtual void
    00276   name (const ::std::string&);
    00277
    00278   virtual void
    00279   post_hello ();
    00280
    00281   // Parser construction API.
    00282   //
    00283   void
    00284   greeting_parser (::xml_schema::string_pskel&);
    00285
    00286   void
    00287   name_parser (::xml_schema::string_pskel&);
    00288
    00289   void
    00290   parsers (::xml_schema::string_pskel& /* greeting */,
    00291            ::xml_schema::string_pskel& /* name */);
    00292
    00293   // Constructor.
    00294   //
    00295   hello_pskel ();
    00296
    00297   // Implementation.
    00298   //
    00299   protected:
    00300   virtual bool
    00301   _start_element_impl (const ::xml_schema::ro_string&,
    00302                        const ::xml_schema::ro_string&,
    00303                        const ::xml_schema::ro_string*);
    00304
    00305   virtual bool
    00306   _end_element_impl (const ::xml_schema::ro_string&,
    00307                      const ::xml_schema::ro_string&);
    00308
    00309   protected:
    00310   ::xml_schema::string_pskel* greeting_;
    00311   ::xml_schema::string_pskel* name_;
    00312 };
    00313
    00314 #include <xsd/cxx/post.hxx>
    00315
    00316 // Begin epilogue.
    00317 //
    00318 //
    00319 // End epilogue.
    00320
    00321 #endif // CXX_HOME_SMIDL_WORK_MIXPP_TESTS_HELLO_PSKEL_HXX