![]() |
zeep::xml::comment — A node containing a XML comment.
// In header: <zeep/xml/node.hpp> class comment : public zeep::xml::node_with_text { public: // construct/copy/destruct comment(); comment(comment &&); comment(const std::string &); // public member functions virtual bool equals(const node *) const; virtual node * clone() const; virtual node * move(); // protected member functions virtual void write(std::ostream &, format_info) const; };
comment
public
construct/copy/destructcomment();
comment(comment && c);
comment(const std::string & text);
comment
public member functionsvirtual bool equals(const node * n) const;compare nodes for equality
virtual node * clone() const;return an exact copy of this node, including all data in sub nodes
virtual node * move();
return a copy of this node, including all data in sub nodes, but in contrast with clone the data is moved from this node to the cloned node. This node will be empty afterwards.
comment
protected member functionsvirtual void write(std::ostream & os, format_info fmt) const;low level routine for writing out XML
This method is usually called by operator<<(std::ostream&, zeep::xml::document&)