// Copyright (C) 2005 Code Synthesis Tools CC
//
// This program was generated by XML Schema Definition Compiler (XSD)
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
// In addition, as a special exception, Code Synthesis Tools CC gives
// permission to link this program with the Xerces-C++ library (or with
// modified versions of Xerces-C++ that use the same license as Xerces-C++),
// and distribute linked combinations including the two. You must obey
// the GNU General Public License version 2 in all respects for all of
// the code used other than Xerces-C++. If you modify this copy of the
// program, you may extend this exception to your version of the program,
// but you are not obligated to do so. If you do not wish to do so, delete
// this exception statement from your version.
//
// In addition, Code Synthesis Tools CC makes a special exception for
// the Free/Libre and Open Source Software (FLOSS) which is described
// in the accompanying FLOSSE file.
//

#ifndef HELLO_HXX
#define HELLO_HXX

// Begin prologue.
//
//
// End prologue.

#include <xsd/cxx/pre.hxx>

// Forward declarations.
//
class hello;

#ifndef XSD_USE_CHAR
#define XSD_USE_CHAR
#endif

#include <memory> // std::auto_ptr

#include <xsd/cxx/xml/dom/elements.hxx>

#include <xsd/cxx/tree/types.hxx>
#include <xsd/cxx/tree/traits.hxx>
#include <xsd/cxx/tree/functors.hxx>
#include <xsd/cxx/tree/exceptions.hxx>

namespace xml_schema
{
  // anyType
  //
  typedef ::xsd::cxx::tree::type type;

  // 8-bit
  //
  typedef signed char byte;
  typedef unsigned char unsigned_byte;

  // 16-bit
  //
  typedef short short_;
  typedef unsigned short unsigned_short;

  // 32-bit
  //
  typedef int int_;
  typedef unsigned int unsigned_int;

  // 64-bit
  //
  typedef long long long_;
  typedef unsigned long long unsigned_long;

  // Supposed to be arbitrary-length integral types.
  //
  typedef long long integer;
  typedef integer non_positive_integer;
  typedef integer non_negative_integer;
  typedef integer positive_integer;
  typedef integer negative_integer;

  // Boolean.
  //
  typedef bool boolean;

  // Floating-point types.
  //
  typedef float float_;
  typedef double double_;
  typedef long double decimal;

  // String types.
  //
  typedef ::xsd::cxx::tree::string_template< char > string;
  typedef ::xsd::cxx::tree::normalized_string_template< char > normalized_string;
  typedef ::xsd::cxx::tree::token_template< char > token;
  typedef ::xsd::cxx::tree::name_template< char > name;
  typedef ::xsd::cxx::tree::nmtoken_template< char > nmtoken;
  typedef ::xsd::cxx::tree::nmtokens_template< char > nmtokens;
  typedef ::xsd::cxx::tree::ncname_template< char > ncname;
  typedef ::xsd::cxx::tree::language_template< char > language;

  // Qualified name.
  //
  typedef ::xsd::cxx::tree::qname_template< char > qname;

  // ID/IDREF.
  //
  typedef ::xsd::cxx::tree::id_template< char > id;
  typedef ::xsd::cxx::tree::idref_template< type, char > idref;
  typedef ::xsd::cxx::tree::idrefs_template< type, char > idrefs;

  // URI.
  //
  typedef ::xsd::cxx::tree::uri_template< char > uri;

  // Binary.
  //
  typedef ::xsd::cxx::tree::base64_binary_template< char > base64_binary;
  typedef ::xsd::cxx::tree::hex_binary_template< char > hex_binary;

  // Date/time.
  //
  typedef ::xsd::cxx::tree::date_template< char > date;
  typedef ::xsd::cxx::tree::date_time_template< char > date_time;
  typedef ::xsd::cxx::tree::duration_template< char > duration;
  typedef ::xsd::cxx::tree::day_template< char > day;
  typedef ::xsd::cxx::tree::month_template< char > month;
  typedef ::xsd::cxx::tree::month_day_template< char > month_day;
  typedef ::xsd::cxx::tree::year_template< char > year;
  typedef ::xsd::cxx::tree::year_month_template< char > year_month;
  typedef ::xsd::cxx::tree::time_template< char > time;

