Files
xmr-stak/Environment.hpp
T
psychocrypt 9e7efd40bc fix bugs
- add excecutor to the singleton export list
2017-09-30 23:46:08 +02:00

47 lines
615 B
C++

#pragma once
class printer;
class jconf;
class executor;
namespace xmrstak
{
class GlobalStates;
struct Environment
{
static Environment& inst()
{
static Environment env;
return env;
}
Environment& operator=(const Environment& env)
{
this->pPrinter = env.pPrinter;
this->pGlobalStates = env.pGlobalStates;
this->pJconfConfig = env.pJconfConfig;
this->pExecutor = env.pExecutor;
return *this;
}
Environment() : pPrinter(nullptr), pGlobalStates(nullptr)
{
}
printer* pPrinter;
GlobalStates* pGlobalStates;
jconf* pJconfConfig;
executor* pExecutor;
};
} // namepsace xmrstak