Nakuja Flight Computer Testing and Simulation Engine (NaFCTSE) 1.0
A testing and verification tool for the Nakuja Rocket Project flight computers
Loading...
Searching...
No Matches
csv-parser.h
1#ifndef CSVPARSER_H
2#define CSVPARSER_H
3
4#include <vector>
5#include <sstream>
6#include <iostream>
7#include <string>
8
12class CSVRow
13{
14private:
15 /* data */
16 std::string m_line;
17 std::vector<int> m_data;
18public:
19
20 std::string operator[](std::size_t index) const;
21
22 std::size_t size() const;
23 void readNextRow(std::istream& str);
24};
25
26std::vector<std::string> getNextLineAndSplitIntoTokens(std::istream& str);
27std::istream& operator>>(std::istream& str, CSVRow& data);
28
29
30
31#endif // CSVPARSER_H
Definition csv-parser.h:13
std::string operator[](std::size_t index) const
Definition csv-parser.cpp:7