Skip to content

Latest commit

 

History

History

resource

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This library provides implementation to access a resource (data, file, image, etc.) by a key.

See ya make documentation, resources section for more details.

Example - adding a resource file into build:

LIBRARY()
OWNER(user1)
RESOURCE(
    path/to/file1 /key/in/program/1
    path/to/file2 /key2
)
END()

Example - access to a file content by a key:

#include <library/resource/resource.h>
int main() {
        Cout << NResource::Find("/key/in/program/1") << Endl;
        Cout << NResource::Find("/key2") << Endl;
}