]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/route.h
Mark generated routes as temporary and don't show or save them
[r2c2.git] / source / libmarklin / route.h
index 89788e3b62b477fc945229a96f4e1ede0ecbfc7f..010bb873c8e0971ae0a8022677df26b001b04a7a 100644 (file)
@@ -33,6 +33,7 @@ public:
 private:
        Layout &layout;
        std::string name;
+       bool temporary;
        std::set<const Track *> tracks;
        std::map<unsigned, int> turnouts;
 
@@ -41,6 +42,8 @@ public:
        ~Route();
 
        const std::string &get_name() const { return name; }
+       void set_temporary(bool);
+       bool is_temporary() const { return temporary; }
        int get_turnout(unsigned) const;
        const std::map<unsigned, int> &get_turnouts() const { return turnouts; }
        void add_track(const Track &);