FACT++  1.0
template<class T , class S >
int StateMachineFTM< T, S >::LoadStaticData ( const EventImp evt)
inlineprivate

Definition at line 1602 of file ftmctrl.cc.

References EventImp::GetString(), and StaticData().

Referenced by StateMachineFTM< T, S >::StateMachineFTM().

1603  {
1604  if (fFTM.LoadStaticData(evt.GetString()))
1605  return T::GetCurrentState();
1606 
1607  ostringstream msg;
1608  msg << "Loading static data from file '" << evt.GetString() << "' failed ";
1609 
1610  if (errno)
1611  msg << "(" << strerror(errno) << ")";
1612  else
1613  msg << "(wrong size, expected " << sizeof(FTM::StaticData) << " bytes)";
1614 
1615  T::Warn(msg);
1616 
1617  return T::GetCurrentState();
1618  }
std::string GetString() const
Definition: EventImp.cc:194
StaticData()
Definition: HeadersFTM.h:245

+ Here is the call graph for this function:

+ Here is the caller graph for this function: