DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::tool::graph::writegraph Class Reference

#include <gtool.hpp>

Public Member Functions

 writegraph (std::string const &)
int operator() (gtool const &) const

Private Member Functions

void write (gtool::t_graph const &) const

Private Attributes

std::string this_dest

Detailed Description

Permits to write a graph generated in a gtool as a dot file or to standard output if an epmty string has been specified as argument. Another case if the output file cannot be overwritten in which case.

Definition at line 145 of file gtool.hpp.

Constructor & Destructor Documentation

◆ writegraph()

dbe::tool::graph::writegraph::writegraph ( std::string const & s)

Definition at line 205 of file gtool.cpp.

206 :
207 this_dest ( s )
208{
209}

Member Function Documentation

◆ operator()()

int dbe::tool::graph::writegraph::operator() ( gtool const & x) const

Definition at line 211 of file gtool.cpp.

212{
213 INFO ( "Saving result", "Program execution control", this_dest );
214 write ( x.getgraph() );
215 INFO ( "Result sent to output", "Program execution control success", this_dest );
216 return EXIT_SUCCESS;
217}
void write(gtool::t_graph const &) const
Definition gtool.cpp:219
#define INFO(...)

◆ write()

void dbe::tool::graph::writegraph::write ( gtool::t_graph const & g) const
private

Definition at line 219 of file gtool.cpp.

220{
221 graph::write ( g, this_dest );
222}
void write(gtool::t_graph const &, std::string const &)
Definition gtool.cpp:226

Member Data Documentation

◆ this_dest

std::string dbe::tool::graph::writegraph::this_dest
private

Definition at line 152 of file gtool.hpp.


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