Awali
Another Weighted Automata library
output.hh
Go to the documentation of this file.
1 // This file is part of Awali.
2 // Copyright 2016-2022 Sylvain Lombardy, Victor Marsault, Jacques Sakarovitch
3 //
4 // Awali is a free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef DYN_MODULES_OUTPUT_HH
18 #define DYN_MODULES_OUTPUT_HH
19 
20 #include <awali/common/json_ast.hh>
25 
26 namespace awali { namespace dyn {
27 
28  namespace internal {
29  std::ostream& daut(automaton_t aut, std::ostream& out);
30  std::ostream& dot(automaton_t aut, std::ostream& out, options_t opts = {});
31  std::ostream& fado(automaton_t aut, std::ostream& out);
32  std::ostream& grail(automaton_t aut, std::ostream& out);
33  std::ostream& efsm(automaton_t aut, std::ostream& out);
34  std::ostream& json(automaton_t aut, std::ostream& out);
35  std::ostream& img(automaton_t aut, std::ostream& o, std::string const& img,
36  options_t opts);
37  std::ostream& pdf(automaton_t aut, std::ostream& o, options_t opts = {});
38  std::ostream& svg(automaton_t aut, std::ostream& o, options_t opts = {});
39 
40  automaton_t fado(std::istream& in);
41  automaton_t grail(std::istream& in);
42  }
43 
44 
45 
47  json_ast_t extra_medata = json_ast::empty());
48 
49 
50 
51 
52 
53  }}//end of ns awali::dyn
54 
55 #endif
An automaton_t is essentially a shared pointer to an abstract_automaton_t, but also contains static f...
Definition: automaton.hh:93
An options_t is a set of optional parameters that is passed on to called functions.
Definition: options.hh:86
std::ostream & json(automaton_t aut, std::ostream &out)
std::ostream & img(automaton_t aut, std::ostream &o, std::string const &img, options_t opts)
std::ostream & daut(automaton_t aut, std::ostream &out)
std::ostream & fado(automaton_t aut, std::ostream &out)
std::ostream & efsm(automaton_t aut, std::ostream &out)
std::ostream & grail(automaton_t aut, std::ostream &out)
std::ostream & svg(automaton_t aut, std::ostream &o, options_t opts={})
std::ostream & dot(automaton_t aut, std::ostream &out, options_t opts={})
std::ostream & pdf(automaton_t aut, std::ostream &o, options_t opts={})
json_ast_t to_json_ast(automaton_t aut, json_ast_t extra_medata=json_ast::empty())
json_ast_t empty()
Builds an empty json_ast_t.
Definition: json_ast.hh:33
Main namespace of Awali.
Definition: ato.hh:22
std::shared_ptr< json::object_t > json_ast_t
Definition: json_ast.hh:27