Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

attribute-record.h

#ifndef SEEN_XML_SP_REPR_ATTR_H
#define SEEN_XML_SP_REPR_ATTR_H

#include <glib/gquark.h>
#include <glib/gtypes.h>
#include "gc-managed.h"
#include "util/shared-c-string-ptr.h"

#define SP_REPR_ATTRIBUTE_KEY(a) g_quark_to_string((a)->key)
#define SP_REPR_ATTRIBUTE_VALUE(a) ((a)->value)

namespace Inkscape {
namespace XML {

struct AttributeRecord : public Inkscape::GC::Managed<> {
    AttributeRecord(GQuark k, Inkscape::Util::SharedCStringPtr v)
    : key(k), value(v) {}

    GQuark key;
    Inkscape::Util::SharedCStringPtr value;

    // accept default copy constructor and assignment operator
};

}
}

#endif /* !SEEN_XML_SP_REPR_ATTR_H */

/*
  Local Variables:
  mode:c++
  c-file-style:"stroustrup"
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
  indent-tabs-mode:nil
  fill-column:99
  End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :

Generated by  Doxygen 1.6.0   Back to index