Version: 1.0
Enumerations | Functions
output_generator.h File Reference
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include "condition_action.h"
#include "forest.h"
#include "tree.h"
#include "utilities.h"

Go to the source code of this file.

Enumerations

enum class  DrawDagFlags : uint32_t {
  NONE = 0 , WITH_NEXT = (1 << 0) , VERBOSE = (1 << 1) , DELETE_DOTCODE = (1 << 2) ,
  WITH_ROOT_ID = (1 << 3)
}
 Flags for the DrawDagOnFile function. More...
 

Functions

constexpr enum DrawDagFlags operator| (const enum DrawDagFlags self_value, const enum DrawDagFlags in_value)
 
constexpr bool operator& (const enum DrawDagFlags self_value, const enum DrawDagFlags in_value)
 
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 yaml configuration file. More...
 
bool DrawForestOnFile (const std::string &output_file, const LineForestHandler &lfh, DrawDagFlags flags)
 

Enumeration Type Documentation

◆ DrawDagFlags

enum DrawDagFlags : uint32_t
strong

Flags for the DrawDagOnFile function.

Enumerator
NONE 

No flags.

WITH_NEXT 

Whether to print next tree indexes inside leaves or not.

VERBOSE 

Whether to display output messages or not.

DELETE_DOTCODE 

Whether to delete or not the dot code used to draw the drag.

WITH_ROOT_ID 

Whether to print root id or not.

Definition at line 29 of file output_generator.h.

Function Documentation

◆ DrawDagOnFile()

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 yaml configuration file.

Parameters
[in]base_filenameName that the output file should have (without extension).
[in]dtDRAG (BinaryDrag<conact>) to be drawn.
[in]flagsFunction flags, see DrawDagFlags.
Returns
Whether the operation ended correctly (true) or not (false).

◆ DrawForestOnFile()

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

◆ operator&()

constexpr bool operator& ( const enum DrawDagFlags  self_value,
const enum DrawDagFlags  in_value 
)
constexpr

Definition at line 29 of file output_generator.h.

◆ operator|()

constexpr enum DrawDagFlags operator| ( const enum DrawDagFlags  self_value,
const enum DrawDagFlags  in_value 
)
constexpr

Definition at line 1 of file output_generator.h.