summaryrefslogtreecommitdiff
path: root/music/pokeredmusicdisasm/File.h
blob: de1e699886750c5a2abb4faeb788250d9b0895c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef FILE_H
#define FILE_H

#include <string>
#include <vector>
#include <fstream>

class File
{
public:
	File();
	File(std::string filename, unsigned int offset = 0, unsigned int length = 0);

	string GetFileName();
	void SetFilename(string value);

private:
	std::string filename;
	std::vector<unsigned char> fileBuffer;
	std::fstream fileHandle;

	std::vector<unsigned char>::iterator start;
	std::vector<unsigned char>::iterator cur;
};

#endif