ipfs-chromium
link.h
1 #ifndef IPFS_LINK_H_
2 #define IPFS_LINK_H_
3 
4 #include <memory>
5 #include <string>
6 
7 namespace ipfs::ipld {
8 
9 class DagNode;
10 using Ptr = std::shared_ptr<DagNode>;
11 
12 class Link {
13  public:
14  std::string cid;
15  Ptr node;
16 
17  Link(std::string);
18  explicit Link(std::string, std::shared_ptr<DagNode>);
19 };
20 } // namespace ipfs::ipld
21 
22 #endif // IPFS_LINK_H_