14#ifndef __ABG_WRITER_H__
15#define __ABG_WRITER_H__
29 SEQUENCE_TYPE_ID_STYLE,
40 ostream& output_stream);
84template <
typename OPTS>
107 const unsigned indent,
111write_corpus_to_archive(
const corpus& corp,
113 const bool annotate =
false);
116write_corpus_to_archive(
const corpus& corp,
117 const bool annotate =
false);
120write_corpus_to_archive(
const corpus_sptr corp,
121 const bool annotate =
false);
125 const corpus_sptr&
corpus,
127 bool member_of_group =
false);
131 const corpus_group_sptr& group,
136#ifdef WITH_DEBUG_SELF_COMPARISON
138write_canonical_type_ids(xml_writer::write_context&, ostream&);
141write_canonical_type_ids(xml_writer::write_context&,
This is the abstraction of a set of translation units (themselves seen as bundles of unitary abi arte...
This is an abstraction of the set of resources necessary to manage several aspects of the internal re...
This is the abstraction of the set of relevant artefacts (types, variable declarations,...
The namespace of the internal representation of ABI artifacts like types and decls.
void set_write_undefined_symbols(write_context &ctxt, bool flag)
Set the 'undefined-symbols' flag.
void set_short_locs(write_context &ctxt, bool flag)
Set the 'short-locs' flag.
write_context_sptr create_write_context(const environment &env, ostream &default_output_stream)
Create a write_context object that can be used to emit abixml files.
void set_common_options(write_context &ctxt, const OPTS &opts)
A convenience generic function to set common options (usually used by Libabigail tools) from a generi...
void set_write_parameter_names(write_context &ctxt, bool flag)
Set the 'parameter-names' flag.
void set_ostream(write_context &ctxt, ostream &os)
Set the new ostream.
shared_ptr< write_context > write_context_sptr
A convenience typedef for a shared pointer to write_context.
bool write_corpus_group(write_context &ctxt, const corpus_group_sptr &group, unsigned indent)
Serialize an ABI corpus group to a single native xml document. The root note of the resulting XML doc...
void set_annotate(write_context &ctxt, bool flag)
Set the 'annotate' flag.
bool write_translation_unit(write_context &ctxt, const translation_unit &tu, const unsigned indent, bool is_last)
Serialize a translation unit to an output stream.
void set_write_default_sizes(write_context &ctxt, bool flag)
Set the 'default-sizes' flag.
void set_write_elf_needed(write_context &ctxt, bool flag)
Set the 'elf-needed' flag.
bool write_corpus(write_context &ctxt, const corpus_sptr &corpus, unsigned indent, bool member_of_group)
Serialize an ABI corpus to a single native xml document. The root note of the resulting XML document ...
void set_write_corpus_path(write_context &ctxt, bool flag)
Set the 'write-corpus-path' flag.
void set_write_architecture(write_context &ctxt, bool flag)
Set the 'write-architecture' flag.
type_id_style_kind
The style of type id the XML writer will output.
void set_show_locs(write_context &ctxt, bool flag)
Set the "show-locs" flag.
void set_type_id_style(write_context &ctxt, type_id_style_kind style)
Set the 'type-id-style' property.
void set_write_comp_dir(write_context &ctxt, bool flag)
Set the 'write-comp-dir' flag.
Toplevel namespace for libabigail.
Datum consolidating style preferences.