1 #ifndef SEEN_SP_GUIDE_ATTACHMENT_H
2 #define SEEN_SP_GUIDE_ATTACHMENT_H
4 #include <forward.h>
5 #include "sp-item.h"
7 class SPGuideAttachment {
8 public:
9 SPItem *item;
10 int snappoint_ix;
12 public:
13 SPGuideAttachment() :
14 item(static_cast<SPItem *>(0))
15 { }
17 SPGuideAttachment(SPItem *i, int s) :
18 item(i),
19 snappoint_ix(s)
20 { }
22 bool operator==(SPGuideAttachment const &o) const {
23 return ( ( item == o.item )
24 && ( snappoint_ix == o.snappoint_ix ) );
25 }
27 bool operator!=(SPGuideAttachment const &o) const {
28 return !(*this == o);
29 }
30 };
32 #endif // SEEN_SP_GUIDE_ATTACHMENT_H
34 /*
35 Local Variables:
36 mode:c++
37 c-file-style:"stroustrup"
38 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
39 indent-tabs-mode:nil
40 fill-column:99
41 End:
42 */
43 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :