openMSX
|
#include <XMLElement.hh>
Public Member Functions | |
template<typename ... Args> | |
XMLDocument (Args &&...args) | |
void | load (const std::string &filename, std::string_view systemID) |
const XMLElement * | getRoot () const |
void | setRoot (XMLElement *root_) |
XMLElement * | allocateElement (const char *name) |
XMLElement * | allocateElement (const char *name, const char *data) |
XMLAttribute * | allocateAttribute (const char *name, const char *value) |
const char * | allocateString (std::string_view str) |
XMLElement * | getOrCreateChild (XMLElement &parent, const char *childName, const char *childData) |
XMLElement * | setChildData (XMLElement &parent, const char *childName, const char *childData) |
void | setAttribute (XMLElement &elem, const char *attrName, const char *attrValue) |
template<typename Range , typename UnaryOp > | |
void | generateList (XMLElement &parent, const char *itemName, Range &&range, UnaryOp op) |
void | load (OldXMLElement &elem) |
void | serialize (MemInputArchive &ar, unsigned version) |
void | serialize (MemOutputArchive &ar, unsigned version) |
void | serialize (XmlInputArchive &ar, unsigned version) |
void | serialize (XmlOutputArchive &ar, unsigned version) |
Static Public Member Functions | |
static XMLDocument & | getStaticDocument () |
Friends | |
class | XMLDocumentHandler |
Definition at line 250 of file XMLElement.hh.
|
inline |
Definition at line 263 of file XMLElement.hh.
XMLAttribute * openmsx::XMLDocument::allocateAttribute | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 305 of file XMLElement.cc.
References monotonic_allocator::allocate().
Referenced by openmsx::XMLDocumentHandler::attribute(), openmsx::HardwareConfig::createRomConfig(), and setAttribute().
XMLElement * openmsx::XMLDocument::allocateElement | ( | const char * | name | ) |
Definition at line 293 of file XMLElement.cc.
References monotonic_allocator::allocate().
Referenced by openmsx::HardwareConfig::createRomConfig(), generateList(), getOrCreateChild(), setChildData(), and openmsx::XMLDocumentHandler::start().
XMLElement * openmsx::XMLDocument::allocateElement | ( | const char * | name, |
const char * | data | ||
) |
Definition at line 299 of file XMLElement.cc.
References monotonic_allocator::allocate().
const char * openmsx::XMLDocument::allocateString | ( | std::string_view | str | ) |
Definition at line 311 of file XMLElement.cc.
References monotonic_allocator::allocate(), ranges::copy(), and Math::e.
Referenced by openmsx::HardwareConfig::createRomConfig(), and openmsx::HardwareConfig::parseSlots().
|
inline |
Definition at line 282 of file XMLElement.hh.
References allocateElement().
Referenced by openmsx::HardwareConfig::createRomConfig().
XMLElement * openmsx::XMLDocument::getOrCreateChild | ( | XMLElement & | parent, |
const char * | childName, | ||
const char * | childData | ||
) |
Definition at line 170 of file XMLElement.cc.
References allocateElement().
|
inline |
Definition at line 269 of file XMLElement.hh.
Referenced by openmsx::HardwareConfig::getConfig(), and openmsx::XmlInputArchive::XmlInputArchive().
|
inlinestatic |
Definition at line 255 of file XMLElement.hh.
Referenced by openmsx::CassettePlayer::CassettePlayer().
void openmsx::XMLDocument::load | ( | const std::string & | filename, |
std::string_view | systemID | ||
) |
Definition at line 319 of file XMLElement.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data(), Math::e, rapidsax::EXTRA_BUFFER_SPACE, openmsx::File::getSize(), openmsx::XMLDocumentHandler::getSystemID(), openmsx::File::read(), openmsx::MemBuffer< T, ALIGNMENT >::resize(), and utf8::unchecked::size().
Referenced by openmsx::HardwareConfig::serialize(), and openmsx::XmlInputArchive::XmlInputArchive().
void openmsx::XMLDocument::load | ( | OldXMLElement & | elem | ) |
Definition at line 511 of file XMLElement.cc.
void openmsx::XMLDocument::serialize | ( | MemInputArchive & | ar, |
unsigned | version | ||
) |
Definition at line 388 of file XMLElement.cc.
void openmsx::XMLDocument::serialize | ( | MemOutputArchive & | ar, |
unsigned | version | ||
) |
Definition at line 414 of file XMLElement.cc.
References openmsx::MemOutputArchive::save().
void openmsx::XMLDocument::serialize | ( | XmlInputArchive & | ar, |
unsigned | version | ||
) |
Definition at line 451 of file XMLElement.cc.
References openmsx::XmlInputArchive::currentElement(), and openmsx::XMLElement::getFirstChild().
void openmsx::XMLDocument::serialize | ( | XmlOutputArchive & | ar, |
unsigned | version | ||
) |
Definition at line 476 of file XMLElement.cc.
References openmsx::XmlOutputArchive::getXMLOutputStream().
void openmsx::XMLDocument::setAttribute | ( | XMLElement & | elem, |
const char * | attrName, | ||
const char * | attrValue | ||
) |
Definition at line 209 of file XMLElement.cc.
References allocateAttribute().
XMLElement * openmsx::XMLDocument::setChildData | ( | XMLElement & | parent, |
const char * | childName, | ||
const char * | childData | ||
) |
Definition at line 189 of file XMLElement.cc.
References allocateElement().
|
inline |
Definition at line 270 of file XMLElement.hh.
|
friend |
Definition at line 312 of file XMLElement.hh.