/[projects]/smsdaemon/plugins/TrainInfo.cpp
ViewVC logotype

Diff of /smsdaemon/plugins/TrainInfo.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 63 by torben, Wed Jun 11 12:15:14 2008 UTC revision 64 by torben, Thu Jun 12 12:47:32 2008 UTC
# Line 63  vector<TrainInfo> GetTrainInfo(string st Line 63  vector<TrainInfo> GetTrainInfo(string st
63    
64          string_nocase html = raw_doc.c_str();          string_nocase html = raw_doc.c_str();
65    
66          unsigned int pos =0; // = html.find("id='ankomsttabel'");          unsigned int pos =0;
67    
68            unsigned int ankomstpos = html.find("id='ankomsttabel'");
69    
70          while(1)          while(1)
71          {          {
# Line 73  vector<TrainInfo> GetTrainInfo(string st Line 75  vector<TrainInfo> GetTrainInfo(string st
75                  if (pos == string::npos)                  if (pos == string::npos)
76                          break;                          break;
77    
78                    if (pos > ankomstpos)
79                            break;
80    
81                  TrainInfo info;                  TrainInfo info;
82    
83                  int start = pos+16;                  int start = pos+16;

Legend:
Removed from v.63  
changed lines
  Added in v.64

  ViewVC Help
Powered by ViewVC 1.1.20