abbr works only on full words; changes on nodes don't work
[osm-helpers.git] / RelationMember.cs
blob8c9137d9630e3a6df9eaa32ac2c143bbd0603ae4
1 /*
2 * Author: Paolo Molaro
3 * Copyright (c) 2008 Paolo Molaro lupus@oddwiz.org
4 * License: MIT/X11, see the MIT.X11 file.
5 */
6 using System;
7 using System.Collections.Specialized;
9 namespace OpenStreetMap {
11 public sealed class RelationMember {
12 readonly Relation parent;
13 string role;
14 string type;
15 long refid;
17 public RelationMember (Relation rel, string type, string role, long refid)
19 parent = rel;
20 this.type = type;
21 this.role = role;
22 this.refid = refid;
25 public long Ref {
26 get {
27 return refid;
29 set {
30 refid = value;
31 parent.Changed = true;
35 public string Role {
36 get {
37 return role;
39 set {
40 role = value;
41 parent.Changed = true;
45 public string Type {
46 get {
47 return type;
49 set {
50 type = value;
51 parent.Changed = true;