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 140 of file gtool.hpp.

Constructor & Destructor Documentation

◆ writegraph()

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

Definition at line 200 of file gtool.cpp.

201 :
202 this_dest ( s )
203{
204}

Member Function Documentation

◆ operator()()

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

Definition at line 206 of file gtool.cpp.

207{
208 INFO ( "Saving result", "Program execution control", this_dest );
209 write ( x.getgraph() );
210 INFO ( "Result sent to output", "Program execution control success", this_dest );
211 return EXIT_SUCCESS;
212}
void write(gtool::t_graph const &) const
Definition gtool.cpp:214
#define INFO(...)
Definition messenger.hpp:96

◆ write()

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

Definition at line 214 of file gtool.cpp.

215{
216 graph::write ( g, this_dest );
217}
void write(gtool::t_graph const &, std::string const &)
Definition gtool.cpp:221

Member Data Documentation

◆ this_dest

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

Definition at line 147 of file gtool.hpp.


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