first commit
This commit is contained in:
26
CS4451/proj5/FileReader.h
Normal file
26
CS4451/proj5/FileReader.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _FILEREADER_H_
|
||||
#define _FILEREADER_H_
|
||||
|
||||
#include <fstream>
|
||||
|
||||
class FileReader {
|
||||
public:
|
||||
static inline FileReader* getInstance() {
|
||||
return & m_instance;
|
||||
}
|
||||
|
||||
void readFile(char* fileName);
|
||||
|
||||
private:
|
||||
static FileReader m_instance;
|
||||
|
||||
inline FileReader() {};
|
||||
|
||||
void readTriangle(std::fstream *fs, int index);
|
||||
void readPoint(std::fstream *fs, int index);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user