GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


pseudo-singleton manager class by godecho
1
 
namespace MyManager
{
    class MyClass
    {
        public:
    
            MyClass();
            ~MyClass();

            void Save();
            void Load();
            void Unload();
            void Whatever();

        private:

            void Flush();
    };

    inline MyManager *Inst()
    {
        static MyClass myclass;
        return &myclass;
    }
}