1 /*
2 * Copyright (c) 2021 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 #include "parameter_ex.h"
16 #include <cstdint>
17
18 namespace OHOS {
19 namespace HiviewDFX {
20 namespace Parameter {
GetString(const std::string & key,const std::string & defaultValue)21 std::string GetString(const std::string& key, const std::string& defaultValue)
22 {
23 return defaultValue;
24 }
25
GetInteger(const std::string & key,const int64_t defaultValue)26 int64_t GetInteger(const std::string& key, const int64_t defaultValue)
27 {
28 return defaultValue;
29 }
30
GetUnsignedInteger(const std::string & key,const uint64_t defaultValue)31 uint64_t GetUnsignedInteger(const std::string& key, const uint64_t defaultValue)
32 {
33 return defaultValue;
34 }
35
GetBoolean(const std::string & key,const bool defaultValue)36 bool GetBoolean(const std::string& key, const bool defaultValue)
37 {
38 return defaultValue;
39 }
40
SetProperty(const std::string & key,const std::string & defaultValue)41 bool SetProperty(const std::string& key, const std::string& defaultValue)
42 {
43 return true;
44 }
45 } // namespace Parameter
46 } // namespace HiviewDFX
47 } // namespace OHOS
48