Awali
Another Weighted Automata library
output.hh
Go to the documentation of this file.
1 // This file is part of Awali.
2 // Copyright 2016-2021 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 {
27  namespace dyn {
28 
29  namespace internal {
30  std::ostream& daut(automaton_t aut, std::ostream& out);
31  std::ostream& dot(automaton_t aut, std::ostream& out, options_t opts = {});
32  std::ostream& fado(automaton_t aut, std::ostream& out);
33  std::ostream& grail(automaton_t aut, std::ostream& out);
34  std::ostream& efsm(automaton_t aut, std::ostream& out);
35  std::ostream& json(automaton_t aut, std::ostream& out);
36  std::ostream& img(automaton_t aut, std::ostream& o, std::string img,
37  options_t opts);
38  std::ostream& pdf(automaton_t aut, std::ostream& o, options_t opts = {});
39  std::ostream& svg(automaton_t aut, std::ostream& o, options_t opts = {});
40 
41  automaton_t fado(std::istream& in);
42  automaton_t grail(std::istream& in);
43  }
44 
45 
46 
48  json_ast_t extra_medata = json_ast::empty());
49 // struct io {
50 // private :
51 // io(std::string name,unsigned v);
52 // const std::string name;
53 // const static std::vector<const io*>& instances();
54 // public :
55 // unsigned int v;
56 // static const io dot;
57 // static const io fado;
58 // static const io grail;
59 // static const io json;
60 // static const io pdf;
61 // static const io svg;
62 //
63 //
64 // static io of_string(const std::string& str);
65 // };
66 
67 // const io io::dot;
68 // const io io::fado;
69 // const io io::grail;
70 // const io io::json;
71 // const io io::pdf;
72 // const io io::svg;
73 
74 
75 
76 
77 
78  }
79 }//end of ns awali::dyn
80 
81 #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 & img(automaton_t aut, std::ostream &o, std::string img, options_t opts)
std::ostream & json(automaton_t aut, std::ostream &out)
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