Public Member Functions

Burger::FileManagerSimple Class Reference

Initialization class for the global Burger::FileManager structure. More...

#include <fmfile.h>

List of all members.

Public Member Functions

 FileManagerSimple ()
 Initializes the global Burger::FileManager structure.
 ~FileManagerSimple ()
 Shuts down the global Burger::FileManager structure.

Detailed Description

Initialization class for the global Burger::FileManager structure.

By default, the Burger::FileManager structure does not automatically initialize. The application determines the best time to start up and shut down the global singleton. To make this process easier, create an instance of this class in your main() function or use one of the application class templates which will do this task for you.

There should be only one instance of this class in existance in the application.

    int main(int argc,char **argv)
    {
        // Initialize the memory manager
        Burger::MemoryManagerGlobalANSI MyMemory;
        // Initialize the file system
        Burger::FileManagerSimple MyFiles;
        
        DoStuff();
        return 0;
    }
Note:
This class can and will allocate memory at runtime via the initialization of Burger::FileManager. It's crucial that the Burger::GlobalMemoryManager is initialized BEFORE this class instance is created.
See also:
Burger::GlobalMemoryManager or Burger::FileManager

Constructor & Destructor Documentation

Burger::FileManagerSimple::FileManagerSimple (  )  [inline]

Initializes the global Burger::FileManager structure.

See also:
Burger::FileManager or Burger::FileManager::Init(void)
Burger::FileManagerSimple::~FileManagerSimple (  )  [inline]

Shuts down the global Burger::FileManager structure.

See also:
Burger::FileManager or Burger::FileManager::Shutdown(void)