FACT++  1.0
bool Status::Set ( const QDomNamedNodeMap &  map)

Definition at line 21 of file HeadersPower.cc.

References fDriveFeedbackOn, fDriveMainSwitchOn, fPwr24VOn, fPwrBiasOn, fPwrDriveOn, fPwrPumpOn, fWaterFlowOk, fWaterLevelOk, and Set().

22 {
23  if (!map.contains("id") || !map.contains("title"))
24  return false;
25 
26  QString item = map.namedItem("id").nodeValue();
27  QString value = map.namedItem("title").nodeValue();
28 
29  if (item==(QString("flow_meter")))
30  return Set(fWaterFlowOk, value);
31 
32  if (item==(QString("level")))
33  return Set(fWaterLevelOk, value);
34 
35  if (item==(QString("bias_power")))
36  return Set(fPwrBiasOn, value);
37 
38  if (item==(QString("power_24v")))
39  return Set(fPwr24VOn, value);
40 
41  if (item==(QString("pump")))
42  return Set(fPwrPumpOn, value);
43 
44  if (item==(QString("drive_power")))
45  return Set(fPwrDriveOn, value);
46 
47  if (item==(QString("drive_on")))
48  return Set(fDriveMainSwitchOn, value);
49 
50  if (item==(QString("drive_enable")))
51  return Set(fDriveFeedbackOn, value);
52 
53  return false;
54 }
bool fWaterLevelOk
Definition: HeadersPower.h:32
Definition: did.h:42
bool fDriveMainSwitchOn
Definition: HeadersPower.h:40
bool fDriveFeedbackOn
Definition: HeadersPower.h:41
bool Set(bool &rc, const QString &value)
Definition: HeadersPower.cc:15

+ Here is the call graph for this function: