yaml  0.1.7
yaml_emitter_s Struct Reference

The emitter structure. More...

#include <yaml.h>

Data Fields

unsigned char * buffer
 The buffer pointer. More...
 
size_t size
 The buffer size. More...
 
size_t * size_written
 The number of written bytes. More...
 
struct {
   unsigned char *   buffer
 The buffer pointer. More...
 
   size_t   size
 The buffer size. More...
 
   size_t *   size_written
 The number of written bytes. More...
 
string
 String output data. More...
 
FILE * file
 File output data. More...
 
yaml_char_tstart
 The beginning of the buffer. More...
 
yaml_char_tend
 The end of the buffer. More...
 
yaml_char_tpointer
 The current position of the buffer. More...
 
yaml_char_tlast
 The last filled position of the buffer. More...
 
unsigned char * start
 The beginning of the buffer. More...
 
unsigned char * end
 The end of the buffer. More...
 
unsigned char * pointer
 The current position of the buffer. More...
 
unsigned char * last
 The last filled position of the buffer. More...
 
yaml_emitter_state_tstart
 The beginning of the stack. More...
 
yaml_emitter_state_tend
 The end of the stack. More...
 
yaml_emitter_state_ttop
 The top of the stack. More...
 
yaml_event_tstart
 The beginning of the event queue. More...
 
yaml_event_tend
 The end of the event queue. More...
 
yaml_event_thead
 The head of the event queue. More...
 
yaml_event_ttail
 The tail of the event queue. More...
 
int * start
 The beginning of the stack. More...
 
int * end
 The end of the stack. More...
 
int * top
 The top of the stack. More...
 
yaml_tag_directive_tstart
 The beginning of the list. More...
 
yaml_tag_directive_tend
 The end of the list. More...
 
yaml_tag_directive_ttop
 The top of the list. More...
 
yaml_char_tanchor
 The anchor value. More...
 
size_t anchor_length
 The anchor length. More...
 
int alias
 Is it an alias?
 
yaml_char_thandle
 The tag handle. More...
 
size_t handle_length
 The tag handle length. More...
 
yaml_char_tsuffix
 The tag suffix. More...
 
size_t suffix_length
 The tag suffix length. More...
 
yaml_char_tvalue
 The scalar value. More...
 
size_t length
 The scalar length. More...
 
int multiline
 Does the scalar contain line breaks?
 
int flow_plain_allowed
 Can the scalar be expessed in the flow plain style?
 
int block_plain_allowed
 Can the scalar be expressed in the block plain style?
 
int single_quoted_allowed
 Can the scalar be expressed in the single quoted style?
 
int block_allowed
 Can the scalar be expressed in the literal or folded styles?
 
yaml_scalar_style_t style
 The output style. More...
 
int references
 The number of references. More...
 
int anchor
 The anchor id. More...
 
int serialized
 If the node has been emitted?
 
Error handling
yaml_error_type_t error
 Error type. More...
 
const char * problem
 Error description. More...
 
Writer stuff
yaml_write_handler_twrite_handler
 Write handler. More...
 
void * write_handler_data
 A pointer for passing to the white handler. More...
 
union {
   struct {
      unsigned char *   buffer
 The buffer pointer. More...
 
      size_t   size
 The buffer size. More...
 
      size_t *   size_written
 The number of written bytes. More...
 
   }   string
 String output data. More...
 
   FILE *   file
 File output data. More...
 
output
 Standard (string or file) output data. More...
 
struct {
   yaml_char_t *   start
 The beginning of the buffer. More...
 
   yaml_char_t *   end
 The end of the buffer. More...
 
   yaml_char_t *   pointer
 The current position of the buffer. More...
 
   yaml_char_t *   last
 The last filled position of the buffer. More...
 
buffer
 The working buffer. More...
 
struct {
   unsigned char *   start
 The beginning of the buffer. More...
 
   unsigned char *   end
 The end of the buffer. More...
 
   unsigned char *   pointer
 The current position of the buffer. More...
 
