14 #ifndef __ABG_WRITER_H__
15 #define __ABG_WRITER_H__
29 SEQUENCE_TYPE_ID_STYLE,
40 ostream& output_stream);
84 template <
typename OPTS>
107 const unsigned indent,
111 write_corpus_to_archive(
const corpus& corp,
113 const bool annotate =
false);
116 write_corpus_to_archive(
const corpus& corp,
117 const bool annotate =
false);
120 write_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
138 write_canonical_type_ids(xml_writer::write_context&, ostream&);
141 write_canonical_type_ids(xml_writer::write_context&,
147 #endif // __ABG_WRITER_H__
void set_write_comp_dir(write_context &ctxt, bool flag)
Set the 'write-comp-dir' flag.
void set_show_locs(write_context &ctxt, bool flag)
Set the "show-locs" flag.
void set_annotate(write_context &ctxt, bool flag)
Set the 'annotate' flag.
void set_write_elf_needed(write_context &ctxt, bool flag)
Set the 'elf-needed' flag.
type_id_style_kind
The style of type id the XML writer will output.
This is the abstraction of a set of translation units (themselves seen as bundles of unitary abi arte...
void set_ostream(write_context &ctxt, ostream &os)
Set the new ostream.
This is the abstraction of the set of relevant artefacts (types, variable declarations, functions, templates, etc) bundled together into a translation unit.
Datum consolidating style preferences.
void set_write_architecture(write_context &ctxt, bool flag)
Set the 'write-architecture' flag.
shared_ptr< write_context > write_context_sptr
A convenience typedef for a shared pointer to write_context.
Toplevel namespace for libabigail.
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...
This is an abstraction of the set of resources necessary to manage several aspects of the internal re...
void set_write_corpus_path(write_context &ctxt, bool flag)
Set the 'write-corpus-path' flag.
void set_type_id_style(write_context &ctxt, type_id_style_kind style)
Set the 'type-id-style' property.
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_short_locs(write_context &ctxt, bool flag)
Set the 'short-locs' flag.
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_write_parameter_names(write_context &ctxt, bool flag)
Set the 'parameter-names' flag.
void set_write_default_sizes(write_context &ctxt, bool flag)
Set the 'default-sizes' flag.
void set_write_undefined_symbols(write_context &ctxt, bool flag)
Set the 'undefined-symbols' flag.
The namespace of the internal representation of ABI artifacts like types and decls.
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 ...
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.