Some further achitecture thoguhts
This commit is contained in:
parent
ac8db32552
commit
b997972ec1
21 changed files with 103 additions and 15 deletions
11
module/CMakeLists.txt
Normal file
11
module/CMakeLists.txt
Normal 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
9
module/module.cpp
Normal 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
12
module/module.h
Normal 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
10
module/owner.cpp
Normal 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
12
module/owner.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue