Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
IO/vtkInputStream.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00040 #ifndef __vtkInputStream_h
00041 #define __vtkInputStream_h
00042
00043 #include "vtkObject.h"
00044
00045 class VTK_IO_EXPORT vtkInputStream : public vtkObject
00046 {
00047 public:
00048 vtkTypeRevisionMacro(vtkInputStream,vtkObject);
00049 static vtkInputStream *New();
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00052
00054
00055 vtkSetMacro(Stream, istream*);
00056 vtkGetMacro(Stream, istream*);
00057
00059
00063 virtual void StartReading();
00064
00067 virtual int Seek(unsigned long offset);
00068
00070
00071 virtual unsigned long Read(unsigned char* data, unsigned long length);
00072 unsigned long Read(char* data, unsigned long length);
00074
00079 virtual void EndReading();
00080
00081 protected:
00082 vtkInputStream();
00083 ~vtkInputStream();
00084
00085
00086 istream* Stream;
00087
00088
00089 unsigned long StreamStartPosition;
00090
00091 private:
00092 vtkInputStream(const vtkInputStream&);
00093 void operator=(const vtkInputStream&);
00094 };
00095
00096 #endif