   unsigned char *   last
 The last filled position of the buffer. More...
 
raw_buffer
 The raw buffer. More...
 
yaml_encoding_t encoding
 The stream encoding. More...
 
Emitter stuff
int canonical
 If the output is in the canonical style?
 
int best_indent
 The number of indentation spaces. More...
 
int best_width
 The preferred width of the output lines. More...
 
int unicode
 Allow unescaped non-ASCII characters?
 
yaml_break_t line_break
 The preferred line break. More...
 
struct {
   yaml_emitter_state_t *   start
 The beginning of the stack. More...
 
   yaml_emitter_state_t *   end
 The end of the stack. More...
 
   yaml_emitter_state_t *   top
 The top of the stack. More...
 
states
 The stack of states. More...
 
yaml_emitter_state_t state
 The current emitter state. More...
 
struct {
   yaml_event_t *   start
 The beginning of the event queue. More...
 
   yaml_event_t *   end
 The end of the event queue. More...
 
   yaml_event_t *   head
 The head of the event queue. More...
 
   yaml_event_t *   tail
 The tail of the event queue. More...
 
events
 The event queue. More...
 
struct {
   int *   start
 The beginning of the stack. More...
 
   int *   end
 The end of the stack. More...
 
   int *   top
 The top of the stack. More...
 
indents
 The stack of indentation levels. More...
 
struct {
   yaml_tag_directive_t *   start
 The beginning of the list. More...
 
   yaml_tag_directive_t *   end
 The end of the list. More...
 
   yaml_tag_directive_t *   top
 The top of the list. More...
 
tag_directives
 The list of tag directives. More...
 
int indent
 The current indentation level. More...
 
int flow_level
 The current flow level. More...
 
int root_context
 Is it the document root context?
 
int sequence_context
 Is it a sequence context?
 
int mapping_context
 Is it a mapping context?
 
int simple_key_context
 Is it a simple mapping key context?
 
int line
 The current line. More...
 
int column
 The current column. More...
 
int whitespace
 If the last character was a whitespace?
 
int indention
 If the last character was an indentation character (' ', '-', '?', ':')?
 
int open_ended
 If an explicit document end is required?
 
struct {
   yaml_char_t *   anchor
 The anchor value. More...
 
   size_t   anchor_length
 The anchor length. More...
 
   int   alias
 Is it an alias?
 
anchor_data
 Anchor analysis. More...
 
struct {
   yaml_char_t *   handle
 The tag handle. More...
 
   size_t   handle_length
 The tag handle length. More...
 
   yaml_char_t *   suffix
 The tag suffix. More...
 
   size_t   suffix_length
 The tag suffix length. More...
 
tag_data
 Tag analysis. More...
 
struct {
   yaml_char_t *   value
 The scalar value. More...
 
   size_t   length
 The scalar length. More...
 
   int   multiline
 Does the scalar contain line breaks?
 
   int   flow_plain_allowed
 Can the scalar be expessed in the flow plain style?
 
   int   block_plain_allowed
 Can the scalar be expressed in the block plain style?
 
   int   single_quoted_allowed
 Can the scalar be expressed in the single quoted style?
 
   int   block_allowed
 Can the scalar be expressed in the literal or folded styles?
 
   yaml_scalar_style_t   style
 The output style. More...
 
scalar_data
 Scalar analysis. More...
 
Dumper stuff
int opened
 If the stream was already opened?
 
int closed
 If the stream was already closed?
 
struct {
   int   references
 The number of references. More...
 
   int   anchor
 The anchor id. More...
 
