OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
CSVWriter< v_pos, v_prp, impl > Class Template Reference

CSV Writer. More...

Detailed Description

template<typename v_pos, typename v_prp, unsigned int impl = 1>
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.
 

Private Member Functions

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

Member Function Documentation

◆ get_csv_colums()

template<typename v_pos , typename v_prp , unsigned int impl = 1>
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.

◆ get_csv_data()

template<typename v_pos , typename v_prp , unsigned int impl = 1>
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.

◆ write()

template<typename v_pos , typename v_prp , unsigned int impl = 1>
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: