VTKExtensions
IOSPCTH
vtkSpyPlotIStream.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
14
#ifndef vtkSpyPlotIStream_h
15
#define vtkSpyPlotIStream_h
16
#include "
vtkPVVTKExtensionsIOSPCTHModule.h
"
//needed for exports
17
#include "
vtkSystemIncludes.h
"
// for istream
18
#include "
vtkType.h
"
// for vtkTypeInt64
19
20
class
VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
vtkSpyPlotIStream
21
{
22
public
:
23
vtkSpyPlotIStream
();
24
virtual
~
vtkSpyPlotIStream
();
25
void
SetStream(istream*);
26
istream* GetStream();
27
int
ReadString(
char
* str,
size_t
len);
28
int
ReadString(
unsigned
char
* str,
size_t
len);
29
int
ReadInt32s(
int
* val,
int
num);
30
int
ReadInt32sNoSwap(
int
* val,
int
num);
31
int
ReadInt64s(vtkTypeInt64* val,
int
num);
32
int
ReadDoubles(
double
* val,
int
num);
33
void
Seek(vtkTypeInt64
offset
,
bool
rel =
false
);
34
vtkTypeInt64 Tell();
35
36
protected
:
37
const
int
FileBufferSize
;
38
char
*
Buffer
;
39
istream*
IStream
;
40
41
private
:
42
vtkSpyPlotIStream
(
const
vtkSpyPlotIStream
&) =
delete
;
43
void
operator=(
const
vtkSpyPlotIStream
&) =
delete
;
44
};
45
46
inline
istream*
vtkSpyPlotIStream::GetStream
()
47
{
48
return
this->IStream;
49
}
50
51
#endif
52
53
// VTK-HeaderTest-Exclude: vtkSpyPlotIStream.h
offset
offset
vtkSpyPlotIStream::GetStream
istream * GetStream()
Definition:
vtkSpyPlotIStream.h:46
vtkSystemIncludes.h
vtkSpyPlotIStream::IStream
istream * IStream
Definition:
vtkSpyPlotIStream.h:39
vtkSpyPlotIStream::Buffer
char * Buffer
Definition:
vtkSpyPlotIStream.h:38
vtkSpyPlotIStream
vtkSpyPlotIStream represents input functionality required by the vtkSpyPlotReader and vtkSpyPlotUniRe...
Definition:
vtkSpyPlotIStream.h:20
vtkSpyPlotIStream::FileBufferSize
const int FileBufferSize
Definition:
vtkSpyPlotIStream.h:37
vtkType.h
VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
#define VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
Definition:
vtkPVVTKExtensionsIOSPCTHModule.h:15
vtkPVVTKExtensionsIOSPCTHModule.h
Generated by
1.8.13 on Sun Dec 1 2024