libzypp 17.38.15

json.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
22#ifndef ZYPP_CORE_PARSER_JSON_H
23#define ZYPP_CORE_PARSER_JSON_H
24
25#include <zypp-core/Globals.h>
26#include <zypp-core/base/InputStream>
27#include <zypp-core/parser/parseexception.h>
28#include "json/JsonValue.h"
29
30#ifdef ZYPP_DLL
31# include <zypp-core/ng/pipelines/expected.h>
32# include "json/private/jsonparser_p.h"
33#endif
34
35 namespace zypp::json {
36
41 ZYPP_API Value parseDocument( const InputStream & input_r );
42
43#ifdef ZYPP_DLL
49 zyppng::expected<Value> parseDocumentExpected( const InputStream & input_r );
50#endif
51
52} // namespace zypp::json
53
54#endif // ZYPP_CORE_PARSER_JSON_H
Globals.h
Provides API related macros.
JsonValue.h
zypp::json::Value
Definition JsonValue.h:175
expected.h
jsonparser_p.h
Internal JSON tokeniser — NOT part of the public API.
zypp::json
Definition TargetImpl.cc:153
zypp::json::parseDocument
Value parseDocument(const InputStream &input_r)
Parse a JSON document from input_r.
Definition json.cc:23
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173
parseexception.h