diff options
author | innokentii <innokentii@yandex-team.com> | 2023-04-13 17:48:21 +0300 |
---|---|---|
committer | innokentii <innokentii@yandex-team.com> | 2023-04-13 17:48:21 +0300 |
commit | 15d3532f49b3662c9ca277db63052de97e7ed735 (patch) | |
tree | 851e2dd27c3736bb59970503ef571ac779c84fdd /library/cpp/yaml/fyamlcpp/fyamlcpp.h | |
parent | edbc6cad1fc50b1237b88cd16a78fd44777a6601 (diff) | |
download | ydb-15d3532f49b3662c9ca277db63052de97e7ed735.tar.gz |
Forward libfyaml node styles to fyamlcpp
forward libfyaml node styles to fyamlcpp
Diffstat (limited to 'library/cpp/yaml/fyamlcpp/fyamlcpp.h')
-rw-r--r-- | library/cpp/yaml/fyamlcpp/fyamlcpp.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/library/cpp/yaml/fyamlcpp/fyamlcpp.h b/library/cpp/yaml/fyamlcpp/fyamlcpp.h index bcf9362d732..231503c3a1f 100644 --- a/library/cpp/yaml/fyamlcpp/fyamlcpp.h +++ b/library/cpp/yaml/fyamlcpp/fyamlcpp.h @@ -15,6 +15,7 @@ struct fy_document; struct fy_diag; struct fy_document_iterator; struct fy_node_pair; +extern "C" struct fy_node *fy_node_buildf(struct fy_document *fyd, const char *fmt, ...); namespace NFyaml { @@ -32,6 +33,18 @@ enum class ENodeType { Mapping, }; +enum class ENodeStyle { + Any = -1, + Flow, + Block, + Plain, + SingleQuoted, + DoubleQuoted, + Literal, + Folded, + Alias, +}; + namespace NDetail { class IBasicUserData { @@ -155,6 +168,10 @@ public: std::unique_ptr<char, void(*)(char*)> EmitToCharArray() const; + void SetStyle(ENodeStyle style); + + ENodeStyle Style() const; + protected: fy_node* Node_ = nullptr; |