1 /*
2 * Copyright (c) 2022 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 SECURITY_GUARD_MODEL_CFG_MARSHALLING_H
17 #define SECURITY_GUARD_MODEL_CFG_MARSHALLING_H
18
19 #include <string>
20 #include <vector>
21
22 #include "nlohmann/json.hpp"
23 #include "i_model_info.h"
24 #include "security_event_info.h"
25 namespace OHOS::Security::SecurityGuard {
26 constexpr const char *AUDIT_TABLE = "audit_event";
27 constexpr const char *RISK_TABLE = "risk_event";
28
from_json(const nlohmann::json & jsonObj,Field & field)29 void from_json(const nlohmann::json &jsonObj, Field &field) {};
from_json(const nlohmann::json & jsonObj,Rule & rule)30 void from_json(const nlohmann::json &jsonObj, Rule &rule) {};
from_json(const nlohmann::json & jsonObj,BuildInDetectionCfg & config)31 void from_json(const nlohmann::json &jsonObj, BuildInDetectionCfg &config) {};
to_json(nlohmann::json & jsonObj,const ModelCfg & modelCfg)32 void to_json(nlohmann::json &jsonObj, const ModelCfg &modelCfg) {};
from_json(const nlohmann::json & jsonObj,ModelCfg & modelCfg)33 void from_json(const nlohmann::json &jsonObj, ModelCfg &modelCfg) {};
to_json(nlohmann::json & jsonObj,const EventCfg & eventCfg)34 void to_json(nlohmann::json &jsonObj, const EventCfg &eventCfg) {};
from_json(const nlohmann::json & jsonObj,EventCfg & eventCfg)35 void from_json(const nlohmann::json &jsonObj, EventCfg &eventCfg) {};
to_json(nlohmann::json & jsonObj,const DataMgrCfgSt & dataMgrCfg)36 void to_json(nlohmann::json &jsonObj, const DataMgrCfgSt &dataMgrCfg) {};
from_json(const nlohmann::json & jsonObj,DataMgrCfgSt & dataMgrCfg)37 void from_json(const nlohmann::json &jsonObj, DataMgrCfgSt &dataMgrCfg) {};
to_json(nlohmann::json & jsonObj,const SecEvent & eventDataSt)38 void to_json(nlohmann::json &jsonObj, const SecEvent &eventDataSt) {};
to_json(nlohmann::json & jsonObj,const EventContentSt & eventContentSt)39 void to_json(nlohmann::json &jsonObj, const EventContentSt &eventContentSt) {};
from_json(const nlohmann::json & jsonObj,EventContentSt & eventContentSt)40 void from_json(const nlohmann::json &jsonObj, EventContentSt &eventContentSt) {};
41 } // namespace OHOS::Security::SecurityGuard
42
43 #endif // SECURITY_GUARD_MODEL_CFG_MARSHALLING_H
44