Original Post
Hello!
I am working on a Virtual File System. I can get all informations about a pack. Now i want to make a class, for file input, which supports the vfs and the normal fs, if the file could not be found in the vfs.
Here is how the informations about the packs are stored:
Now a basic class with functions like: Open, Close, Read, Readline, Seek, GetPos, GetSize would be great.
But i dont know how to get access to the informaions about files and dirs. The CVFS class should not give the informations with public functions.
Thanks for your help,
Christian
class CVFS
{
public:
// routines to open and close multiple packs
...
...
// get informations like NumOfFiles, NumOfDires....
private:
std::vector<VFSHeader> m_headers;
std::vector<VFSDictory> m_dirs;
std::vector<VFSFile> m_files;
};