Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-desc.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef SEEN_SP_DESC_H
3#define SEEN_SP_DESC_H
4
5/*
6 * SVG <desc> implementation
7 *
8 * Authors:
9 * Jeff Schiller <codedread@gmail.com>
10 *
11 * Copyright (C) 2008 Jeff Schiller
12 *
13 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
14 */
15
16#include "sp-object.h"
17
18class SPDesc final : public SPObject {
19public:
20 SPDesc();
21 ~SPDesc() override;
22 int tag() const override { return tag_of<decltype(*this)>; }
23
24protected:
25 Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags) override;
26};
27
28#endif
constexpr int tag_of
Convenience function to retrieve the tag (class id) of a given type.
Definition cast.h:26
Interface for refcounted XML nodes.
Definition node.h:80
~SPDesc() override
int tag() const override
Definition sp-desc.h:22
SPDesc()
Definition sp-desc.cpp:17
Inkscape::XML::Node * write(Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, unsigned int flags) override
Writes it's settings to an incoming repr object, if any.
Definition sp-desc.cpp:25
SPObject is an abstract base class of all of the document nodes at the SVG document level.
Definition sp-object.h:160
Inkscape::XML::Node * repr
Definition sp-object.h:193
Interface for XML documents.
Definition document.h:43