  // Entity.
  //
  typedef ::xsd::cxx::tree::entity_template< char > entity;
  typedef ::xsd::cxx::tree::entities_template< char > entities;

  // Exceptions. See xsd/cxx/tree/exceptions.hxx for details.
  //
  typedef ::xsd::cxx::tree::exception exception;
  typedef ::xsd::cxx::tree::invalid_instance invalid_instance;
  typedef ::xsd::cxx::tree::unexpected_element< char > unexpected_element;
  typedef ::xsd::cxx::tree::unexpected_attribute< char > unexpected_attribute;
  typedef ::xsd::cxx::tree::unexpected_enumerator< char > unexpected_enumerator;
  typedef ::xsd::cxx::tree::duplicate_id< char > duplicate_id;
  typedef ::xsd::cxx::tree::duplicate_id< char > duplicate_id;
  typedef ::xsd::cxx::tree::serialization serialization;
  typedef ::xsd::cxx::tree::mapping< char > mapping;
  typedef ::xsd::cxx::tree::xsi_already_in_use xsi_already_in_use;
}

class hello : public ::xsd::cxx::tree::type
{
  struct _xsd_hello
  {
    typedef ::xsd::cxx::tree::type base_;
    typedef ::xsd::cxx::tree::type member_;
    typedef ::xsd::cxx::tree::traits< base_ > traits_;
  };

  // greeting
  // 
  public:
  struct _xsd_greeting
  {
    typedef ::xml_schema::string type_;
    typedef ::xsd::cxx::tree::traits< type_ > traits_;
  };

  public:
  struct greeting
  {
    typedef _xsd_greeting::type_ type;
  };

  ::xsd::cxx::tree::one_functor< _xsd_greeting::type_ > greeting;

  // name
  // 
  public:
  struct _xsd_name
  {
    typedef ::xml_schema::string type_;
    typedef ::xsd::cxx::tree::traits< type_ > traits_;
    typedef ::xsd::cxx::tree::sequence< type_ > container_;
    typedef container_::iterator iterator_;
    typedef container_::const_iterator const_iterator_;
  };

  public:
  struct name
  {
    typedef _xsd_name::type_ type;
    typedef _xsd_name::container_ container;
    typedef _xsd_name::iterator_ iterator;
    typedef _xsd_name::const_iterator_ const_iterator;
  };

  ::xsd::cxx::tree::sequence_functor< _xsd_name::type_ > name;

  public:
  hello (_xsd_greeting::type_ const& );

  explicit
  hello (::xsd::cxx::xml::dom::element< char > const&);

  hello (hello const&);
};

#include <iosfwd>

// Read from a URI or a local file.
//

::std::auto_ptr< class ::hello >
hello (::std::basic_string< char > const&);

::std::auto_ptr< class ::hello >
hello (::std::basic_string< char > const&, ::xercesc::DOMErrorHandler&);


// Read from std::istream.
//

::std::auto_ptr< class ::hello >
hello (std::istream&);

::std::auto_ptr< class ::hello >
hello (std::istream&, ::xercesc::DOMErrorHandler&);


::std::auto_ptr< class ::hello >
hello (std::istream&, ::std::basic_string< char > const& id);

::std::auto_ptr< class ::hello >
hello (std::istream&, ::std::basic_string< char > const& id, ::xercesc::DOMErrorHandler&);


// Read from InputSource.
//

::std::auto_ptr< class ::hello >
hello (::xercesc::DOMInputSource const&);

::std::auto_ptr< class ::hello >
hello (::xercesc::DOMInputSource const&, ::xercesc::DOMErrorHandler&);


// Read from DOM.
//

::std::auto_ptr< class ::hello >
hello (::xercesc::DOMDocument const&);


#include <xsd/cxx/post.hxx>

// Begin epilogue.
//
//
// End epilogue.

#endif // HELLO_HXX
