Robowflex
v0.1
Making MoveIt Easy
|
A benchmark outputter for storing data in a single JSON file. More...
#include <benchmarking.h>
Public Member Functions | |
JSONPlanDataSetOutputter (const std::string &file) | |
Constructor. More... | |
~JSONPlanDataSetOutputter () override | |
Destructor. Closes outfile_. More... | |
void | dump (const PlanDataSet &results) override |
Dumps results into outfile_, and opens outfile_ if not already done so. More... | |
Public Member Functions inherited from robowflex::PlanDataSetOutputter | |
virtual | ~PlanDataSetOutputter ()=default |
Virtual destructor for cleaning up resources. More... | |
Private Attributes | |
bool | is_init_ {false} |
Have we initialized the outputter (on first result)? More... | |
const std::string | file_ |
Filename to open. More... | |
std::ofstream | outfile_ |
Output stream. More... | |
A benchmark outputter for storing data in a single JSON file.
Definition at line 522 of file benchmarking.h.
JSONPlanDataSetOutputter::JSONPlanDataSetOutputter | ( | const std::string & | file | ) |
Constructor.
[in] | file | Filename to save results to. |
Definition at line 532 of file benchmarking.cpp.
|
override |
Destructor. Closes outfile_.
Definition at line 536 of file benchmarking.cpp.
|
overridevirtual |
Dumps results into outfile_, and opens outfile_ if not already done so.
[in] | results | Results to dump to file. |
Implements robowflex::PlanDataSetOutputter.
Definition at line 542 of file benchmarking.cpp.
|
private |
Filename to open.
Definition at line 541 of file benchmarking.h.
|
private |
Have we initialized the outputter (on first result)?
Definition at line 540 of file benchmarking.h.
|
private |
Output stream.
Definition at line 542 of file benchmarking.h.