Sign in to follow this  

Virtual File System Design question, feedback requested

This topic is 3487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Language: C++ Compiler: Visual C++ Express 2008 Platform: Win32 I am considering having a virtual file system and was planning on storing my files in a map. When I load in a file I was going to give it an integer ID which would be the key. My problem lies in the fact that I can't figure out how the application would determine the ID of the file it needs. For example, if I had load("gun.bmp"); //that would put the gun.bmp in the map at say (1, "gun.bmp") how would I use this in my app without doing some kind of search of the map? If I pass a filename to the map and search the map for that filename then what was the point of using the map to begin with? [Edited by - murdock on May 28, 2008 11:03:05 PM]

Share this post


Link to post
Share on other sites

This topic is 3487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this