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 
32 {
33 public:
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 
58 {
59  return this->IStream;
60 }
61 
62 #endif
63 
64 // VTK-HeaderTest-Exclude: vtkSpyPlotIStream.h
offset
vtkSpyPlotIStream represents input functionality required by the vtkSpyPlotReader and vtkSpyPlotUniRe...
#define VTKPVVTKEXTENSIONSIOSPCTH_EXPORT