37 lines
542 B
C++
37 lines
542 B
C++
/**
|
|
* @file GenericFile.h
|
|
* @date 23/09/2022
|
|
* @author JackCarterSmith
|
|
* @copyright GPL-v3.0
|
|
* @brief Generic file object class.
|
|
*
|
|
*/
|
|
|
|
#include "../RDI_Datatypes.h"
|
|
#include <string>
|
|
|
|
|
|
#ifndef GENERICFILE_H_
|
|
#define GENERICFILE_H_
|
|
|
|
namespace RDI {
|
|
|
|
class ErsoEntryFile;
|
|
|
|
class GenericFile {
|
|
public:
|
|
GenericFile( ErsoEntryFile& hDat );
|
|
virtual ~GenericFile();
|
|
|
|
MEMFILE get() { return pMemLoc; }
|
|
|
|
protected:
|
|
unsigned long size;
|
|
std::string fileName, fileExtension;
|
|
MEMFILE pMemLoc = nullptr;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* GENERICFILE_H_ */
|