IBR-DTNSuite
0.8
|
#include <XMLStreamWriter.h>
Public Member Functions | |
XMLStreamWriter (std::ostream &stream) | |
virtual | ~XMLStreamWriter () |
void | startDocument (const char *encoding) |
void | endDocument () |
void | startElement (const std::string &name) |
void | addAttribute (const std::string &name, const std::string &value) |
void | addComment (const std::string &comment) |
void | endElement () |
void | addData (const std::string &data) |
void | addData (const char *data, const size_t len) |
Static Public Member Functions | |
static int | __write_callback (void *context, const char *buffer, int len) |
static int | __close_callback (void *context) |
Definition at line 16 of file XMLStreamWriter.h.
ibrcommon::XMLStreamWriter::XMLStreamWriter | ( | std::ostream & | stream | ) |
Definition at line 26 of file XMLStreamWriter.cpp.
References __close_callback(), and __write_callback().
ibrcommon::XMLStreamWriter::~XMLStreamWriter | ( | ) | [virtual] |
Definition at line 33 of file XMLStreamWriter.cpp.
int ibrcommon::XMLStreamWriter::__close_callback | ( | void * | context | ) | [static] |
Definition at line 20 of file XMLStreamWriter.cpp.
Referenced by XMLStreamWriter().
int ibrcommon::XMLStreamWriter::__write_callback | ( | void * | context, |
const char * | buffer, | ||
int | len | ||
) | [static] |
Definition at line 13 of file XMLStreamWriter.cpp.
Referenced by XMLStreamWriter().
void ibrcommon::XMLStreamWriter::addAttribute | ( | const std::string & | name, |
const std::string & | value | ||
) |
Definition at line 59 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::addComment | ( | const std::string & | comment | ) |
Definition at line 66 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::addData | ( | const std::string & | data | ) |
Definition at line 82 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::addData | ( | const char * | data, |
const size_t | len | ||
) |
Definition at line 90 of file XMLStreamWriter.cpp.
Definition at line 45 of file XMLStreamWriter.cpp.
Definition at line 74 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::startDocument | ( | const char * | encoding | ) |
Definition at line 38 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::startElement | ( | const std::string & | name | ) |
Definition at line 52 of file XMLStreamWriter.cpp.