Jack::JackGnuPlotMonitor< T > Class Template Reference
Generic monitoring class. Saves data to GnuPlot files ('.plt' and '.log' datafile).
More...
#include <JackTools.h>
List of all members.
|
Public Member Functions |
| JackGnuPlotMonitor (uint32_t measure_cnt=512, uint32_t measure_points=5, std::string name=std::string("default")) |
T | AddNew (T measure_point) |
uint32_t | New () |
T | Add (T measure_point) |
uint32_t | AddLast (T measure_point) |
uint32_t | Write () |
int | Save (std::string name=std::string("")) |
int | SetPlotFile (std::string *options_list=NULL, uint32_t options_number=0, std::string *field_names=NULL, uint32_t field_number=0, std::string name=std::string("")) |
Detailed Description
template<class T>
class Jack::JackGnuPlotMonitor< T >
Generic monitoring class. Saves data to GnuPlot files ('.plt' and '.log' datafile).
This template class allows to manipulate monitoring records, and automatically generate the GnuPlot config and data files. Operations are RT safe because it uses fixed size data buffers. You can set the number of measure points, and the number of records.
To use it :
- create a JackGnuPlotMonitor, you can use the data type you want.
- create a temporary array for your measure
- once you have filled this array with 'measure points' value, call write() to add it to the record
- once you've done with your measurment, just call save() to save your data file
You can also call SetPlotFile() to automatically generate '.plt' file from an options list.
Definition at line 83 of file JackTools.h.
The documentation for this class was generated from the following file: