FACT++  1.0
string EventImp::GetString ( ) const
Returns
the event data converted to a std::string. Trailing redundant \0's are removed.
Examples:
chatserv.cc.

Definition at line 194 of file EventImp.cc.

References GetSize(), and GetText().

Referenced by StateMachineBias< T, S >::ExpertLoadMapFile(), GetVector(), DimDescribedState::HandleDesc(), ChatServer::HandleMsg(), SkypeClient::HandleMsg(), DimLoggerCheck::Handler(), SkypeClient::HandleRaw(), DimState::HandlerImp(), DimDnsServerList::HandlerServerImp(), DimDnsServiceList::HandlerServiceListImp(), DimDescriptions::HandleServiceDesc(), StateMachineDimControl::InterruptScript(), StateMachineFTM< T, S >::LoadStaticData(), StateMachinePFminiControl< T, S >::Reconnect(), StateMachineSQMControl< T, S >::Reconnect(), StateMachineAgilent< T, S >::Reconnect(), StateMachineGPSControl< T, S >::Reconnect(), StateMachineGCN< T, S >::Reconnect(), StateMachineFSC< T, S >::Reconnect(), StateMachineDrive< T, S >::Reconnect(), StateMachineBias< T, S >::Reconnect(), StateMachineFTM< T, S >::Reconnect(), StateMachineFTM< T, S >::SaveStaticData(), StateMachineSQMControl< T, S >::SendCommand(), StateMachineGPSControl< T, S >::SendCommand(), StateMachineDimControl::StartScript(), and StateMachineDimControl::StopScript().

195 {
196  size_t s = GetSize()-1;
197  while (s>0 && GetText()[s]==0)
198  s--;
199 
200  return std::string(GetText(), s+1);
201 }
const char * GetText() const
Definition: EventImp.h:88
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: