mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-17 05:41:41 +02:00
42 lines
575 B
C++
42 lines
575 B
C++
#pragma once
|
|
|
|
class printer;
|
|
class jconf;
|
|
class executor;
|
|
|
|
namespace xmrstak
|
|
{
|
|
|
|
struct globalStates;
|
|
struct params;
|
|
|
|
struct environment
|
|
{
|
|
static inline environment& inst(environment* init = nullptr)
|
|
{
|
|
static environment* env = nullptr;
|
|
|
|
if(env == nullptr)
|
|
{
|
|
if(init == nullptr)
|
|
env = new environment;
|
|
else
|
|
env = init;
|
|
}
|
|
|
|
return *env;
|
|
}
|
|
|
|
environment()
|
|
{
|
|
}
|
|
|
|
printer* pPrinter = nullptr;
|
|
globalStates* pglobalStates = nullptr;
|
|
jconf* pJconfConfig = nullptr;
|
|
executor* pExecutor = nullptr;
|
|
params* pParams = nullptr;
|
|
};
|
|
|
|
} // namepsace xmrstak
|