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 
21 {
22 public:
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 
47 {
48  return this->IStream;
49 }
50 
51 #endif
52 
53 // VTK-HeaderTest-Exclude: vtkSpyPlotIStream.h
offset
vtkSpyPlotIStream represents input functionality required by the vtkSpyPlotReader and vtkSpyPlotUniRe...
#define VTKPVVTKEXTENSIONSIOSPCTH_EXPORT