ROBOOP::IO_matrix_file Class Reference#include <gnugraph.h>
Inheritance diagram for ROBOOP::IO_matrix_file:
[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 |
) |
|
|
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
The documentation for this class was generated from the following files:
|