summaryrefslogtreecommitdiff
path: root/cesar/maximus/system/inc/Station.h
diff options
context:
space:
mode:
authorCeline Buret2011-11-09 17:37:34 +0100
committerCeline Buret2012-01-13 11:22:49 +0100
commit82368c7168e9e5905783a77a6f3eb8b26cea69af (patch)
tree4a730c3b8fc0a823cfc6983d07e739db49f26d3c /cesar/maximus/system/inc/Station.h
parent491d39acf1376722ee1e250ce03af5204f19d983 (diff)
cesar/maximus: add possibility to hide stations on simulated PLC link, refs #2826
Diffstat (limited to 'cesar/maximus/system/inc/Station.h')
-rw-r--r--cesar/maximus/system/inc/Station.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/cesar/maximus/system/inc/Station.h b/cesar/maximus/system/inc/Station.h
index 1f1b48b69c..14b5ea8cf9 100644
--- a/cesar/maximus/system/inc/Station.h
+++ b/cesar/maximus/system/inc/Station.h
@@ -38,6 +38,7 @@ The original location of this file is /home/buret/eclipse/maximus/system/inc/Sta
#include <exception>
#include <string>
#include <iostream> // for 'cout', 'cerr', 'clog' and 'pid_t'
+#include <set>
#define STATION_PIPE_PATH "/tmp"
#define STATION_PIPE_PREFIX "station"
@@ -49,6 +50,8 @@ The original location of this file is /home/buret/eclipse/maximus/system/inc/Sta
class StationConfiguration;
+typedef std::set<Sci_Msg_Station_Id> HiddenStationsList;
+
/**
* class Station
@@ -73,6 +76,7 @@ private:
Station_Status mStationStatus;
unsigned short int mStationIdleCounter;
StationConfiguration * mpStationConfiguration;
+ HiddenStationsList mHiddenStationsList;
protected:
@@ -200,6 +204,23 @@ public:
*/
bool setStationName ( const std::string & station_name );
+ /**
+ * @return reference to mHiddenStations
+ */
+ inline const HiddenStationsList & getHiddenStationsList ( ) const { return mHiddenStationsList; }
+
+ /**
+ * @param hidden_stations_list to set into mHiddenStations
+ */
+ bool setHiddenStationsList (const HiddenStationsList & hidden_stations_list);
+
+ /**
+ * @return bool
+ * @param station_id the ID of the station to hide or to make visible
+ * @param hidden indicates if the station has to be hidden or visible
+ */
+ bool hideStation (Sci_Msg_Station_Id station_id, bool hidden);
+
// protected attribute accessor methods
//