AppleWin/source/linux/context.h

36 lines
591 B
C
Raw Normal View History

2021-01-10 11:47:44 +00:00
#pragma once
#include <memory>
class FrameBase;
class Paddle;
class Registry;
2021-01-10 11:47:44 +00:00
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();
};