AlexSm 6d3e410c45 Remove CMakeLists from main (#2032) 9 месяцев назад
..
ut bf0f13dd39 add ymake export to ydb 1 год назад
README.md 1d2e8a8e99 Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 2 of 2. 2 лет назад
registry.cpp dfe7a3135e discourage inlining of the NResource::TRegHelper's constructor 9 месяцев назад
registry.h dfe7a3135e discourage inlining of the NResource::TRegHelper's constructor 9 месяцев назад
resource.cpp 387c914d75 Filter searcher props by black list. Add NResource::Has() 1 год назад
resource.h 387c914d75 Filter searcher props by black list. Add NResource::Has() 1 год назад
ya.make bf0f13dd39 add ymake export to ydb 1 год назад

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;
}