ipfs-chromium
dag_cbor_node.h
1 #ifndef IPFS_DAG_CBOR_NODE_H_
2 #define IPFS_DAG_CBOR_NODE_H_
3 
4 #include <ipfs_client/ipld/dag_node.h>
5 
6 #include <ipfs_client/client.h>
7 
8 namespace ipfs::ipld {
11 class DagCborNode final : public DagNode {
12  ResolveResult resolve(ResolutionState&) override;
13 
14  public:
17  using Data = DagCborValue;
18  explicit DagCborNode(std::unique_ptr<Data>);
19  ~DagCborNode() noexcept override;
20 
21  private:
22  std::unique_ptr<Data> doc_;
23 };
24 }
25 
26 #endif // IPFS_DAG_CBOR_NODE_H_
Definition: dag_cbor_value.h:15
Definition: dag_cbor_node.h:11
A block, an IPNS record, etc.
Definition: dag_node.h:69
Definition: resolution_state.h:21