node.h revision a0eb36b7bc681acf005593034da663d0befc4d29
/*
* Node - interface for XML nodes
*
* Copyright 2005 MenTaLguY <mental@rydia.net>
*
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* See the file COPYING for details.
*
*/
#ifndef SEEN_INKSCAPE_XML_NODE_H
#define SEEN_INKSCAPE_XML_NODE_H
#include "gc-anchored.h"
enum NodeType {
};
// careful; GC::Anchored should only appear once in the inheritance
// hierarcy; else there will be leaks
Node() {}
virtual unsigned childCount() const=0;
public: // ideally these should be protected too somehow...
virtual unsigned _cachedPosition() const=0;
};
}
}
#endif
/*
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:encoding=utf-8:textwidth=99 :