Changed a bunch of method names, including Singleton<>

This commit is contained in:
Kayne Ruse
2014-10-01 01:57:03 +10:00
parent 9b43b4641f
commit be9ce33637
5 changed files with 44 additions and 41 deletions
+6 -6
View File
@@ -33,22 +33,22 @@ using namespace std;
int main(int argc, char* argv[]) {
try {
//create the singletons
ConfigUtility::Create();
UDPNetworkUtility::Create();
ConfigUtility::CreateSingleton();
UDPNetworkUtility::CreateSingleton();
//call the server's routines
ClientApplication::Create();
ClientApplication::CreateSingleton();
ClientApplication& app = ClientApplication::GetSingleton();
app.Init(argc, argv);
app.Proc();
app.Quit();
ClientApplication::Delete();
ClientApplication::DeleteSingleton();
//delete the singletons
ConfigUtility::Delete();
UDPNetworkUtility::Delete();
ConfigUtility::DeleteSingleton();
UDPNetworkUtility::DeleteSingleton();
}
catch(exception& e) {
cerr << "Fatal exception thrown: " << e.what() << endl;