Some further achitecture thoguhts

This commit is contained in:
Blue 2025-03-02 21:33:22 +02:00
parent ac8db32552
commit b997972ec1
Signed by: blue
GPG key ID: 9B203B252A63EE38
21 changed files with 103 additions and 15 deletions

11
module/CMakeLists.txt Normal file
View file

@ -0,0 +1,11 @@
set(SOURCES
module.cpp
owner.cpp
)
set(HEADERS
module.h
owner.h
)
target_sources(${EXEC_NAME} PRIVATE ${SOURCES})

9
module/module.cpp Normal file
View file

@ -0,0 +1,9 @@
// SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
#include "module.h"
Module::Module()
{}
Module::~Module() noexcept {}

12
module/module.h Normal file
View file

@ -0,0 +1,12 @@
// SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
class Module {
protected:
Module();
public:
virtual ~Module() noexcept;
};

10
module/owner.cpp Normal file
View file

@ -0,0 +1,10 @@
// SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
#include "owner.h"
Owner::Owner():
Module()
{}
Owner::~Owner() noexcept {}

12
module/owner.h Normal file
View file

@ -0,0 +1,12 @@
// SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "module.h"
class Owner : public Module {
public:
Owner();
~Owner() noexcept;
};