simple-event.h revision 6b15695578f07a3f72c4c9475c1a261a3021472a
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm/*
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm * Inkscape::Debug::SimpleEvent - trivial implementation of Debug::Event
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm *
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm * Authors:
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm * MenTaLguY <mental@rydia.net>
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm *
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm * Copyright (C) 2005 MenTaLguY
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm *
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm * Released under GNU GPL, read the file 'COPYING' for more information
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm */
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm#ifndef SEEN_INKSCAPE_DEBUG_SIMPLE_EVENT_H
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm#define SEEN_INKSCAPE_DEBUG_SIMPLE_EVENT_H
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm#include "debug/event.h"
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrmnamespace Inkscape {
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrmnamespace Debug {
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrmtemplate <Event::Category C=Event::OTHER>
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrmclass SimpleEvent : public Event {
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrmpublic:
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm SimpleEvent(Util::SharedCStringPtr name) : _name(name) {}
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm SimpleEvent(char const *name) : _name(Util::SharedCStringPtr::copy(name)) {}
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm static Category category() { return C; }
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm Util::SharedCStringPtr name() const { return _name; }
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm unsigned propertyCount() const { return 0; }
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm PropertyPair property(unsigned property) const { return PropertyPair(); }
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrmprivate:
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm Util::SharedCStringPtr _name;
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm};
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm}
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm}
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm#endif
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm/*
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm Local Variables:
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm mode:c++
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm c-file-style:"stroustrup"
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm indent-tabs-mode:nil
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm fill-column:99
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm End:
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm*/
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
da58597f9f9ecb17c4f545c4483a844a363bcc27pjrm