152{
153 std::cout << " in handle() " << std::endl;
154
155
156
158
159 std::cout << "Aborting due to null VP1Gui pointer." << std::endl;
160 return;
161 }
162
163 std::vector<std::string> vect;
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
182 std::string strNewFileName =
m_vp1gui->nextRequestedEventFile();
183
184 if (strNewFileName.empty())
185 return;
187
188 cout << " File requested by VP1 does not exists or is not readable: "<<strNewFileName<<". Ending." << endl;
189 return;
190 }
191
192 vect.push_back(strNewFileName);
193
194 cout << " Setting next event file: " << strNewFileName<< endl;
195 }
196 else {
197 std::vector<std::string> strNewFileNames =
m_vp1gui->userRequestedFiles();
198 for(
unsigned i=0;
i<strNewFileNames.size(); ++
i) {
199 const std::string& strNewFileName = strNewFileNames[
i];
200 if (strNewFileName.empty())
201 continue;
203
204 cout << " File requested by VP1 does not exists or is not readable: " << strNewFileName << endl;
205 continue;
206 }
207 vect.push_back(strNewFileName);
208
209 cout << " Setting next event file: " << strNewFileName<< endl;
210 }
211 }
212
213
214
215
216
217
218
219}
static bool fileExistsAndReadable(const std::string &)