1/*
2 * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef TO_STRING_H
17#define TO_STRING_H
18
19#include <string>
20#include "permission_used_request.h"
21#include "permission_used_result.h"
22#include "permission_used_type_info.h"
23
24namespace OHOS {
25namespace Security {
26namespace AccessToken {
27class ToString {
28public:
29    static void DetailUsedRecordToString(
30        bool isAccessDetail, const std::vector<UsedRecordDetail>& detailRecord, std::string& infos);
31    static void PermissionUsedRecordToString(
32        const std::vector<PermissionUsedRecord>& permissionRecords, std::string& infos);
33    static void BundleUsedRecordToString(const BundleUsedRecord& bundleRecord, std::string& infos);
34    static void PermissionUsedResultToString(const PermissionUsedResult& result, std::string& infos);
35    static void PermissionUsedTypeInfoToString(const PermissionUsedTypeInfo& type, std::string& infos);
36};
37} // namespace AccessToken
38} // namespace Security
39} // namespace OHOS
40#endif // TO_STRING_H
41