ipfs-chromium
Loading...
Searching...
No Matches
link.h
1#ifndef IPFS_LINK_H_
2#define IPFS_LINK_H_
3
4#include <memory>
5#include <string>
6
7namespace ipfs::ipld {
8
9class DagNode;
10using Ptr = std::shared_ptr<DagNode>;
11
12class Link {
13 public:
16 std::string cid;
19 Ptr node;
20
24 explicit Link(std::string cid);
29 explicit Link(std::string cid, std::shared_ptr<DagNode> node);
30};
31} // namespace ipfs::ipld
32
33#endif // IPFS_LINK_H_