1 Star 0 Fork 71

Kou_Ching / global_cust_lite

forked from OpenHarmony / global_cust_lite
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
黄科 提交于 2022-03-07 15:57 . modify code

cust

Introduction

The customization framework, namely, cust, provides APIs for each service module to obtain the configuration directories at different levels or the configuration file paths.

Directory Structure

The directory structure for the customization framework is as follows:

/base/global/
├── cust_lite                 # Code repository for the customization framework
│   ├── frameworks            # Core code of the customization framework
│   │   ├── cust_lite         # Customization framework
│   │   │   ├── src           # Implementation code
│   │   │   └── test          # Test code
│   ├── interfaces            # APIs of the customization framework
│   │   ├── innerkits         # APIs of the customization framework for internal subsystems
│   │   └── js                # JavaScript APIs

Usage

Call the APIs of the customization framework to obtain the configuration directories at different levels or the configuration file paths.

#include <gtest/gtest.h>
#include "cust_utils.h"

const char *testPathSuffix = "user.xml"; // Set the name of the configuration file.
char buf[MAX_PATH_LEN];
char *filePath = GetOneCfgFile(testPathSuffix, CUST_TYPE_CONFIG, buf, MAX_PATH_LEN); // Obtain the path of the configuration file with the highest priority.

Constraints

Programming language: C/C++

Repositories Involved

Globalization subsystem

global_resmgr_lite

global_i18n_lite

global_cust_lite

1
https://gitee.com/okc233/global_cust_lite.git
git@gitee.com:okc233/global_cust_lite.git
okc233
global_cust_lite
global_cust_lite
master

搜索帮助