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

Method OpenFile

IO/Parallel/vtkPDataSetWriter.cxx:498–512  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Open a vtk data file. Returns nullptr if error.

Source from the content-addressed store, hash-verified

496//------------------------------------------------------------------------------
497// Open a vtk data file. Returns nullptr if error.
498ostream* vtkPDataSetWriter::OpenFile()
499{
500 ostream* fptr;
501
502 fptr = new vtksys::ofstream(this->FileName, ios::out);
503
504 if (fptr->fail())
505 {
506 vtkErrorMacro(<< "Unable to open file: " << this->FileName);
507 delete fptr;
508 return nullptr;
509 }
510
511 return fptr;
512}
513
514void vtkPDataSetWriter::DeleteFiles()
515{

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected