Robotsystem from Robot Group Leipzig: Gnuplot::Dataset Class Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Alphabetical List
- Class Hierarchy
- Class Members

# Gnuplot::Dataset Class Reference

`#include <gnuplot.h>`

List of all members.

## Detailed Description

### template<class T>
class Gnuplot< T >::Dataset

data buffer for one channel, organized as ring buffer

Definition at line 69 of file gnuplot.h.

## Public Member Functions
| Dataset (const std::string &title="", const std::string &style="", int buffersize=256)
| contruct a data buffer with (gnuplot) title and style.
| ~Dataset ()
void | putData (double v)
| put new data in (ring) buffer
void | plot (FILE *f, int start=0, int end=0)
| print buffer content to file pointer, usually a pipe
double | getData (int i)
| get buffer content
## Public Attributes
std::string | title
std::string | style
bool | show

## Constructor & Destructor Documentation

Dataset | ( | const std::string & | title = `""`,
|  | const std::string & | style = `""`,
|  | int | buffersize = `256`
| ) | `[inline]`

| contruct a data buffer with (gnuplot) title and style. Definition at line 78 of file gnuplot.h.

~Dataset | ( |  | ) | `[inline]`

| Definition at line 86 of file gnuplot.h.

## Member Function Documentation

double getData | ( | int | i | ) | `[inline]`

| get buffer content Definition at line 102 of file gnuplot.h.

void plot | ( | FILE * | f,
|  | int | start = `0`,
|  | int | end = `0`
| ) | `[inline]`

| print buffer content to file pointer, usually a pipe Definition at line 95 of file gnuplot.h.

void putData | ( | double | v | ) | `[inline]`

| put new data in (ring) buffer Definition at line 90 of file gnuplot.h.

## Member Data Documentation

bool show

| Definition at line 76 of file gnuplot.h.

std::string style

| Definition at line 75 of file gnuplot.h.

std::string title

| Definition at line 74 of file gnuplot.h.