Updated CMakeFile with MSVC options Review Erso lib interface Better tree display in RDIDebug tool Change lib interface functions naming Separate namespace for date file entries
39 lines
580 B
C++
39 lines
580 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 {
|
|
|
|
namespace DatFile {
|
|
class DatFileEntryFile;
|
|
}
|
|
|
|
class GenericFile {
|
|
public:
|
|
GenericFile( DatFile::DatFileEntryFile &hDat );
|
|
virtual ~GenericFile();
|
|
|
|
MEMFILE get() { return pMemLoc; }
|
|
|
|
protected:
|
|
unsigned long size;
|
|
std::string fileName, fileExtension;
|
|
MEMFILE pMemLoc = nullptr;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* GENERICFILE_H_ */
|