src/server/serverfactory.cpp
Factory * Factory::instance()
{
    static Factory obj;
    return &obj;
}
// Gets unique instance of the factory
// Pattern Singleton
// Replaces constructor
Gets unique instance of the factory
Pattern Singleton
Replaces constructor
Gets unique instance of the factory Pattern Singleton Replaces constructor
Factory * Factory::instance()
{
    static Factory obj;
    return &obj;
}
Factory * Factory :: instance ( ) { static Factory obj ; return & obj ; }
Gets unique instance of the factory
Pattern Singleton
Replaces constructor
Gets unique instance of the factory Pattern Singleton Replaces constructor