Definition at line 218 of file ServerConnector.h. References Impala::Util::StringParser::GetDouble(), Impala::Util::StringParser::GetInt(), Impala::Util::StringParser::GetString(), mShotQueue, Impala::Application::Videolympics::ShotPacket::relevance, Impala::Application::Videolympics::ShotPacket::selectedByOthers, Impala::Application::Videolympics::ShotPacket::sequenceNo, Impala::Application::Videolympics::ShotPacket::shotName, Impala::Application::Videolympics::ShotPacket::shotNo, Impala::Application::Videolympics::ShotPacket::teamID, and Impala::Application::Videolympics::ShotPacket::timestamp. Referenced by Update(). 00219 { 00220 Util::StringParser p = Util::StringParser(input); 00221 while (1) 00222 { 00223 std::string oneline = p.GetString('\n', false); 00224 if (oneline.size() == 0) 00225 break; 00226 Util::StringParser line = Util::StringParser(oneline); 00227 ShotPacket *entry = new ShotPacket(); 00228 entry->timestamp = line.GetDouble(','); 00229 entry->sequenceNo = line.GetInt(','); 00230 entry->teamID = line.GetInt(','); 00231 entry->shotName = line.GetString(',', false); 00232 entry->shotNo = line.GetInt(','); 00233 entry->relevance = line.GetInt(','); 00234 entry->selectedByOthers = line.GetInt(','); 00235 mShotQueue.push(entry); 00236 00237 if (mShotQueue.size() > 100) 00238 mShotQueue.pop(); 00239 } 00240 }
Here is the call graph for this function:
|