Version: 1.0
output_generator.h
Go to the documentation of this file.
1 // Copyright (c) 2020, the GRAPHGEN contributors, as
2 // shown by the AUTHORS file. All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6 
7 #ifndef GRAPHGEN_OUTPUT_GENERATOR_H_
8 #define GRAPHGEN_OUTPUT_GENERATOR_H_
9 
10 #include <fstream>
11 #include <iostream>
12 #include <map>
13 #include <sstream>
14 #include <string>
15 
16 #include "condition_action.h"
17 #include "forest.h"
18 #include "tree.h"
19 #include "utilities.h"
20 
24  NONE = 0,
25  WITH_NEXT = (1 << 0),
26  VERBOSE = (1 << 1),
27  DELETE_DOTCODE = (1 << 2),
28  WITH_ROOT_ID = (1 << 3),
29 )
30 
31 
40 bool DrawDagOnFile(const std::string& base_filename,
41  const BinaryDrag<conact> &dt,
42  DrawDagFlags flags = DrawDagFlags::DELETE_DOTCODE);
43 
44 
45 bool DrawForestOnFile(const std::string& output_file, const LineForestHandler& lfh, DrawDagFlags flags);
46 
47 #endif // !GRAPHGEN_OUTPUT_GENERATOR_H_
A BinaryDrag is the GRAPHGEN implementation of a Binary Directed Rooted Acyclic Graph (DRAG in short)
Definition: drag.h:28
bool DrawDagOnFile(const std::string &base_filename, const BinaryDrag< conact > &dt, DrawDagFlags flags=DrawDagFlags::DELETE_DOTCODE)
Generate a file displaying the specified DRAG. The output format will be the one set in the general y...
bool DrawForestOnFile(const std::string &output_file, const LineForestHandler &lfh, DrawDagFlags flags)
DrawDagFlags
Flags for the DrawDagOnFile function.
Generates all the forests needed to handle one line of the image.
Definition: forest.h:51
#define DEFINE_ENUM_CLASS_FLAGS(class_name,...)
Definition: utilities.h:41