IFD:Designing Networked Objects/César Felipe Daher: Difference between revisions

From Medien Wiki
Line 208: Line 208:


<pre>
<pre>
      //reassign new tweet and previous tweet  
//reassign new tweet and previous tweet  
      old_msg = search_msg;
    old_msg = search_msg;
      search_msg = std::string(text.c_str(), text.length());
    search_msg = std::string(text.c_str(), text.length());


//change indexes if there is a new tweet
//change indexes if there is a new tweet
     if (search_msg != old_msg){
     if (search_msg != old_msg){
    rowIndex(findDirVer(search_msg.c_str()));
        rowIndex(findDirVer(search_msg.c_str()));
    columnIndex(findDirHor(search_msg.c_str()));
        columnIndex(findDirHor(search_msg.c_str()));
     }
     }
</pre>
</pre>