ipfs-chromium
Loading...
Searching...
No Matches
dag_json_node.h
1#ifndef IPFS_DAG_JSON_NODE_H_
2#define IPFS_DAG_JSON_NODE_H_
3
4#include <ipfs_client/dag_json_value.h>
5#include <ipfs_client/ipld/dag_node.h>
6
7namespace ipfs::ipld {
16class DagJsonNode final : public DagNode {
17 std::unique_ptr<DagJsonValue> data_;
18 std::string html_;
19 ResolveResult resolve(ResolutionState& params) override;
20 Link* is_link();
21 std::string const& html();
22
23 public:
26 explicit DagJsonNode(std::unique_ptr<DagJsonValue>);
28};
29
30} // namespace ipfs::ipld
31
32#endif // IPFS_DAG_JSON_NODE_H_
Definition dag_json_node.h:16
DagJsonNode(std::unique_ptr< DagJsonValue >)
A block, an IPNS record, etc.
Definition dag_node.h:69
Definition resolution_state.h:21
Just an observing (non-owning) pointer.
Definition raw_ptr.h:31