| 349 | |
| 350 | |
| 351 | void |
| 352 | PrintFiles(OPS_Stream &s, File *theFile) |
| 353 | { |
| 354 | |
| 355 | if (theFile == 0) |
| 356 | return; |
| 357 | |
| 358 | const char *fileName = theFile->getName(); |
| 359 | |
| 360 | if (theFile->isDir() == true) { |
| 361 | if (fileName != 0) { |
| 362 | s.tag("Directory"); |
| 363 | s.attr("name", fileName); |
| 364 | |
| 365 | } |
| 366 | |
| 367 | FileIter theDirFiles = theFile->getFiles(); |
| 368 | File *theDirFile; |
| 369 | while ((theDirFile = theDirFiles()) != 0) |
| 370 | PrintFiles(s, theDirFile); |
| 371 | } else { |
| 372 | s.tag("File"); |
| 373 | s.attr("name", fileName); |
| 374 | } |
| 375 | |
| 376 | s.endTag(); |
| 377 | } |
| 378 | |
| 379 | void |
| 380 | SimulationInformation::Print(OPS_Stream &s, int flag) const |