MCPcopy Create free account
hub / github.com/Kitware/ParaView / SaveString

Method SaveString

Remoting/ServerManager/vtkSMSessionProxyManager.cxx:1244–1266  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1242
1243//---------------------------------------------------------------------------
1244bool vtkSMSessionProxyManager::SaveString(
1245 const char* string, const char* filename, vtkTypeUInt32 location)
1246{
1247 if (string == nullptr || filename == nullptr)
1248 {
1249 vtkErrorMacro("Invalid arguments");
1250 return false;
1251 }
1252
1253 auto proxy = vtkSMSourceProxy::SafeDownCast(this->NewProxy("internal_writers", "StringWriter"));
1254 if (!proxy)
1255 {
1256 vtkErrorMacro("Failed to create string proxy writer");
1257 return false;
1258 }
1259 proxy->SetLocation(location);
1260 vtkSMPropertyHelper(proxy, "FileName").Set(filename);
1261 vtkSMPropertyHelper(proxy, "String").Set(string);
1262 proxy->UpdateVTKObjects();
1263 proxy->UpdatePipeline();
1264 proxy->Delete();
1265 return true;
1266}
1267
1268//---------------------------------------------------------------------------
1269std::string vtkSMSessionProxyManager::LoadString(const char* filename, vtkTypeUInt32 location)

Callers 10

SaveXMLStateMethod · 0.95
pqPresetDialog.cxxFile · 0.80
exportToFileMethod · 0.80
savePythonStateMethod · 0.80
WriteFunction · 0.80
exportLogMethod · 0.80
saveToFileMethod · 0.80
save_catalyst_stateFunction · 0.80
onTriggeredMethod · 0.80

Calls 6

NewProxyMethod · 0.95
SetLocationMethod · 0.80
SetMethod · 0.45
UpdateVTKObjectsMethod · 0.45
UpdatePipelineMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected