• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "sys_event_user.h"
17 
18 namespace OHOS {
19 namespace HiviewDFX {
20 namespace EventThreshold {
SetName(std::string & name)21 void SysEventUser::SetName(std::string& name)
22 {
23     name_ = name;
24 }
25 
GetName(std::string & name)26 void SysEventUser::GetName(std::string& name)
27 {
28     name = name_;
29 }
30 
SetProcessType(ProcessType type)31 void SysEventUser::SetProcessType(ProcessType type)
32 {
33     type_ = type;
34 }
35 
GetProcessType()36 ProcessType SysEventUser::GetProcessType()
37 {
38     return type_;
39 }
40 
SetConfigs(Configs & configs)41 void SysEventUser::SetConfigs(Configs& configs)
42 {
43     configs_ = configs;
44 }
45 
GetConfigs(Configs & configs)46 void SysEventUser::GetConfigs(Configs& configs)
47 {
48     configs = configs_;
49 }
50 } // namespace EventThreshold
51 } // namespace HiviewDFX
52 } // namespace OHOS