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

Method addFile

DEVELOPER/core/File.cpp:80–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80int
81File::addFile(File *theFile)
82{
83 if (isDirectory == false)
84 return -1;
85
86 if (dirFiles.find(theFile->name) == dirFiles.end()) {
87 dirFiles[theFile->name] = theFile;
88 } else
89 return -1;
90
91 theFile->setParentDir(this);
92 return 0;
93}
94
95int
96File::addFile(const char *fileName, const char *path, const char *fileDescription)

Callers 2

addInputFileMethod · 0.45
addOutputFileMethod · 0.45

Calls 5

lengthMethod · 0.80
endMethod · 0.45
setParentDirMethod · 0.45
getFileMethod · 0.45
getDescriptionMethod · 0.45

Tested by

no test coverage detected