summaryrefslogtreecommitdiffstats
path: root/src/xml/attribute-record.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2008-09-23 23:34:58 +0000
committertweenk <tweenk@users.sourceforge.net>2008-09-23 23:34:58 +0000
commit3547b1082098934d583f2c483c8eb5a59e9c2bbb (patch)
treed62ab547cdc178ec6d4028d27aa6ba75714168c7 /src/xml/attribute-record.h
parentadd a path parameter to doeffect_stack_test to test a bug + fix a stupid erro... (diff)
downloadinkscape-3547b1082098934d583f2c483c8eb5a59e9c2bbb.tar.gz
inkscape-3547b1082098934d583f2c483c8eb5a59e9c2bbb.zip
* Lots of documentation for the Inkscape::XML namespace
* Doxygen fixes for a few files * Garbage-collected allocator for STL containers (bzr r6877)
Diffstat (limited to 'src/xml/attribute-record.h')
-rw-r--r--src/xml/attribute-record.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xml/attribute-record.h b/src/xml/attribute-record.h
index bfae19e21..bab0b5aa4 100644
--- a/src/xml/attribute-record.h
+++ b/src/xml/attribute-record.h
@@ -1,3 +1,7 @@
+/** @file
+ * @brief Key-value pair representing an attribute
+ */
+
#ifndef SEEN_XML_SP_REPR_ATTR_H
#define SEEN_XML_SP_REPR_ATTR_H
@@ -12,11 +16,19 @@
namespace Inkscape {
namespace XML {
+/**
+ * @brief Key-value pair representing an attribute
+ *
+ * Internally, the attributes of each node in the XML tree are
+ * represented by this structure.
+ */
struct AttributeRecord : public Inkscape::GC::Managed<> {
AttributeRecord(GQuark k, Inkscape::Util::ptr_shared<char> v)
: key(k), value(v) {}
+ /** @brief GQuark corresponding to the name of the attribute */
GQuark key;
+ /** @brief Shared pointer to the value of the attribute */
Inkscape::Util::ptr_shared<char> value;
// accept default copy constructor and assignment operator