23 if (not attributes.empty()) {
24 Attributes_t::const_iterator i{attributes.begin()};
25 const Attributes_t::const_iterator end{attributes.end()};
27 m_os <<
" " << i->first <<
"=\"" << i->second <<
"\"";
37 for (
unsigned int i{0}; i!=attributeNames.size(); ++i) {
38 m_os <<
" " << attributeNames[i] <<
"=\"" << attributeValues[i] <<
"\"";
50XmlStreamer::XmlStreamer(
const std::string& name,
const std::string& attributeName,
const std::string& attributeValue, std::ostream& os):
std::vector< std::string > NameValue_t
std::map< std::string, std::string > Attributes_t
static const Attributes_t empty
std::vector< std::string > m_attributeValues
IElementStreamer(const std::string &name, const std::map< std::string, std::string > &attributeMap, std::ostream &os=std::cout)
std::vector< std::string > m_attributeNames
XmlStreamer(const std::string &name, const std::map< std::string, std::string > &attributes, std::ostream &os=std::cout)