Files
nearby/cpp/platform/impl/windows/generated/winrt/impl/Windows.Data.Json.2.h
T
hai007 2e853156dc Internal change
PiperOrigin-RevId: 380848866
2021-06-22 11:09:32 -07:00

85 lines
5.1 KiB
C++

// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210505.3
#ifndef WINRT_Windows_Data_Json_2_H
#define WINRT_Windows_Data_Json_2_H
#include "winrt/impl/Windows.Foundation.1.h"
#include "winrt/impl/Windows.Foundation.Collections.1.h"
#include "winrt/impl/Windows.Data.Json.1.h"
WINRT_EXPORT namespace winrt::Windows::Data::Json
{
struct __declspec(empty_bases) JsonArray : winrt::Windows::Data::Json::IJsonArray,
impl::require<JsonArray, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Data::Json::IJsonValue>, winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Data::Json::IJsonValue>, winrt::Windows::Foundation::IStringable>
{
JsonArray(std::nullptr_t) noexcept {}
JsonArray(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Data::Json::IJsonArray(ptr, take_ownership_from_abi) {}
JsonArray();
JsonArray(JsonArray const&) noexcept = default;
JsonArray(JsonArray&&) noexcept = default;
JsonArray& operator=(JsonArray const&) & noexcept = default;
JsonArray& operator=(JsonArray&&) & noexcept = default;
static auto Parse(param::hstring const& input);
static auto TryParse(param::hstring const& input, winrt::Windows::Data::Json::JsonArray& result);
};
struct JsonError
{
JsonError() = delete;
static auto GetJsonStatus(int32_t hresult);
};
struct __declspec(empty_bases) JsonObject : winrt::Windows::Data::Json::IJsonObject,
impl::require<JsonObject, winrt::Windows::Foundation::Collections::IIterable<winrt::Windows::Foundation::Collections::IKeyValuePair<hstring, winrt::Windows::Data::Json::IJsonValue>>, winrt::Windows::Foundation::Collections::IMap<hstring, winrt::Windows::Data::Json::IJsonValue>, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues, winrt::Windows::Foundation::IStringable>
{
JsonObject(std::nullptr_t) noexcept {}
JsonObject(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Data::Json::IJsonObject(ptr, take_ownership_from_abi) {}
JsonObject();
JsonObject(JsonObject const&) noexcept = default;
JsonObject(JsonObject&&) noexcept = default;
JsonObject& operator=(JsonObject const&) & noexcept = default;
JsonObject& operator=(JsonObject&&) & noexcept = default;
using winrt::Windows::Data::Json::IJsonObject::GetNamedArray;
using impl::consume_t<JsonObject, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues>::GetNamedArray;
using winrt::Windows::Data::Json::IJsonObject::GetNamedBoolean;
using impl::consume_t<JsonObject, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues>::GetNamedBoolean;
using winrt::Windows::Data::Json::IJsonObject::GetNamedNumber;
using impl::consume_t<JsonObject, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues>::GetNamedNumber;
using winrt::Windows::Data::Json::IJsonObject::GetNamedObject;
using impl::consume_t<JsonObject, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues>::GetNamedObject;
using winrt::Windows::Data::Json::IJsonObject::GetNamedString;
using impl::consume_t<JsonObject, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues>::GetNamedString;
using winrt::Windows::Data::Json::IJsonObject::GetNamedValue;
using impl::consume_t<JsonObject, winrt::Windows::Data::Json::IJsonObjectWithDefaultValues>::GetNamedValue;
static auto Parse(param::hstring const& input);
static auto TryParse(param::hstring const& input, winrt::Windows::Data::Json::JsonObject& result);
};
struct __declspec(empty_bases) JsonValue : winrt::Windows::Data::Json::IJsonValue,
impl::require<JsonValue, winrt::Windows::Foundation::IStringable>
{
JsonValue(std::nullptr_t) noexcept {}
JsonValue(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Data::Json::IJsonValue(ptr, take_ownership_from_abi) {}
JsonValue(JsonValue const&) noexcept = default;
JsonValue(JsonValue&&) noexcept = default;
JsonValue& operator=(JsonValue const&) & noexcept = default;
JsonValue& operator=(JsonValue&&) & noexcept = default;
static auto Parse(param::hstring const& input);
static auto TryParse(param::hstring const& input, winrt::Windows::Data::Json::JsonValue& result);
static auto CreateBooleanValue(bool input);
static auto CreateNumberValue(double input);
static auto CreateStringValue(param::hstring const& input);
static auto CreateNullValue();
};
}
#endif