mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-11-24 11:13:54 +01:00
- pass all singletons into the backend libraries - move some cpu config features from the cpu config file to the global config.txt - add global jconf to the xported singleton list
43 lines
541 B
C++
43 lines
541 B
C++
#pragma once
|
|
|
|
class printer;
|
|
class jconf;
|
|
|
|
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;
|
|
return *this;
|
|
}
|
|
|
|
|
|
Environment() : pPrinter(nullptr), pGlobalStates(nullptr)
|
|
{
|
|
}
|
|
|
|
|
|
printer* pPrinter;
|
|
|
|
GlobalStates* pGlobalStates;
|
|
|
|
jconf* pJconfConfig;
|
|
|
|
};
|
|
|
|
} // namepsace xmrstak
|