2021-06-25 21:15:55 -07:00
|
|
|
/*
|
|
|
|
* @file logicdata_csv_reader.h
|
|
|
|
*
|
|
|
|
* @date Jun 26, 2021
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2021
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
class CsvReader {
|
|
|
|
public:
|
2021-06-25 21:33:28 -07:00
|
|
|
FILE *fp;
|
|
|
|
char buffer[255];
|
|
|
|
|
|
|
|
bool currentState[2];
|
|
|
|
|
2021-06-25 22:31:50 -07:00
|
|
|
int triggerCount = 2;
|
|
|
|
|
2021-06-25 21:33:28 -07:00
|
|
|
int lineIndex = -1;
|
2021-06-25 21:15:55 -07:00
|
|
|
|
2021-06-25 21:33:28 -07:00
|
|
|
int * columnIndeces;
|
|
|
|
|
2021-06-25 22:39:04 -07:00
|
|
|
void open(const char *fileName, int * columnIndeces);
|
2021-06-25 21:33:28 -07:00
|
|
|
bool haveMore();
|
|
|
|
void processLine(EngineTestHelper *eth);
|
|
|
|
void readLine(EngineTestHelper *eth);
|
2021-06-25 21:15:55 -07:00
|
|
|
};
|
|
|
|
|