ipfs-chromium
Loading...
Searching...
No Matches
nlohmann_cbor_parser.h
1#ifndef IPFS_CHROMIUM_NLOHMANN_CBOR_PARSER_H
2#define IPFS_CHROMIUM_NLOHMANN_CBOR_PARSER_H
3
4#include "cbor_parser.h"
5
6#include <ipfs_client/json_cbor_adapter.h>
7
8#if HAS_JSON_CBOR_ADAPTER
9
10namespace ipfs::ctx {
11class NlohmannCborParser final : public CborParser {
12 public:
13 std::unique_ptr<DagCborValue> Parse(ByteView) override;
14 ~NlohmannCborParser() noexcept override {}
15};
16} // namespace ipfs::ctx
17
18#endif // HAS_CBOR_CBOR_ADAPTER
19#endif // IPFS_CHROMIUM_NLOHMANN_CBOR_PARSER_H