SpiecsEngine
 
Loading...
Searching...
No Matches

◆ PopSystem()

SystemManager & Spices::SystemManager::PopSystem ( const std::string & systemName)
inline

Push a system to this manager.

Parameters
[in]systemNameSpecific system name.
Returns
Returns the SystemManager.

Definition at line 172 of file SystemManager.h.

173 {
174 // pop system from map
175 if (!m_Identities.has_key(systemName))
176 {
177 std::stringstream ss;
178 ss << systemName << " has been poped ";
179
180 SPICES_CORE_ERROR(ss.str())
181 }
182
183 // system shutdown
184 auto ptr = *m_Identities.find_value(systemName);
185 ptr->OnSystemShutDown();
186
187 std::stringstream ss;
188 ss << systemName << " poped ";
189
190 SPICES_CORE_INFO(ss.str())
191
192 m_Identities.erase(systemName);
193
194 return *m_SystemManager;
195 }
static std::unique_ptr< SystemManager > m_SystemManager
Static SystemManager variable.
static scl::linked_unordered_map< std::string, std::shared_ptr< System > > m_Identities
Static System Map.

Referenced by Spices::Application::~Application().