AppleWin/source/linux/context.h
Andrea Odetti c7bf4f5a39 Split registry from Initialisation to make is usable sooner.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-30 15:24:06 +01:00

35 lines
591 B
C++

#pragma once
#include <memory>
class FrameBase;
class Paddle;
class Registry;
void SetFrame(const std::shared_ptr<FrameBase> & frame);
// RAII around Frame Registry and Paddle
class Initialisation
{
public:
Initialisation(
const std::shared_ptr<FrameBase> & frame,
const std::shared_ptr<Paddle> & paddle
);
~Initialisation();
};
// RAII around LogInit / LogDone.
class LoggerContext
{
public:
LoggerContext(const bool log);
~LoggerContext();
};
class RegistryContext
{
public:
RegistryContext(const std::shared_ptr<Registry> & registry);
~RegistryContext();
};