12 #ifndef CD_DataParser_H
13 #define CD_DataParser_H
21 #include <CD_NamespaceHeader.H>
41 const int a_xColumn = 0,
42 const int a_yColumn = 1,
43 const std::vector<char> a_ignoreChars = {
'#',
'/'});
60 const std::string a_startRead,
61 const std::string a_stopRead,
62 const int a_xColumn = 0,
63 const int a_yColumn = 1,
64 const std::vector<char> a_ignoreChars = {
'#',
'/'});
80 const unsigned int a_xColumn = 0,
81 const unsigned int a_yColumn = 1,
82 const unsigned int a_zColumn = 2,
83 const unsigned int a_wColumn = 3,
84 const std::vector<char> a_ignoreChars = {
'#',
'/'});
88 #include <CD_NamespaceFooter.H>
Declaration of a table for looking up coefficients etc.
Declaration of a computational point particle.
Class for simple data parsing from IO files.
Definition: CD_DataParser.H:26
LookupTable1D< Real, 1 > simpleFileReadASCII(const std::string a_fileName, const int a_xColumn=0, const int a_yColumn=1, const std::vector< char > a_ignoreChars={'#', '/'})
Simple file parser which reads a file and puts the data into two columns (a lookup table).
Definition: CD_DataParser.cpp:25
List< PointParticle > readPointParticlesASCII(const std::string a_fileName, const unsigned int a_xColumn=0, const unsigned int a_yColumn=1, const unsigned int a_zColumn=2, const unsigned int a_wColumn=3, const std::vector< char > a_ignoreChars={'#', '/'})
Simple file parser which will read particles (position/weight) from an ASCII file.
Definition: CD_DataParser.cpp:147
LookupTable1D< Real, 1 > fractionalFileReadASCII(const std::string a_fileName, const std::string a_startRead, const std::string a_stopRead, const int a_xColumn=0, const int a_yColumn=1, const std::vector< char > a_ignoreChars={'#', '/'})
Simple ASCII file parser which reads a file and puts the data into two columns (a lookup table)
Definition: CD_DataParser.cpp:81