VTKExtensions
IOSPCTH
vtkSpyPlotIStream.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSpyPlotIStream.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
25
#ifndef vtkSpyPlotIStream_h
26
#define vtkSpyPlotIStream_h
27
#include "
vtkPVVTKExtensionsIOSPCTHModule.h
"
//needed for exports
28
#include "
vtkSystemIncludes.h
"
29
#include "
vtkType.h
"
30
31
class
VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
vtkSpyPlotIStream
32
{
33
public
:
34
vtkSpyPlotIStream
();
35
virtual
~
vtkSpyPlotIStream
();
36
void
SetStream(istream*);
37
istream* GetStream();
38
int
ReadString(
char
* str,
size_t
len);
39
int
ReadString(
unsigned
char
* str,
size_t
len);
40
int
ReadInt32s(
int
* val,
int
num);
41
int
ReadInt32sNoSwap(
int
* val,
int
num);
42
int
ReadInt64s(vtkTypeInt64* val,
int
num);
43
int
ReadDoubles(
double
* val,
int
num);
44
void
Seek(vtkTypeInt64
offset
,
bool
rel =
false
);
45
vtkTypeInt64 Tell();
46
47
protected
:
48
const
int
FileBufferSize
;
49
char
*
Buffer
;
50
istream*
IStream
;
51
52
private
:
53
vtkSpyPlotIStream
(
const
vtkSpyPlotIStream
&) =
delete
;
54
void
operator=(
const
vtkSpyPlotIStream
&) =
delete
;
55
};
56
57
inline
istream*
vtkSpyPlotIStream::GetStream
()
58
{
59
return
this->IStream;
60
}
61
62
#endif
63
64
// VTK-HeaderTest-Exclude: vtkSpyPlotIStream.h
offset
offset
vtkSpyPlotIStream::GetStream
istream * GetStream()
Definition:
vtkSpyPlotIStream.h:57
vtkSystemIncludes.h
vtkSpyPlotIStream::IStream
istream * IStream
Definition:
vtkSpyPlotIStream.h:50
vtkSpyPlotIStream::Buffer
char * Buffer
Definition:
vtkSpyPlotIStream.h:49
vtkSpyPlotIStream
vtkSpyPlotIStream represents input functionality required by the vtkSpyPlotReader and vtkSpyPlotUniRe...
Definition:
vtkSpyPlotIStream.h:31
vtkSpyPlotIStream::FileBufferSize
const int FileBufferSize
Definition:
vtkSpyPlotIStream.h:48
vtkType.h
VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
#define VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
Definition:
vtkPVVTKExtensionsIOSPCTHModule.h:15
vtkPVVTKExtensionsIOSPCTHModule.h
Generated by
1.8.13 on Wed Jan 27 2021