HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::dataflow::ProgressPrinter Class Reference

#include </home/runner/work/hal/hal/plugins/dataflow_analysis/include/dataflow_analysis/utils/progress_printer.h>

Collaboration diagram for hal::dataflow::ProgressPrinter:
Collaboration graph

Public Member Functions

 ProgressPrinter (u32 max_message_size=0)
 
void print_progress_to_stderr (float progress, const std::string &message="")
 
void print_progress_to_gui (int percent=-1)
 
void print_message_to_gui (const std::string &message)
 
void clear ()
 
void reset ()
 

Detailed Description

Reports the progress of a long-running operation, either to stderr or to the progress indicator of the GUI.

Definition at line 37 of file progress_printer.h.

Constructor & Destructor Documentation

◆ ProgressPrinter()

hal::dataflow::ProgressPrinter::ProgressPrinter ( u32  max_message_size = 0)

Definition at line 16 of file progress_printer.cpp.

References reset().

Member Function Documentation

◆ clear()

void hal::dataflow::ProgressPrinter::clear ( )

◆ print_message_to_gui()

void hal::dataflow::ProgressPrinter::print_message_to_gui ( const std::string &  message)

Definition at line 33 of file progress_printer.cpp.

References print_progress_to_gui().

◆ print_progress_to_gui()

void hal::dataflow::ProgressPrinter::print_progress_to_gui ( int  percent = -1)

◆ print_progress_to_stderr()

void hal::dataflow::ProgressPrinter::print_progress_to_stderr ( float  progress,
const std::string &  message = "" 
)

Definition at line 47 of file progress_printer.cpp.

References hal::output.

Referenced by hal::dataflow::pre_processing::identify_register_stages().

◆ reset()

void hal::dataflow::ProgressPrinter::reset ( )

Definition at line 124 of file progress_printer.cpp.

Referenced by ProgressPrinter().


The documentation for this class was generated from the following files: