UnCoVer (Using Coverability for Verification)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
GTXLtoLatexConverter.h
1 /***************************************************************************
2  * Copyright (C) 2014 by Jan Stückrath <jan.stueckrath@uni-due.de> *
3  * *
4  * This program is 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 2 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, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin St, Fifth Floor, Boston, MA 02110, USA *
18  ***************************************************************************/
19 
20 #ifndef GTXLTOLATEXCONVERTER_H_
21 #define GTXLTOLATEXCONVERTER_H_
22 
23 #include "../basic_types/Scenario.h"
24 #include "../io/LatexExporter.h"
25 
26 namespace uncover {
27  namespace scenarios {
28 
36 
37  public:
38 
43 
47  virtual ~GTXLtoLatexConverter();
48 
53  virtual void run() override;
54 
55  protected:
56 
57  virtual void initialize(unordered_map<string,string>& parameters) override;
58 
59  private:
60 
65 
69  string targetName;
70 
75 
79  bool compile;
80 
84  unordered_map<IDType,IDType>* ruleIDSubs;
85 
89  unordered_map<IDType,IDType>* graphIDSubs;
90 
91  };
92 
93  } /* namespace scenarios */
94 } /* namespace uncover */
95 
96 #endif /* GTXLTOLATEXCONVERTER_H_ */
string targetName
Stores the filename of the Latex file used as target of the conversion.
Definition: GTXLtoLatexConverter.h:69
unordered_map< IDType, IDType > * graphIDSubs
Stores any ID substitutions for graphs, if specified in the GTS file.
Definition: GTXLtoLatexConverter.h:89
bool compile
Stores whether the Latex file should be compiled or not.
Definition: GTXLtoLatexConverter.h:79
virtual void initialize(unordered_map< string, string > &parameters) override
Initializes the scenario with the given mapping, where the keys are parameter names.
Definition: GTXLtoLatexConverter.cpp:69
TargetType
This Enumeration Type specifies for which resulting file formats the Latex file will be generated and...
Definition: LatexExporter.h:43
unordered_map< IDType, IDType > * ruleIDSubs
Stores any ID substitutions for rules, if specified in the GTS file.
Definition: GTXLtoLatexConverter.h:84
graphs::GTS_sp gts
Stores the GTS read from the given source file.
Definition: GTXLtoLatexConverter.h:64
virtual ~GTXLtoLatexConverter()
Destroys the this instance of this Scenario.
Definition: GTXLtoLatexConverter.cpp:58
io::LatexExporter::TargetType type
Stores in which type the target Latex file will be compiled.
Definition: GTXLtoLatexConverter.h:74
Use this Scenario to create a graphical representation of the given GTXL file.
Definition: GTXLtoLatexConverter.h:35
A scenario is a subprogram using a set of input parameters to execute some algorithms, producing desired output.
Definition: Scenario.h:36
virtual void run() override
Executes the scenario and converts the given GTXL file into a pdf, drawing all rules and initial grap...
Definition: GTXLtoLatexConverter.cpp:63
GTXLtoLatexConverter()
Creates a new instance of this Scenario.
Definition: GTXLtoLatexConverter.cpp:39
shared_ptr< GTS > GTS_sp
Alias for a shared pointer to a GTS object.
Definition: GTS.h:164