1 /*
2  * Copyright (c) 2023 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 ISOLATE_INFO_CONFIG_H
17 #define ISOLATE_INFO_CONFIG_H
18 
19 #include <string>
20 #include <list>
21 #include <vector>
22 
23 namespace OHOS {
24 namespace HDI {
25 namespace Thermal {
26 namespace V1_1 {
27 struct IsolateNodeInfo {
28     std::string type;
29     std::string path;
30 };
31 
32 class IsolateInfoConfig {
33 public:
34     IsolateInfoConfig() = default;
35     ~IsolateInfoConfig() = default;
36 
37     void SetGroupName(const std::string &groupName);
38     std::string GetGroupName();
39 
40     void SetIsolateNodeInfo(std::vector<IsolateNodeInfo> &vXmlTn);
41     std::vector<IsolateNodeInfo> GetIsolateNodeInfo();
42 
43 private:
44     std::string groupName_;
45     std::vector<IsolateNodeInfo> nodeInfoList_;
46 };
47 } // V1_1
48 } // Thermal
49 } // HDI
50 } // OHOS
51 #endif