add File
This commit is contained in:
parent
09320615b9
commit
deca5c4a50
@ -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
23
iface/data/interface.hh
Normal 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
11
iface/file.hh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user