WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
HardDriveFile.h
Go to the documentation of this file.
1/*
2 * HardDriveFile.h
3 *
4 * Created on: 21 dec. 2015
5 * Author: Jerome
6 */
7
8#pragma once
9
10#include "CASCFile.h"
11
12#include <fstream>
13
16class HardDriveFile : public CASCFile
17{
18public:
19 HardDriveFile(std::string path, std::string realpath, int id = -1);
21
22protected:
23 virtual bool openFile();
24 virtual bool isAlreadyOpened();
25 virtual bool getFileSize(unsigned long long& s);
26 virtual unsigned long readFile();
27 virtual bool doPostCloseOperation();
28
29private:
30 bool opened;
31 std::string realpath;
32 std::ifstream* file;
33};
GameFile implementation that reads from a CASC storage archive.
Definition CASCFile.h:20
A CASCFile implementation that reads data from the local hard drive rather than from a CASC archive.
virtual bool isAlreadyOpened()
virtual bool getFileSize(unsigned long long &s)
virtual unsigned long readFile()
virtual bool openFile()
virtual bool doPostCloseOperation()
std::string realpath
std::ifstream * file