42 #ifndef _networkmanager_cpp
43 #define _networkmanager_cpp
45 #include "networkmanager.h"
49 template<> NetworkManager* Singleton<NetworkManager>::SingletonPtr = NULL;
51 NetworkManager::NetworkManager()
55 NetworkManager::NetworkManager(XML::Node& XMLNode)
60 NetworkManager::~NetworkManager()
74 void NetworkManager::Initialize()
75 { this->Initialized =
true; }
77 void NetworkManager::Deinitialize()
78 { this->Initialized =
false; }
84 {
return ManagerBase::MT_NetworkManager; }
86 String NetworkManager::GetImplementationTypeName()
const
87 {
return "DefaultNetworkManager"; }
92 DefaultNetworkManagerFactory::DefaultNetworkManagerFactory()
96 DefaultNetworkManagerFactory::~DefaultNetworkManagerFactory()
100 String DefaultNetworkManagerFactory::GetManagerTypeName()
const
102 return "DefaultNetworkManager";
105 ManagerBase* DefaultNetworkManagerFactory::CreateManager(
NameValuePairList& Params)
107 if(NetworkManager::SingletonValid())
110 return NetworkManager::GetSingletonPtr();
111 }
else return new NetworkManager();
114 ManagerBase* DefaultNetworkManagerFactory::CreateManager(XML::Node& XMLNode)
116 if(NetworkManager::SingletonValid())
119 return NetworkManager::GetSingletonPtr();
120 }
else return new NetworkManager(XMLNode);
123 void DefaultNetworkManagerFactory::DestroyManager(ManagerBase* ToBeDestroyed)
125 delete ToBeDestroyed;