OpenFPM_io  0.2.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Functions Variables Typedefs
CSVWriter< v_pos, v_prp, impl > Class Template Reference

CSV Writer. More...

#include <CSVWriter.hpp>

Public Member Functions

bool write (std::string file, v_pos &v, v_prp &prp, size_t offset=0)
 It write a CSV file. More...
 

Private Member Functions

std::string get_csv_colums ()
 Get the colums name (also the positional name) More...
 
std::string get_csv_data (v_pos &vp, v_prp &vpr, size_t offset)
 Get the csv data section. More...
 

Detailed Description

template<typename v_pos, typename v_prp, unsigned int impl = VECTOR>
class CSVWriter< v_pos, v_prp, impl >

CSV Writer.

It write in CSV format vector of objects living into an N-dimensional space

Template Parameters
v_posPositional vector
v_prpProperty vector

Definition at line 149 of file CSVWriter.hpp.

Member Function Documentation

template<typename v_pos, typename v_prp, unsigned int impl = VECTOR>
std::string CSVWriter< v_pos, v_prp, impl >::get_csv_colums ( )
inlineprivate

Get the colums name (also the positional name)

Definition at line 154 of file CSVWriter.hpp.

template<typename v_pos, typename v_prp, unsigned int impl = VECTOR>
std::string CSVWriter< v_pos, v_prp, impl >::get_csv_data ( v_pos &  vp,
v_prp &  vpr,
size_t  offset 
)
inlineprivate

Get the csv data section.

Parameters
v_posvector that contain the positional information
v_prpvector that contain the property information
offsetfrom where to start

Definition at line 186 of file CSVWriter.hpp.

template<typename v_pos, typename v_prp, unsigned int impl = VECTOR>
bool CSVWriter< v_pos, v_prp, impl >::write ( std::string  file,
v_pos &  v,
v_prp &  prp,
size_t  offset = 0 
)
inline

It write a CSV file.

Template Parameters
prpwhich properties to output [default = -1 (all)]
Parameters
filepath where to write
v_pospositional vector
v_prpproperties vector
offsetfrom where to start to write

Definition at line 235 of file CSVWriter.hpp.


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