// file      : xsde/cxx/parser/non-validating/nmtokens-stl.hxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#ifndef XSDE_CXX_PARSER_NON_VALIDATING_NMTOKENS_STL_HXX
#define XSDE_CXX_PARSER_NON_VALIDATING_NMTOKENS_STL_HXX

#include <xsde/cxx/parser/non-validating/xml-schema-pskel.hxx>
#include <xsde/cxx/parser/non-validating/nmtoken-stl.hxx>

namespace xsde
{
  namespace cxx
  {
    namespace parser
    {
      namespace non_validating
      {
#ifdef XSDE_REUSE_STYLE_MIXIN
        struct nmtokens_pimpl: virtual nmtokens_pskel
#else
        struct nmtokens_pimpl: nmtokens_pskel
#endif
        {
          virtual void
          _pre ();

          virtual void
          _xsde_parse_item (const ro_string&);

          virtual string_sequence
          post_nmtokens ();

          virtual void
          _reset ();

        protected:
          string_sequence seq_;
          nmtoken_pimpl parser_;
        };
      }
    }
  }
}

#endif  // XSDE_CXX_PARSER_NON_VALIDATING_NMTOKENS_STL_HXX
