summaryrefslogtreecommitdiffstats
path: root/src/Data/Gate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/Gate.h')
-rw-r--r--src/Data/Gate.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Data/Gate.h b/src/Data/Gate.h
index 91acbce..b1cde71 100644
--- a/src/Data/Gate.h
+++ b/src/Data/Gate.h
@@ -31,6 +31,7 @@ class Gate {
std::list<Triangle> triangles;
xmlpp::Element *gateNode;
+ Glib::ustring id;
Glib::ustring room1, room2;
public:
@@ -40,6 +41,15 @@ class Gate {
return triangles;
}
+ const Glib::ustring& getId() const {
+ return id;
+ }
+
+ void setId(const Glib::ustring &id0) {
+ id = id0;
+ gateNode->set_attribute("id", id0);
+ }
+
const Glib::ustring& getRoom1() const {
return room1;
}
@@ -57,6 +67,10 @@ class Gate {
room2 = room;
gateNode->set_attribute("room2", room);
}
+
+ xmlpp::Element* getNode() const {
+ return gateNode;
+ }
};
}