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:
15  using Data = DagCborValue;
16  explicit DagCborNode(std::unique_ptr<Data>);
17  ~DagCborNode() noexcept override;
18 
19  private:
20  std::unique_ptr<Data> doc_;
21 };
22 }
23 
24 #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