FACT++  1.0
int StateMachineMCP::HandleFtmStaticData ( const EventImp d)
inlineprivate

Definition at line 92 of file mcp.cc.

References DimStaticData(), EventImp::GetSize(), i, FTM::DimStaticData::IsActive(), and EventImp::Ref().

Referenced by StateMachineMCP().

93  {
94  if (d.GetSize()!=sizeof(FTM::DimStaticData))
95  return GetCurrentState();
96 
97  const FTM::DimStaticData &sdata = d.Ref<FTM::DimStaticData>();
98 
99  fNumConnectedFtu = 0;
100  for (int i=0; i<40; i++)
101  {
102  if (sdata.IsActive(i))
103  fNumConnectedFtu++;
104  }
105  return GetCurrentState();
106  }
int GetCurrentState() const
return the current state of the machine
int i
Definition: db_dim_client.c:21
bool IsActive(int i) const
Definition: HeadersFTM.h:429
uint16_t fNumConnectedFtu
Definition: mcp.cc:40
DimStaticData()
Definition: HeadersFTM.h:238
const T & Ref(size_t offset=0) const
Definition: EventImp.h:82
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: