MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / PrintFiles

Function PrintFiles

SRC/utility/SimulationInformation.cpp:351–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350
351void
352PrintFiles(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
379void
380SimulationInformation::Print(OPS_Stream &s, int flag) const

Callers 1

PrintMethod · 0.70

Calls 6

getNameMethod · 0.45
isDirMethod · 0.45
tagMethod · 0.45
attrMethod · 0.45
getFilesMethod · 0.45
endTagMethod · 0.45

Tested by

no test coverage detected