Ipelib
|
#include <ipexml.h>
Public Types | |
typedef Map::const_iterator | const_iterator |
Public Member Functions | |
const_iterator | begin () const |
const_iterator | end () const |
XmlAttributes () | |
void | clear () |
String | operator[] (String str) const |
bool | has (String str) const |
bool | has (String str, String &val) const |
void | add (String key, String val) |
void | setSlash () |
bool | slash () const |
Stores attributes of an XML tag.
typedef Map::const_iterator ipe::XmlAttributes::const_iterator |
Iterator for (key, value) pairs.
XmlAttributes::XmlAttributes | ( | ) |
Constructor for an empty collection.
|
inline |
Return const iterator for first attribute.
|
inline |
Return const iterator for end of attributes.
void XmlAttributes::clear | ( | ) |
Remove all attributes.
Referenced by ipe::XmlParser::parseAttributes().
Return attribute with given key.
Returns an empty string if no attribute with this key exists.
bool XmlAttributes::has | ( | String | str | ) | const |
Check whether attribute exists.
Referenced by ipe::Group::Group(), ipe::Object::Object(), ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseDocument(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parseStyle(), ipe::ImlParser::parseView(), ipe::Reference::Reference(), and ipe::Text::Text().
Check whether attribute exists, set val
if so.
Add a new attribute.
Referenced by ipe::XmlParser::parseAttributes().
|
inline |
Set that the tag contains the final /.
Referenced by ipe::XmlParser::parseAttributes().
|
inline |
Return whether tag contains the final /.
Referenced by ipe::ImlParser::parseBitmap(), ipe::ImlParser::parseObject(), ipe::ImlParser::parsePage(), ipe::ImlParser::parseStyle(), and ipe::ImlParser::parseView().