diff options
author | cobat <cobat@yandex-team.ru> | 2022-02-10 16:49:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:07 +0300 |
commit | 1d2e8a8e9976488ea69a7e4763aa749244f82612 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/resource/README.md | |
parent | e486e109b08823b61996f2154f0bc6b7c27a4af4 (diff) | |
download | ydb-1d2e8a8e9976488ea69a7e4763aa749244f82612.tar.gz |
Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/resource/README.md')
-rw-r--r-- | library/cpp/resource/README.md | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/resource/README.md b/library/cpp/resource/README.md index 1353d57cb1..b1e4961c1f 100644 --- a/library/cpp/resource/README.md +++ b/library/cpp/resource/README.md @@ -1,24 +1,24 @@ -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: -```cpp +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: +```cpp #include <library/cpp/resource/resource.h> -int main() { - Cout << NResource::Find("/key/in/program/1") << Endl; - Cout << NResource::Find("/key2") << Endl; -} -``` +int main() { + Cout << NResource::Find("/key/in/program/1") << Endl; + Cout << NResource::Find("/key2") << Endl; +} +``` |