Microflow 3D  v1.0
CSVReader.h
Go to the documentation of this file.
1 // ==============================================================================================
2 // Microflow 3D, http://www.microflow.pwr.edu.pl/
3 // Created by Roman Szafran on 17.05.19.
4 // Copyright (c) 2019 Wroclaw University of Science and Technology.
5 // Distributed under the Apache License, Version 2.0. You may obtain a copy of the License at
6 // http://www.apache.org/licenses/LICENSE-2.0 or see accompanying file license.txt.
7 // Redistributions of source code must retain the above copyright and license notice.
8 // ==============================================================================================
9 
10 # pragma once
11 
12 #include <string>
13 #include <vector>
14 #include <iostream>
15 #include <fstream>
16 #include <boost/lexical_cast.hpp>
17 
18 namespace MF {
19  namespace RW {
20 
22  class CSVReader {
23  public:
24  CSVReader() = default;
25 
26  ~CSVReader() = default;
27 
28  static void DataReadFromCSVFile(const std::string & DataFilePath, const std::vector<std::string> & VariableNameList, std::vector<double>* pDataArray);
29  };
30  } /* namespace RW */
31 } /* namespase MF */
static void DataReadFromCSVFile(const std::string &DataFilePath, const std::vector< std::string > &VariableNameList, std::vector< double > *pDataArray)
Reads data from text file.
Definition: CSVReader.cpp:13
~CSVReader()=default
The object of CSVReader class parses text files with node coordinates for uid-threads definition...
Definition: CSVReader.h:22
CSVReader()=default