A fuzzy logic C++ library
Public Member Functions | Private Attributes
slifis::GNUPLOT_FILE Class Reference

A gnuplot script file for plotting histograms, opens it, and adds a common header. More...

#include <gnuplot_file.hpp>

+ Collaboration diagram for slifis::GNUPLOT_FILE:

List of all members.

Public Member Functions

 GNUPLOT_FILE (std::string name, size_t w=640, size_t h=480)
 gnuplot histogram file
 ~GNUPLOT_FILE ()
template<typename T >
std::ofstream & operator<< (T)
 A << operator for this class, only streams the argument into the file.

Private Attributes

std::ofstream fplot

Detailed Description

A gnuplot script file for plotting histograms, opens it, and adds a common header.


Constructor & Destructor Documentation

slifis::GNUPLOT_FILE::GNUPLOT_FILE ( std::string  fn,
size_t  w = 640,
size_t  h = 480 
)

gnuplot histogram file

Low Priority Todo:
rewrite this to make it more generic

References __IN__, __OUT__, slifis::ERR_IO_ERROR, SLIFIS_ERROR, SLIFIS_STAMP_S, and SLIFIS_WARNING_1.


Member Function Documentation

template<typename T >
std::ofstream & slifis::GNUPLOT_FILE::operator<< ( arg)

A << operator for this class, only streams the argument into the file.

Warning:
With this code, it is NOT POSSIBLE to use std::endl, as this is a templated function. See http://stackoverflow.com/questions/1134388

References fplot.


Member Data Documentation

std::ofstream slifis::GNUPLOT_FILE::fplot [private]

Referenced by operator<<().