src
paraview-5.12
VTKExtensions
IOCore
vtkStringWriter.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3
// SPDX-License-Identifier: BSD-3-Clause
8
#ifndef vtkStringWriter_h
9
#define vtkStringWriter_h
10
11
#include "
vtkAlgorithm.h
"
12
#include "vtkPVVTKExtensionsIOCoreModule.h"
// needed for exports
13
14
class
VTKPVVTKEXTENSIONSIOCORE_EXPORT
vtkStringWriter
:
public
vtkAlgorithm
15
{
16
public
:
17
static
vtkStringWriter
*
New
();
18
vtkTypeMacro(
vtkStringWriter
,
vtkAlgorithm
);
19
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
20
22
25
vtkSetStdStringFromCharMacro(String);
26
vtkGetCharFromStdStringMacro(String);
28
30
33
vtkSetStdStringFromCharMacro(FileName);
34
vtkGetCharFromStdStringMacro(FileName);
36
40
int
Write();
41
42
protected
:
43
vtkStringWriter
();
44
~
vtkStringWriter
()
override
;
45
46
int
FillInputPortInformation
(
int
port,
vtkInformation
* info)
override
;
47
int
FillOutputPortInformation
(
int
port,
vtkInformation
* info)
override
;
48
vtkTypeBool
ProcessRequest
(
vtkInformation
* request,
vtkInformationVector
** inputVector,
49
vtkInformationVector
* outputVector)
override
;
50
virtual
int
RequestData(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
51
52
private
:
53
vtkStringWriter
(
const
vtkStringWriter
&) =
delete
;
54
void
operator=
(
const
vtkStringWriter
&) =
delete
;
55
56
std::string String;
57
std::string FileName;
58
};
59
60
#endif // vtkStringWriter_h
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkAlgorithm
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkStringWriter
Given a string, write it to a file.
Definition:
vtkStringWriter.h:14
vtkInformationVector
vtkAlgorithm.h
vtkIndent
vtkInformation
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkTypeBool
int vtkTypeBool
Generated by
1.8.17 on Wed Mar 27 2024