c7bf4f5a39
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
35 lines
591 B
C++
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();
|
|
};
|