Rosetta 3.3
Public Member Functions | Protected Member Functions
basic::YamlEmitter Class Reference

Emitter for more classically formatted YAML. More...

#include <Emitter.hh>

Inheritance diagram for basic::YamlEmitter:
Inheritance graph
[legend]
Collaboration diagram for basic::YamlEmitter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 YamlEmitter (std::ostream &out)
virtual ~YamlEmitter ()
virtual void start_doc ()
 Start a new YAML document, ending the previous one first if necessary.

Protected Member Functions

virtual std::string quote_string (std::string const &s)
 YAML only quotes strings when they contain special characters.
virtual void do_indent (bool write_comma=true)
 Handle pretty-printing indentation. Don't want to use commas for opening/closing brace/bracket.
virtual void write_list_marker ()
 YAML uses "-" for list items when in block (indented) mode.
virtual void start_raw (bool is_map, bool indent)
virtual void end_raw ()

Detailed Description

Emitter for more classically formatted YAML.


Constructor & Destructor Documentation

basic::YamlEmitter::YamlEmitter ( std::ostream &  out) [inline]

References start_raw().

virtual basic::YamlEmitter::~YamlEmitter ( ) [inline, virtual]

Member Function Documentation

virtual void basic::YamlEmitter::do_indent ( bool  write_comma = true) [inline, protected, virtual]

Handle pretty-printing indentation. Don't want to use commas for opening/closing brace/bracket.

Implements basic::Emitter.

References basic::Emitter::depth(), assign_charges::first, basic::Emitter::first_, color_pdb::i, basic::Emitter::indent_, basic::Emitter::indent_depth_, basic::Emitter::indent_str_, and basic::Emitter::out_.

virtual void basic::YamlEmitter::end_raw ( ) [inline, protected, virtual]

YAML only uses brackets and braces if data is not being indented.

Implements basic::Emitter.

References basic::Emitter::first_, basic::Emitter::in_map_, basic::Emitter::indent_, basic::Emitter::indent_depth_, and basic::Emitter::out_.

virtual std::string basic::YamlEmitter::quote_string ( std::string const &  s) [inline, protected, virtual]

YAML only quotes strings when they contain special characters.

Implements basic::Emitter.

References basic::Emitter::escape_string(), and sd::t.

virtual void basic::YamlEmitter::start_doc ( ) [inline, virtual]

Start a new YAML document, ending the previous one first if necessary.

Implements basic::Emitter.

References basic::Emitter::end(), basic::Emitter::out_, and start_raw().

virtual void basic::YamlEmitter::start_raw ( bool  is_map,
bool  indent 
) [inline, protected, virtual]

YAML only uses brackets and braces if data is not being indented.

Implements basic::Emitter.

References basic::Emitter::first_, basic::Emitter::in_map_, basic::Emitter::indent_, basic::Emitter::indent_depth_, and basic::Emitter::out_.

Referenced by start_doc(), and YamlEmitter().

virtual void basic::YamlEmitter::write_list_marker ( ) [inline, protected, virtual]

YAML uses "-" for list items when in block (indented) mode.

Implements basic::Emitter.

References basic::Emitter::indent_, and basic::Emitter::out_.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines