2021-01-10 11:47:44 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
class FrameBase;
|
2021-05-24 09:22:01 +01:00
|
|
|
class Paddle;
|
|
|
|
class Registry;
|
2021-01-10 11:47:44 +00:00
|
|
|
|
|
|
|
void SetFrame(const std::shared_ptr<FrameBase> & frame);
|
2021-03-27 18:47:40 +00:00
|
|
|
|
2021-05-23 20:06:36 +01:00
|
|
|
// RAII around Frame Registry and Paddle
|
2021-03-27 18:47:40 +00:00
|
|
|
class Initialisation
|
|
|
|
{
|
|
|
|
public:
|
2021-05-24 09:22:01 +01:00
|
|
|
Initialisation(
|
|
|
|
const std::shared_ptr<FrameBase> & frame,
|
|
|
|
const std::shared_ptr<Paddle> & paddle
|
|
|
|
);
|
2021-03-27 18:47:40 +00:00
|
|
|
~Initialisation();
|
|
|
|
};
|
2021-05-23 20:06:36 +01:00
|
|
|
|
|
|
|
// RAII around LogInit / LogDone.
|
2021-10-30 15:24:06 +01:00
|
|
|
class LoggerContext
|
2021-05-23 20:06:36 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-10-30 15:24:06 +01:00
|
|
|
LoggerContext(const bool log);
|
|
|
|
~LoggerContext();
|
|
|
|
};
|
|
|
|
|
|
|
|
class RegistryContext
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RegistryContext(const std::shared_ptr<Registry> & registry);
|
|
|
|
~RegistryContext();
|
2021-05-23 20:06:36 +01:00
|
|
|
};
|