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<Registry> & registry,
|
|
|
|
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.
|
|
|
|
class Logger
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Logger(const bool log);
|
|
|
|
~Logger();
|
|
|
|
};
|