| 18 | vtkStandardNewMacro(vtkTableWriter); |
| 19 | |
| 20 | void vtkTableWriter::WriteData() |
| 21 | { |
| 22 | ostream* fp = nullptr; |
| 23 | vtkDebugMacro(<< "Writing vtk table data..."); |
| 24 | |
| 25 | if (!(fp = this->OpenVTKFile()) || !this->WriteHeader(fp)) |
| 26 | { |
| 27 | if (fp) |
| 28 | { |
| 29 | vtkErrorMacro("Ran out of disk space; deleting file: " << this->FileName); |
| 30 | this->CloseVTKFile(fp); |
| 31 | unlink(this->FileName); |
| 32 | } |
| 33 | return; |
| 34 | } |
| 35 | // |
| 36 | // Write table specific stuff |
| 37 | // |
| 38 | *fp << "DATASET TABLE\n"; |
| 39 | |
| 40 | this->WriteFieldData(fp, this->GetInput()->GetFieldData()); |
| 41 | this->WriteRowData(fp, this->GetInput()); |
| 42 | |
| 43 | this->CloseVTKFile(fp); |
| 44 | } |
| 45 | |
| 46 | int vtkTableWriter::FillInputPortInformation(int, vtkInformation* info) |
| 47 | { |
nothing calls this directly
no test coverage detected