// 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;

#include <memory> // std::auto_ptr

#include <xsd/cxx/xml.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
{
  // 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< char > idref;
  typedef ::xsd::cxx::tree::idrefs_template< 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;
}

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< _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::vector< type > sequence;
    typedef sequence::iterator iterator;
    typedef sequence::const_iterator const_iterator;
  };

  public:
  struct name
  {
    typedef _xsd_name::type type;
    typedef _xsd_name::sequence sequence;
    typedef _xsd_name::iterator iterator;
    typedef _xsd_name::const_iterator const_iterator;
  };

  ::xsd::cxx::tree::sequence< _xsd_name::type > name;

  public:
  hello (_xsd_greeting::type const& /* greeting */);

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

// 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 an InputSource.
//
::std::auto_ptr< class ::hello >
hello (::xercesc::DOMInputSource&);

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


// Read from a DOM tree.
//
::std::auto_ptr< class ::hello >
hello (::xercesc::DOMDocument const&);


#include <xsd/cxx/post.hxx>

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

#endif // HELLO_HXX
