]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/track.h
Perform check_slope automatically with certain operations
[r2c2.git] / source / libr2c2 / track.h
index 7ad7dd141907d18d48ad382fb7d3b300e56f3eeb..13409d5e753a75b0b9345f6d072a621e75dc56e5 100644 (file)
@@ -59,8 +59,10 @@ public:
        void set_flex(bool);
        float get_slope() const { return slope; }
        bool get_flex() const { return flex; }
+private:
        void check_slope();
 
+public:
        void set_turnout_id(unsigned);
        void set_sensor_id(unsigned);
        unsigned get_turnout_id() const { return turnout_id; }