mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Add flow/block style setting on Nodes
This commit is contained in:
@@ -16,7 +16,10 @@ namespace detail {
|
||||
std::string node_data::empty_scalar;
|
||||
|
||||
node_data::node_data()
|
||||
: m_isDefined(false), m_type(NodeType::Null), m_seqSize(0) {}
|
||||
: m_isDefined(false),
|
||||
m_type(NodeType::Null),
|
||||
m_seqSize(0),
|
||||
m_style(EmitterStyle::Default) {}
|
||||
|
||||
void node_data::mark_defined() {
|
||||
if (m_type == NodeType::Undefined)
|
||||
@@ -57,6 +60,8 @@ void node_data::set_type(NodeType::value type) {
|
||||
|
||||
void node_data::set_tag(const std::string& tag) { m_tag = tag; }
|
||||
|
||||
void node_data::set_style(EmitterStyle::value style) { m_style = style; }
|
||||
|
||||
void node_data::set_null() {
|
||||
m_isDefined = true;
|
||||
m_type = NodeType::Null;
|
||||
|
Reference in New Issue
Block a user