   int   serialized
 If the node has been emitted?
 
anchors
 The information associated with the document nodes. More...
 
int last_anchor_id
 The last assigned anchor id. More...
 
yaml_document_tdocument
 The currently emitted document. More...
 

Detailed Description

The emitter structure.

All members are internal. Manage the structure using the yaml_emitter_ family of functions.

Field Documentation

yaml_error_type_t yaml_emitter_s::error

Error type.

const char* yaml_emitter_s::problem

Error description.

yaml_write_handler_t* yaml_emitter_s::write_handler

Write handler.

void* yaml_emitter_s::write_handler_data

A pointer for passing to the white handler.

unsigned char* yaml_emitter_s::buffer

The buffer pointer.

size_t yaml_emitter_s::size

The buffer size.

size_t* yaml_emitter_s::size_written

The number of written bytes.

struct { ... } yaml_emitter_s::string

String output data.

FILE* yaml_emitter_s::file

File output data.

union { ... } yaml_emitter_s::output

Standard (string or file) output data.

yaml_char_t* yaml_emitter_s::start

The beginning of the buffer.

yaml_char_t* yaml_emitter_s::end

The end of the buffer.

yaml_char_t* yaml_emitter_s::pointer

The current position of the buffer.

yaml_char_t* yaml_emitter_s::last

The last filled position of the buffer.

struct { ... } yaml_emitter_s::buffer

The working buffer.

unsigned char* yaml_emitter_s::start

The beginning of the buffer.

unsigned char* yaml_emitter_s::end

The end of the buffer.

unsigned char* yaml_emitter_s::pointer

The current position of the buffer.

unsigned char* yaml_emitter_s::last

The last filled position of the buffer.

struct { ... } yaml_emitter_s::raw_buffer

The raw buffer.

yaml_encoding_t yaml_emitter_s::encoding

The stream encoding.

int yaml_emitter_s::best_indent

The number of indentation spaces.

int yaml_emitter_s::best_width

The preferred width of the output lines.

yaml_break_t yaml_emitter_s::line_break

The preferred line break.

yaml_emitter_state_t* yaml_emitter_s::start

The beginning of the stack.

yaml_emitter_state_t* yaml_emitter_s::end

The end of the stack.

yaml_emitter_state_t* yaml_emitter_s::top

The top of the stack.

struct { ... } yaml_emitter_s::states

The stack of states.

yaml_emitter_state_t yaml_emitter_s::state

The current emitter state.

yaml_event_t* yaml_emitter_s::start

The beginning of the event queue.

yaml_event_t* yaml_emitter_s::end

The end of the event queue.

yaml_event_t* yaml_emitter_s::head

The head of the event queue.

yaml_event_t* yaml_emitter_s::tail

The tail of the event queue.

struct { ... } yaml_emitter_s::events

The event queue.

int* yaml_emitter_s::start

The beginning of the stack.

int* yaml_emitter_s::end

The end of the stack.

int* yaml_emitter_s::top

The top of the stack.

struct { ... } yaml_emitter_s::indents

The stack of indentation levels.

yaml_tag_directive_t* yaml_emitter_s::start

The beginning of the list.

yaml_tag_directive_t* yaml_emitter_s::end

The end of the list.

yaml_tag_directive_t* yaml_emitter_s::top

The top of the list.

struct { ... } yaml_emitter_s::tag_directives

The list of tag directives.

int yaml_emitter_s::indent

The current indentation level.

int yaml_emitter_s::flow_level

The current flow level.

int yaml_emitter_s::line

The current line.

int yaml_emitter_s::column

The current column.

yaml_char_t* yaml_emitter_s::anchor

The anchor value.

size_t yaml_emitter_s::anchor_length

The anchor length.

struct { ... } yaml_emitter_s::anchor_data

Anchor analysis.

yaml_char_t* yaml_emitter_s::handle

The tag handle.

size_t yaml_emitter_s::handle_length

The tag handle length.

yaml_char_t* yaml_emitter_s::suffix

The tag suffix.

size_t yaml_emitter_s::suffix_length

The tag suffix length.

struct { ... } yaml_emitter_s::tag_data

Tag analysis.

yaml_char_t* yaml_emitter_s::value

The scalar value.

size_t yaml_emitter_s::length

The scalar length.

yaml_scalar_style_t yaml_emitter_s::style

The output style.

struct { ... } yaml_emitter_s::scalar_data

Scalar analysis.

int yaml_emitter_s::references

The number of references.

int yaml_emitter_s::anchor

The anchor id.

struct { ... } * yaml_emitter_s::anchors

The information associated with the document nodes.

int yaml_emitter_s::last_anchor_id

The last assigned anchor id.

yaml_document_t* yaml_emitter_s::document

The currently emitted document.


The documentation for this struct was generated from the following file: