FACT++  1.0
void DimState::HandlerImp ( const EventImp evt)
inlineprotected

Definition at line 29 of file DimState.h.

References cur, EventImp::GetQoS(), EventImp::GetSize(), EventImp::GetString(), EventImp::GetTime(), kOffline, last, and msg.

Referenced by Handler(), DimVersion::Handler(), and DimControl::Handler().

30  {
31  const bool disconnected = evt.GetSize()==0;
32 
33  last = cur;
34  cur = std::make_pair(evt.GetTime(), disconnected ? kOffline : evt.GetQoS());
35 
36  msg = disconnected ? "" : evt.GetString();
37  }
std::pair< Time, int32_t > last
Definition: DimState.h:64
std::string GetString() const
Definition: EventImp.cc:194
virtual Time GetTime() const
Definition: EventImp.h:57
virtual int GetQoS() const
Definition: EventImp.h:58
std::pair< Time, int32_t > cur
Definition: DimState.h:65
std::string msg
Definition: DimState.h:66
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: