This commit is contained in:
falsycat 2023-07-21 22:16:08 +09:00
parent 09320615b9
commit deca5c4a50
3 changed files with 36 additions and 0 deletions

View File

@ -15,8 +15,10 @@ target_sources(nf7_iface
common/observer.hh
common/task.hh
common/value.hh
data/interface.hh
subsys/interface.hh
env.hh
file.hh
lambda.hh
version.hh
)

23
iface/data/interface.hh Normal file
View File

@ -0,0 +1,23 @@
// No copyright
#pragma once
namespace nf7::data {
class Interface {
public:
Interface() = delete;
explicit Interface(const char* name) : name_(name) { }
virtual ~Interface() = default;
Interface(const Interface&) = delete;
Interface(Interface&&) = delete;
Interface& operator=(const Interface&) = delete;
Interface& operator=(Interface&&) = delete;
const char* name() const noexcept { return name_; }
private:
const char* name_;
};
} // namespace nf7::data

11
iface/file.hh Normal file
View File

@ -0,0 +1,11 @@
// No copyright
#pragma once
#include "iface/common/container.hh"
#include "iface/data/interface.hh"
namespace nf7 {
using File = Container<data::Interface>;
} // namespace nf7