SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Registry()

std::shared_ptr< Console > Spices::Console::Registry ( const std::string & name,
const std::string & filePath = "" )
static

Registry a console to ConsolePool.

Parameters
[in]nameConsoleName.
[in]filePathConsole output file.
Returns
Returns Registered Console form Pool.

Definition at line 26 of file Console.cpp.

27 {
29
30 if (m_GlobalConsolePool.find(name) == m_GlobalConsolePool.end())
31 {
32 m_GlobalConsolePool[name] = std::make_shared<Console>(filePath);
33 }
34
35 return m_GlobalConsolePool[name];
36 }
#define SPICES_PROFILE_ZONE
static std::unordered_map< std::string, std::shared_ptr< Console > > m_GlobalConsolePool
Global Console Pool.
Definition Console.cpp:15

Referenced by Spices::Log::Init().