robot-ya-builder 96458ea3c7 External build system generator release 65 9 months ago
..
ut bf0f13dd39 add ymake export to ydb 1 year ago
CMakeLists.darwin-arm64.txt ffff7a34e4 add darwin-arm64 CMakeLists 10 months ago
CMakeLists.darwin-x86_64.txt 33ed6077e6 Intermediate changes 1 year ago
CMakeLists.linux-aarch64.txt 9f448c9c67 Intermediate changes 1 year ago
CMakeLists.linux-x86_64.txt 33ed6077e6 Intermediate changes 1 year ago
CMakeLists.txt 96458ea3c7 External build system generator release 65 9 months ago
CMakeLists.windows-x86_64.txt 6324d075a5 Intermediate changes 1 year ago
README.md 1d2e8a8e99 Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 2 of 2. 2 years ago
registry.cpp e601ca03f8 Y_VERIFY->Y_ABORT_UNLESS at ^l 11 months ago
registry.h 7940735411 Virtual destructor libraries 1 year ago
resource.cpp 387c914d75 Filter searcher props by black list. Add NResource::Has() 1 year ago
resource.h 387c914d75 Filter searcher props by black list. Add NResource::Has() 1 year ago
ya.make bf0f13dd39 add ymake export to ydb 1 year ago

README.md

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/cpp/resource/resource.h>
int main() {
        Cout << NResource::Find("/key/in/program/1") << Endl;
        Cout << NResource::Find("/key2") << Endl;
}