libzypp  17.38.7
zypp::xmlout Namespace Reference

Classes

class  Node
 RAII writing a nodes start/end tag. More...
 
class  NodeAttr
 (Key, Value) string pair of XML node attributes More...
 

Functions

template<class Tp >
std::string asXmlNodeAttr (const Tp &val_r)
 relates: NodeAttr NODE ATTRIBUTE representation of types [asString] More...
 
std::ostream & node (std::ostream &out_r, const std::string &name_r, const std::initializer_list< Node::Attr > &attrs_r={})
 relates: Node Write a leaf node without PCDATA More...
 
std::ostream & node (std::ostream &out_r, const std::string &name_r, Node::Attr attr_r)
 

Function Documentation

◆ asXmlNodeAttr()

template<class Tp >
std::string zypp::xmlout::asXmlNodeAttr ( const Tp &  val_r)

relates: NodeAttr NODE ATTRIBUTE representation of types [asString]

Definition at line 37 of file Xml.h.

◆ node() [1/2]

std::ostream& zypp::xmlout::node ( std::ostream &  out_r,
const std::string &  name_r,
const std::initializer_list< Node::Attr > &  attrs_r = {} 
)
inline

relates: Node Write a leaf node without PCDATA

<node attr="val"/>

Definition at line 198 of file Xml.h.

◆ node() [2/2]

std::ostream& zypp::xmlout::node ( std::ostream &  out_r,
const std::string &  name_r,
Node::Attr  attr_r 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 204 of file Xml.h.