IBR-DTNSuite
0.12
|
#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 int 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 30 of file XMLStreamWriter.h.
ibrcommon::XMLStreamWriter::XMLStreamWriter | ( | std::ostream & | stream) |
Definition at line 40 of file XMLStreamWriter.cpp.
References __close_callback(), and __write_callback().
|
virtual |
Definition at line 47 of file XMLStreamWriter.cpp.
|
static |
Definition at line 34 of file XMLStreamWriter.cpp.
Referenced by XMLStreamWriter().
|
static |
Definition at line 27 of file XMLStreamWriter.cpp.
Referenced by XMLStreamWriter().
void ibrcommon::XMLStreamWriter::addAttribute | ( | const std::string & | name, |
const std::string & | value | ||
) |
Definition at line 73 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::addComment | ( | const std::string & | comment) |
Definition at line 80 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::addData | ( | const std::string & | data) |
Definition at line 96 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::addData | ( | const char * | data, |
const int | len | ||
) |
Definition at line 104 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::endDocument | ( | ) |
Definition at line 59 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::endElement | ( | ) |
Definition at line 88 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::startDocument | ( | const char * | encoding) |
Definition at line 52 of file XMLStreamWriter.cpp.
void ibrcommon::XMLStreamWriter::startElement | ( | const std::string & | name) |
Definition at line 66 of file XMLStreamWriter.cpp.