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

Definition at line 2220 of file drivectrl.cc.

References Error(), EventImp::GetData(), EventImp::GetSize(), and Dim::SendCommandNB().

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

2221  {
2222  if (evt.GetSize()<2)
2223  {
2224  ostringstream msg;
2225  msg << "Screenshot - Received event has " << evt.GetSize() << " bytes, but expected at least 2.";
2226  T::Fatal(msg);
2227  return T::kSM_FatalError;
2228  }
2229 
2230  if (evt.GetSize()==2)
2231  {
2232  ostringstream msg;
2233  msg << "Screenshot - Filename missing.";
2234  T::Error(msg);
2235  return T::GetCurrentState();
2236  }
2237 
2238  T::Info("Screenshot initiated.");
2239  Dim::SendCommandNB("TPOINT/SCREENSHOT", evt.GetData(), evt.GetSize());
2240  return T::GetCurrentState();
2241  }
void SendCommandNB(const std::string &command)
Definition: Dim.h:30
Error()
Definition: HeadersFTM.h:197
virtual const void * GetData() const
Definition: EventImp.h:54
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: