Version: 1.0
Functions
output_generator.cpp File Reference
#include "output_generator.h"
#include <optional>
#include "system_info.h"

Go to the source code of this file.

Functions

string GetShape (char c)
 
string GetNodeCode (const string &condition, bool with_root_id)
 
void GenerateDotCodeForDagRec (std::ostream &os, BinaryDrag< conact >::node *n, std::map< BinaryDrag< conact >::node *, size_t > &printed_node, std::vector< std::string > &links, nodeid &id, bool with_next, bool with_root_id, int tab)
 
void GenerateDotCodeForDag (std::ostream &os, const BinaryDrag< conact > &bd, bool with_next, bool with_root_id)
 
string GetDotCallString (const std::string &code_path, const std::string &output_path="")
 
string GetDotCallString (const filesystem::path &code_path, filesystem::path output_path="")
 
bool DrawDagOnFile (const string &base_filename, const BinaryDrag< conact > &t, DrawDagFlags flags)
 
bool DrawForestOnFile (const string &output_file, const LineForestHandler &lfh, DrawDagFlags flags)
 

Function Documentation

◆ DrawDagOnFile()

bool DrawDagOnFile ( const string &  base_filename,
const BinaryDrag< conact > &  t,
DrawDagFlags  flags 
)

Definition at line 169 of file output_generator.cpp.

◆ DrawForestOnFile()

bool DrawForestOnFile ( const string &  output_file,
const LineForestHandler lfh,
DrawDagFlags  flags 
)

Definition at line 207 of file output_generator.cpp.

◆ GenerateDotCodeForDag()

void GenerateDotCodeForDag ( std::ostream &  os,
const BinaryDrag< conact > &  bd,
bool  with_next,
bool  with_root_id 
)

Definition at line 111 of file output_generator.cpp.

◆ GenerateDotCodeForDagRec()

void GenerateDotCodeForDagRec ( std::ostream &  os,
BinaryDrag< conact >::node *  n,
std::map< BinaryDrag< conact >::node *, size_t > &  printed_node,
std::vector< std::string > &  links,
nodeid id,
bool  with_next,
bool  with_root_id,
int  tab 
)

Definition at line 58 of file output_generator.cpp.

◆ GetDotCallString() [1/2]

string GetDotCallString ( const filesystem::path &  code_path,
filesystem::path  output_path = "" 
)

Definition at line 165 of file output_generator.cpp.

◆ GetDotCallString() [2/2]

string GetDotCallString ( const std::string &  code_path,
const std::string &  output_path = "" 
)

Definition at line 142 of file output_generator.cpp.

◆ GetNodeCode()

string GetNodeCode ( const string &  condition,
bool  with_root_id 
)

Definition at line 41 of file output_generator.cpp.

◆ GetShape()

string GetShape ( char  c)

Definition at line 33 of file output_generator.cpp.