Add way to extract numbers from the csv file
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#ifndef FILEHELPER_H
|
||||
#define FILEHELPER_H
|
||||
|
||||
class FileHelper {
|
||||
public:
|
||||
FileHelper();
|
||||
|
||||
~FileHelper();
|
||||
|
||||
static bool FileExists(char *path);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,13 +1,16 @@
|
||||
#ifndef FILEREADER_H
|
||||
#define FILEREADER_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class FileReader {
|
||||
public:
|
||||
FileReader();
|
||||
|
||||
~FileReader();
|
||||
|
||||
char *Read();
|
||||
static std::string GetFile(char *path);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef NUMBERHELPER_H
|
||||
#define NUMBERHELPER_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class NumberHelper {
|
||||
public:
|
||||
NumberHelper();
|
||||
|
||||
~NumberHelper();
|
||||
|
||||
static std::vector<int> GetNumbers(const std::string csv);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user