dox/IO/vtkInputStream.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00026
#ifndef __vtkInputStream_h
00027
#define __vtkInputStream_h
00028
00029
#include "vtkObject.h"
00030
00031 class VTK_IO_EXPORT vtkInputStream :
public vtkObject
00032 {
00033
public:
00034 vtkTypeRevisionMacro(vtkInputStream,
vtkObject);
00035
static vtkInputStream *
New();
00036
void PrintSelf(ostream& os,
vtkIndent indent);
00037
00038
00040
00041 vtkSetMacro(Stream, istream*);
00042 vtkGetMacro(Stream, istream*);
00043
00045
00049
virtual void StartReading();
00050
00053
virtual int Seek(
unsigned long offset);
00054
00056
00057
virtual unsigned long Read(
unsigned char* data,
unsigned long length);
00058
unsigned long Read(
char* data,
unsigned long length);
00060
00065
virtual void EndReading();
00066
00067
protected:
00068 vtkInputStream();
00069 ~vtkInputStream();
00070
00071
00072 istream* Stream;
00073
00074
00075 unsigned long StreamStartPosition;
00076
00077
private:
00078 vtkInputStream(
const vtkInputStream&);
00079
void operator=(
const vtkInputStream&);
00080 };
00081
00082
#endif