OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
CSVWriter< v_pos, v_prp, impl > Class Template Reference

CSV Writer. 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 163 of file CSVWriter.hpp.

#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...
 

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 168 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
vpvector that contain the positional information
vprvector that contain the property information
offsetfrom where to start

Definition at line 200 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
vpositional vector
prpproperties vector
offsetfrom where to start to write

Definition at line 248 of file CSVWriter.hpp.


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