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

Method CollapseFullPath

Parallel/Core/vtkPSystemTools.cxx:28–39  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

26
27//------------------------------------------------------------------------------
28std::string vtkPSystemTools::CollapseFullPath(const std::string& in_relative)
29{
30 vtkMultiProcessController* controller = vtkMultiProcessController::GetGlobalController();
31 std::string returnString;
32 if (controller->GetLocalProcessId() == 0)
33 {
34 returnString = vtksys::SystemTools::CollapseFullPath(in_relative, nullptr);
35 }
36 vtkPSystemTools::BroadcastString(returnString, 0);
37
38 return returnString;
39}
40
41//------------------------------------------------------------------------------
42std::string vtkPSystemTools::CollapseFullPath(const std::string& in_path, const char* in_base)

Callers

nothing calls this directly

Calls 2

BroadcastStringFunction · 0.50
GetLocalProcessIdMethod · 0.45

Tested by

no test coverage detected