AlexSm 6d3e410c45 Remove CMakeLists from main (#2032) 7 months ago
..
ut bf0f13dd39 add ymake export to ydb 1 year ago
README.md 1d2e8a8e99 Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 2 of 2. 2 years ago
registry.cpp dfe7a3135e discourage inlining of the NResource::TRegHelper's constructor 7 months ago
registry.h dfe7a3135e discourage inlining of the NResource::TRegHelper's constructor 7 months 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;
}