mCRL2
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1// Author(s): anonymous
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
11
12#ifndef MCRL2_PBES_IO_H
13#define MCRL2_PBES_IO_H
14
15#include "mcrl2/pbes/pbes.h"
17
18namespace mcrl2
19{
20
21namespace pbes_system
22{
23
24void save_bes_pgsolver(const pbes& bes, std::ostream& stream, bool maxpg = true);
25
26const std::vector<utilities::file_format>& pbes_file_formats();
27
28inline
30{
32 {
33 if (i == format)
34 {
35 return true;
36 }
37 }
38 return false;
39}
40
41inline
43inline
45inline
47inline
49
50inline
51const utilities::file_format guess_format(const std::string& filename)
52{
54 {
55 if (it.matches(filename))
56 {
57 return it;
58 }
59 }
61}
62
68void save_pbes(const pbes& pbes,
69 std::ostream& stream,
71
78void load_pbes(pbes& pbes, std::istream& stream, utilities::file_format format, const std::string& source = "");
79
89void save_pbes(const pbes& pbes, const std::string& filename,
91 bool welltypedness_check = true);
92
100void load_pbes(pbes& pbes,
101 const std::string& filename,
103
104} // namespace pbes_system
105
106} // namespace mcrl2
107
108#endif // MCRL2_PBES_IO_H
add your file description here.
bool is_pbes_file_format(const utilities::file_format &format)
Definition io.h:29
void save_bes_pgsolver(const pbes &bes, std::ostream &stream, bool maxpg=true)
Definition pgsolver.cpp:142
const utilities::file_format & pbes_format_internal_bes()
Definition io.h:46
void load_pbes(pbes &pbes, std::istream &stream, utilities::file_format format, const std::string &source="")
Load a PBES from file.
Definition io.cpp:82
const utilities::file_format & pbes_format_pgsolver()
Definition io.h:48
void save_pbes(const pbes &pbes, std::ostream &stream, utilities::file_format format=utilities::file_format())
Save a PBES in the format specified.
Definition io.cpp:49
const std::vector< utilities::file_format > & pbes_file_formats()
Definition io.cpp:26
const utilities::file_format & pbes_format_internal()
Definition io.h:42
const utilities::file_format & pbes_format_text()
Definition io.h:44
const utilities::file_format guess_format(const std::string &filename)
Definition io.h:51
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72
The class pbes.