// z_transducer_structures.hh: this file is part of the Vaucanson project.
//
// Vaucanson, a generic library for finite state machines.
//
// Copyright (C) 2007, 2008, 2010 The Vaucanson Group.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// The complete GNU General Public Licence Notice can be found as the
// `COPYING' file in the root directory.
//
// The Vaucanson Group consists of people listed in the `AUTHORS' file.
//

/*
 * CPP guard should not be inserted here as
 * VCSN_GRAPH_IMPL could be changed.
 */

# include GRAPH_CONTEXT_HEADER_(z_automaton_structures.hh)
# include GRAPH_CONTEXT_HEADER_(boolean_automaton_structures.hh)

# define AUTOMATON_CONTEXT z_automaton
# define VCSN_CONTEXT_NAMESPACE namespace z_transducer

# include <vaucanson/contexts/char_letter.thh>
# include <vaucanson/contexts/dynamic_alphabet.thh>
# include <vaucanson/contexts/free_monoid.thh>

namespace vcsn
{
  namespace VCSN_GRAPH_IMPL
  {
    VCSN_CONTEXT_NAMESPACE
    {
      typedef AUTOMATON_CONTEXT::semiring_elt_t	output_semiring_elt_t;
      typedef output_semiring_elt_t::set_t	output_semiring_t;
      typedef output_semiring_elt_t::value_t	output_semiring_elt_value_t;

      typedef AUTOMATON_CONTEXT::rat_exp_t	output_series_set_elt_t;
      typedef output_series_set_elt_t::set_t	output_series_set_t;
      typedef output_series_set_elt_t::value_t	output_series_set_elt_value_t;
    } // End of namespace VCSN_CONTEXT_NAMESPACE.
  } // End of namespace VCSN_GRAPH_IMPL
} // namespace vcsn

# include <vaucanson/contexts/ratseries_semiring.thh>
# include <vaucanson/contexts/generic_series.thh>
# include <vaucanson/contexts/generic_automaton_impl.thh>
# include <vaucanson/contexts/transducer.thh>

namespace vcsn
{
  namespace VCSN_GRAPH_IMPL
  {
    VCSN_CONTEXT_NAMESPACE
    {
      AUTOMATON_TYPES_EXACT(automaton_t);
      AUTOMATON_FREEMONOID_TYPES_EXACT(automaton_t);

      typedef automaton_t::input_monoid_t::alphabet_t first_alphabet_t;
      typedef automaton_t::output_monoid_t::alphabet_t second_alphabet_t;
    } // End of namespace VCSN_CONTEXT_NAMESPACE
  } // End of namespace VCSN_GRAPH_IMPL
} // End of namespace vcsn

# include <vaucanson/contexts/transducer_maker.thh>

# undef AUTOMATON_CONTEXT
# undef VCSN_CONTEXT_NAMESPACE

