Homepage Demos Overview Downloads Tutorials Reference
Credits

ROBOOP::IO_matrix_file Class Reference

#include <gnugraph.h>

Inheritance diagram for ROBOOP::IO_matrix_file:

Inheritance graph
[legend]
List of all members.

Detailed Description

Read and write data at every iterations in a file.

Definition at line 166 of file gnugraph.h.

Public Member Functions

 IO_matrix_file (const string &filename)
 Constructor.
short write (const vector< Matrix > &data)
 Write data on disk using a default data name..
short write (const vector< Matrix > &data, const vector< string > &title)
 Write data on disk.
short read (vector< Matrix > &data)
 Read one sequence of data per call.
short read (vector< Matrix > &data, vector< string > &title)
 Read one sequence of data per call.
short read_all (vector< Matrix > &data, vector< string > &data_title)
 Reads all sequences of data.

Private Attributes

int position_read
 Position to read the file.
int nb_iterations_write
 Number of iterations in writing mode.
int nb_iterations_read
 Number of iterations in reading mode.
int nb_element
 Number of elements to read or write.
string filename
 File name.


Constructor & Destructor Documentation

ROBOOP::IO_matrix_file::IO_matrix_file const string &  filename  ) 
 

Constructor.

Definition at line 335 of file gnugraph.cpp.


Member Function Documentation

short ROBOOP::IO_matrix_file::read vector< Matrix > &  data,
vector< string > &  title
 

Read one sequence of data per call.

Definition at line 471 of file gnugraph.cpp.

short ROBOOP::IO_matrix_file::read vector< Matrix > &  data  ) 
 

Read one sequence of data per call.

Definition at line 455 of file gnugraph.cpp.

short ROBOOP::IO_matrix_file::read_all vector< Matrix > &  data,
vector< string > &  data_title
 

Reads all sequences of data.

If the file "filename does not exist yet, created it and fill the first line with the number of rows and columns for each element of "data". ex: 6x1;3x1;3x3; This line indidate that data has 3 elements Matrix. The first one has 6 rows and 1 columns, the second one has 3 rows and 1 columns ...

Definition at line 541 of file gnugraph.cpp.

Referenced by ROBOOP::Plot_file::Plot_file().

short ROBOOP::IO_matrix_file::write const vector< Matrix > &  data,
const vector< string > &  title
 

Write data on disk.

Parameters:
data: Data.
title: Name of each data member (ie: speed, position, ...)

Definition at line 362 of file gnugraph.cpp.

short ROBOOP::IO_matrix_file::write const vector< Matrix > &  data  ) 
 

Write data on disk using a default data name..

Definition at line 346 of file gnugraph.cpp.


Member Data Documentation

string ROBOOP::IO_matrix_file::filename [private]
 

File name.

Definition at line 180 of file gnugraph.h.

Referenced by IO_matrix_file(), read(), read_all(), and write().

int ROBOOP::IO_matrix_file::nb_element [private]
 

Number of elements to read or write.

Definition at line 177 of file gnugraph.h.

Referenced by IO_matrix_file(), read(), and read_all().

int ROBOOP::IO_matrix_file::nb_iterations_read [private]
 

Number of iterations in reading mode.

Definition at line 177 of file gnugraph.h.

Referenced by IO_matrix_file(), read(), and read_all().

int ROBOOP::IO_matrix_file::nb_iterations_write [private]
 

Number of iterations in writing mode.

Definition at line 177 of file gnugraph.h.

Referenced by IO_matrix_file(), and write().

int ROBOOP::IO_matrix_file::position_read [private]
 

Position to read the file.

Definition at line 177 of file gnugraph.h.

Referenced by IO_matrix_file(), and read().


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

ROBOOP v1.21a
Generated Tue Jan 4 15:42:30 2005 by Doxygen 1.4.0