Classes | |
class | XmlStream |
Functions | |
const XmlStream::Controller | prolog () |
const XmlStream::Controller | tag () |
const XmlStream::Controller | tag (const char *const tag_name) |
const XmlStream::Controller | tag (const std::string tag_name) |
const XmlStream::Controller | endtag () |
const XmlStream::Controller | endtag (const char *const tag_name) |
const XmlStream::Controller | endtag (const std::string tag_name) |
const XmlStream::Controller | attr (const char *const attr_name) |
const XmlStream::Controller | attr (const std::string attr_name) |
const XmlStream::Controller | chardata () |
template<class X> | |
void | save (const std::string &filename, const X obj) |
save contents of object obj to a file with name filename as xml |
void BSUtilities::xmlw::save | ( | const std::string & | filename, | |
const X | obj | |||
) | [inline] |
save contents of object obj to a file with name filename as xml
added by BS; generates a stream from the filename, calls the objects save function (which does the actual writing) and then closes the stream. If the stream can not be generated, the function does nothing. X can be any type that defines a save member function taking an XmlStream as an argument. Note: can not be used to store more than obj contents into the file!
Definition at line 259 of file xmlwriter.h.
References prolog().