MCPcopy Create free account
hub / github.com/Kitware/VTK / GetFilePath

Method GetFilePath

IO/XML/vtkXMLCompositeDataReader.cxx:129–143  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

127
128//------------------------------------------------------------------------------
129std::string vtkXMLCompositeDataReader::GetFilePath()
130{
131 std::string filePath = this->FileName;
132 std::string::size_type pos = filePath.find_last_of("/\\");
133 if (pos != std::string::npos)
134 {
135 filePath = filePath.substr(0, pos);
136 }
137 else
138 {
139 filePath = "";
140 }
141
142 return filePath;
143}
144
145//------------------------------------------------------------------------------
146vtkCompositeDataSet* vtkXMLCompositeDataReader::GetOutput()

Callers 1

ReadXMLDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected