# global_resmgr_lite **Repository Path**: wwwalter/global_resmgr_lite ## Basic Information - **Project Name**: global_resmgr_lite - **Description**: Global resource manager framework | 全球化资源管理框架 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 106 - **Created**: 2021-03-23 - **Last Updated**: 2021-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # resmgr - [Introduction](#section11660541593) - [Directory Structure](#section1844145112017) - [Usage](#section17235135618274) - [Constraints](#section568761318105) - [Repositories Involved](#section15583142420413) ## Introduction The resource management module, namely, resmgr, provides the function of loading multi-language GUI resources for applications, for example, displaying the application names or icons specific to a certain language. ## Directory Structure The directory structure for the resource management module is as follows: ``` /base/global/ ├── resmgr_lite # Code repository for the resource management module │ ├── frameworks # Core code of the resource management module │ │ ├── resmgr # Core code for resource parsing │ │ │ ├── include # Header files of the resource management module │ │ │ └── src # Implementation code of the resource management module │ ├── interfaces # APIs of the resource management module │ │ └── innerkits # APIs of the resource management module for internal subsystems ``` ## Usage Call the **GLOBAL\_GetValueById** API to obtain the resource information of the application. ``` #include #include #include "global.h" uint32_t id = 0x16777216; char *values = NULL; int32_t re = GLOBAL_GetValueById(id, "/system/data/resources.index", &values); // Obtain the resource of a specified application and write the resource to values. std::count << values << std::endl; if (values != NULL) { free(values); } ``` ## Constraints **Programming language**: C/C++ ## Repositories Involved [Globalization subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/globalization.md) global\_resmgr\_lite [global\_i18n\_lite](https://gitee.com/openharmony/global_i18n_lite/blob/master/README.md) [global\_cust\_lite](https://gitee.com/openharmony/global_cust_lite/blob/master/README.md)