29 lines
654 B
C++
29 lines
654 B
C++
|
#ifndef LINEREADER_HPP
|
||
|
#define LINEREADER_HPP
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
class LineReader{
|
||
|
|
||
|
private:
|
||
|
|
||
|
FILE* fileHandle;
|
||
|
|
||
|
public:
|
||
|
|
||
|
LineReader(const char* filePath);
|
||
|
|
||
|
static char* getLine(const char* data, const unsigned int data_length, const unsigned int lineNum, unsigned int withLineBreak);
|
||
|
|
||
|
static char* getLine(const char* data, const unsigned int data_length, const unsigned int lineNum);
|
||
|
|
||
|
unsigned char* getLine(unsigned int lineNum, unsigned int withLineBreak);
|
||
|
|
||
|
unsigned char* getLine(unsigned int lineNum);
|
||
|
|
||
|
~LineReader();
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|