Ejemplo n.º 1
0
    virtual void begin_object()
    {
        begin_structure();

        if (indenting_ && !stack_.empty() && stack_.back().is_object())
        {
            write_indent();
        }
        stack_.push_back(stack_item(true));
        os_.put('{');
        indent();
    }
Ejemplo n.º 2
0
    void do_begin_object() override
    {
        begin_structure();

        if (indenting_ && !stack_.empty() && stack_.back().is_object())
        {
            write_indent();
        }
        stack_.push_back(stack_item(true));
        os_->put('{');
        indent();
    }
Ejemplo n.º 3
0
    void do_begin_array() override
    {
        begin_structure();

        if (indenting_ && !stack_.empty() && stack_.back().is_object())
        {
            write_indent();
        }
        stack_.push_back(stack_item(false));
        bos_.put('[');
        indent();
    }
Ejemplo n.º 4
0
 virtual void begin_array(const basic_parsing_context<Char>& context)
 {
     stack_.push_back(stack_item(false,context.minimum_structure_capacity()));
 }