have single dump function per engine

This commit is contained in:
Alex Coyte
2016-11-02 10:36:24 +11:00
committed by Matthew Barr
parent 71ff480b77
commit 32c826e9c6
23 changed files with 262 additions and 207 deletions

View File

@@ -35,7 +35,6 @@
#if defined(DUMP_SUPPORT)
#include <cstdio>
#include <string>
struct NFA;
@@ -43,13 +42,11 @@ struct NFA;
namespace ue2 {
/**
* \brief Dump (in Graphviz 'dot' format) a representation of the NFA into the
* file pointed to by dotFile.
* \brief Dump files representing the engine. All files dumped should begin with
* path/prefix specified by base. Generally a text file and a grpahviz (dot)
* files should be produced.
*/
void nfaDumpDot(const struct NFA *nfa, FILE *dotFile, const std::string &base);
/** \brief Dump a textual representation of the NFA. */
void nfaDumpText(const struct NFA *fact, FILE *textFile);
void nfaGenerateDumpFiles(const struct NFA *nfa, const std::string &base);
} // namespace ue2