RDI/include/FileHandler/Generic.h
JackCarterSmith 2da49b53ae
Reforge library structure - 3rd pass
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
2023-01-12 20:25:10 +01:00

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_ */