7 Star 69 Fork 99

OpenHarmony / global_resource_management_lite

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

resmgr

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/
├── resource_management_lite                # Code repository for the resource management module
│   ├──  frameworks                         # Core code of the resource management module
│   │   ├── resource_management_lite        # Core code for resource parsing
│   │   │   ├── include                     # Header files of the resource management module
│   │   │   ├── src                         # Implementation code of the resource management module
│   │   │   └── test                        # Test code
│   ├──  interfaces                         # APIs of the resource management module
│   │   └── inner_api                       # APIs of the resource management module for internal subsystems

Usage

Call the GLOBAL_GetValueById API to obtain the resource information of the application.

#include <stdint.h>
#include <stdio.h>
#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::cout << values << std::endl;
if (values != NULL) {
    free(values);
}

Constraints

Programming language: C/C++

Repositories Involved

Globalization subsystem

global_resmgr_lite

global_i18n_lite

Repository Comments ( 0 )

Sign in to post a comment

About

Global resource manager framework | 全球化资源管理框架 expand collapse
C++ and 3 more languages
Apache-2.0
Cancel

Releases (1)

All

OpenHarmony

Contributors

All

Activities

Load More
can not load any more
1
https://git.oschina.net/openharmony/global_resource_management_lite.git
git@git.oschina.net:openharmony/global_resource_management_lite.git
openharmony
global_resource_management_lite
global_resource_management_lite
master

Search