ipfs-chromium
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 
7 namespace ipfs::ipld {
8 class DagJsonNode final : public DagNode {
9  std::unique_ptr<DagJsonValue> data_;
10  std::string html_;
11  ResolveResult resolve(ResolutionState& params) override;
12  Link* is_link();
13  std::string const& html();
14 
15  public:
16  DagJsonNode(std::unique_ptr<DagJsonValue>);
17  ~DagJsonNode() noexcept override;
18 };
19 
20 } // namespace ipfs::ipld
21 
22 #endif // IPFS_DAG_JSON_NODE_H_
Definition: dag_json_node.h:8
A block, an IPNS record, etc.
Definition: dag_node.h:56
Definition: resolution_state.h:21