22#ifndef ASTSHIM_XMLCHAN_H
23#define ASTSHIM_XMLCHAN_H
59 :
Channel(reinterpret_cast<AstChannel *>(
60 astXmlChan(detail::source, detail::sink,
"%s", options.c_str())),
Channel provides input/output of AST objects.
std::string const getC(std::string const &attrib) const
Get the value of an attribute as a string.
void setI(std::string const &attrib, int value)
Set the value of an attribute as an int.
int getI(std::string const &attrib) const
Get the value of an attribute as an int.
void setC(std::string const &attrib, std::string const &value)
Set the value of an attribute as a string.
A stream for ast::Channel.
XmlChan provides input/output of AST objects.
XmlChan(XmlChan &&)=default
int getXmlLength() const
Get XmlLength: controls output buffer length.
std::string getXmlPrefix()
Get XmlPrefix: the namespace prefix to use when writing.
std::string getXmlFormat() const
Get XmlFormat System for formatting Objects as XML.
void setXmlLength(int len)
Set XmlLength: controls output buffer length; 0 for no limit.
void setXmlFormat(std::string const &format)
Set XmlFormat System for formatting Objects as XML.
XmlChan(Stream &stream, std::string const &options="")
Construct a channel that uses a provided Stream.
XmlChan & operator=(XmlChan &&)=default
XmlChan & operator=(XmlChan const &)=delete
void setXmlPrefix(std::string const &prefix)
Set XmlPrefix: the namespace prefix to use when writing.
XmlChan(XmlChan const &)=delete
AST wrapper classes and functions.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.