blob: 7b66d8213915ffb4683631e0808ed5dc5e1d6999 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <erebos/storage.h>
namespace erebos {
class Identity
{
public:
static std::optional<Identity> load(const Ref &);
static std::optional<Identity> load(const std::vector<Ref> &);
std::optional<std::string> name() const;
std::optional<Identity> owner() const;
private:
struct Priv;
const std::shared_ptr<const Priv> p;
Identity(const Priv * p): p(p) {}
Identity(std::shared_ptr<const Priv> && p): p(std::move(p)) {}
};
}
|