resource manager

Im writing musicplayer app using QT for ui and SFML for audios

I decided to write resource manager for song files.

How can i tell if my resource manager for song files is good enough?

and any recommendation? im beginner for this

TIA

what else i need to add in resource manager beside from caching , loading and using the files through the manager?

should i make the class singleton?

Ive research about managers, and saw a lot of excellent one. but i want to write my own for learning purposes
Last edited on
1
2
3
4
5
6
7
8
9
class ResourceManager
{
public:
    ResourceManager();
    static void load(std::string);
    static sf::Music& get(std::string);
private:
    std::map<sf::Music,std::string> files;   
};


so far, this is my class, i dont know if im doing it right
Last edited on
Topic archived. No new replies allowed.