IO/vtkBase64InputStream.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00036 #ifndef __vtkBase64InputStream_h
00037 #define __vtkBase64InputStream_h
00038
00039 #include "vtkInputStream.h"
00040
00041 class VTK_IO_EXPORT vtkBase64InputStream : public vtkInputStream
00042 {
00043 public:
00044 vtkTypeRevisionMacro(vtkBase64InputStream,vtkInputStream);
00045 static vtkBase64InputStream *New();
00046 void PrintSelf(ostream& os, vtkIndent indent);
00047
00051 void StartReading();
00052
00055 int Seek(unsigned long offset);
00056
00058 unsigned long Read(unsigned char* data, unsigned long length);
00059
00064 void EndReading();
00065 protected:
00066 vtkBase64InputStream();
00067 ~vtkBase64InputStream();
00068
00069
00070 int BufferLength;
00071 unsigned char Buffer[2];
00072
00073
00074 int DecodeTriplet(unsigned char& c0, unsigned char& c1, unsigned char& c2);
00075
00076 private:
00077 vtkBase64InputStream(const vtkBase64InputStream&);
00078 void operator=(const vtkBase64InputStream&);
00079 };
00080
00081 #endif