mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-11-15 09:23:56 +01:00
47 lines
675 B
C++
47 lines
675 B
C++
#pragma once
|
|
|
|
class printer;
|
|
class jconf;
|
|
class executor;
|
|
|
|
namespace xmrstak
|
|
{
|
|
|
|
class globalStates;
|
|
class params;
|
|
|
|
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;
|
|
this->pParams = env.pParams;
|
|
return *this;
|
|
}
|
|
|
|
|
|
environment() : pPrinter(nullptr), pglobalStates(nullptr)
|
|
{
|
|
}
|
|
|
|
|
|
printer* pPrinter;
|
|
globalStates* pglobalStates;
|
|
jconf* pJconfConfig;
|
|
executor* pExecutor;
|
|
params* pParams;
|
|
|
|
};
|
|
|
|
} // namepsace xmrstak
|