00001 #ifndef SCT_CALIBRATIONCONTROL_TXCURRENTCONFIGUPDATER_H 00002 #define SCT_CALIBRATIONCONTROL_TXCURRENTCONFIGUPDATER_H 00003 00004 #include "ConfigUpdater.h" 00005 00006 namespace SctCalibrationController { 00007 00008 class TxCurrentConfigUpdater : public ConfigUpdater{ 00009 private: 00010 static void updateUsing(const int threshold, 00011 const unsigned int linkNumber, 00012 Sct_SctApi::SctApiIPC_ptr api, 00013 const unsigned long mid, 00014 const std::string & name); 00015 static void complainIf(const int threshold, 00016 const unsigned int linkNumber, 00017 const unsigned long mid, 00018 const std::string & name, 00019 const int otherMin, 00020 const int otherMax); 00021 public: 00022 virtual void update(const SctData::TestResult& t, Sct_SctApi::SctApiIPC_ptr api) const; 00023 00024 private: 00025 TxCurrentConfigUpdater() {;} 00026 static bool inMap; 00027 }; 00028 } 00029 00030 #endif //SCT_CALIBRATIONCONTROL_TXCURRENTCONFIGUPDATER_H