ParaView
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 "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 #include "vtkSystemIncludes.h"
29 #include "vtkType.h"
30 
31 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkSpyPlotIStream
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 ReadInt64s(vtkTypeInt64* val, int num);
42  int ReadDoubles(double* val, int num);
43  void Seek(vtkTypeInt64 offset, bool rel = false);
44  vtkTypeInt64 Tell();
45 
46 protected:
47  const int FileBufferSize;
48  char* Buffer;
49  istream* IStream;
50 
51 private:
52  void operator=(const vtkSpyPlotIStream&);
53 };
54 
56 {
57  return this->IStream;
58 }
59 
60 #endif
61 
62 // VTK-HeaderTest-Exclude: vtkSpyPlotIStream.h
vtkSpyPlotIStream represents input functionality required by the vtkSpyPlotReader and vtkSpyPlotUniRe...