bin: introduce a non-binary job_type
This will later help improve the handling of different input types of ltlsynt. * bin/common_finput.hh (job_type): New enum. (job::type): Use it. * bin/autcross.cc, bin/autfilt.cc, bin/common_finput.cc, bin/dstar2tgba.cc, bin/ltl2tgba.cc, bin/ltl2tgta.cc, bin/ltlcross.cc, bin/ltldo.cc, bin/ltlfilt.cc, bin/ltlgrind.cc, bin/ltlsynt.cc: Adjust to use the job_type enum instead of a boolean.
This commit is contained in:
parent
3b809c0a14
commit
d697f57a97
12 changed files with 54 additions and 44 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2012-2017 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
// Copyright (C) 2012-2017, 2022 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
|
|
@ -25,13 +25,17 @@
|
|||
#include <vector>
|
||||
#include <spot/tl/parse.hh>
|
||||
|
||||
enum class job_type : char { LTL_STRING,
|
||||
LTL_FILENAME,
|
||||
AUT_FILENAME };
|
||||
|
||||
struct job
|
||||
{
|
||||
const char* str;
|
||||
bool file_p; // true if str is a filename, false if it is a formula
|
||||
job_type type;
|
||||
|
||||
job(const char* str, bool file_p) noexcept
|
||||
: str(str), file_p(file_p)
|
||||
job(const char* str, job_type type) noexcept
|
||||
: str(str), type(type)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue