VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkBase64InputStream.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkBase64InputStream.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
=========================================================================*/
22
#ifndef __vtkBase64InputStream_h
23
#define __vtkBase64InputStream_h
24
25
#include "
vtkInputStream.h
"
26
27
class
VTK_IO_EXPORT
vtkBase64InputStream
:
public
vtkInputStream
28
{
29
public
:
30
vtkTypeMacro(
vtkBase64InputStream
,
vtkInputStream
);
31
static
vtkBase64InputStream
*
New
();
32
void
PrintSelf
(ostream& os,
vtkIndent
indent);
33
37
void
StartReading
();
38
41
int
Seek
(
unsigned
long
offset
);
42
44
unsigned
long
Read
(
unsigned
char
*
data
,
unsigned
long
length
);
45
47
51
void
EndReading
();
52
protected
:
53
vtkBase64InputStream
();
54
~
vtkBase64InputStream
();
56
57
// Number of decoded bytes left in Buffer from last call to Read.
58
int
BufferLength
;
59
unsigned
char
Buffer[2];
60
61
// Reads 4 bytes from the input stream and decodes them into 3 bytes.
62
int
DecodeTriplet(
unsigned
char
& c0,
unsigned
char
& c1,
unsigned
char
& c2);
63
64
private
:
65
vtkBase64InputStream
(
const
vtkBase64InputStream
&);
// Not implemented.
66
void
operator=(
const
vtkBase64InputStream
&);
// Not implemented.
67
};
68
69
#endif
vtkX3D::data
Definition:
vtkX3D.h:315
vtkInputStream::Read
virtual unsigned long Read(unsigned char *data, unsigned long length)
vtkBase64InputStream
Reads base64-encoded input from a stream.
Definition:
vtkBase64InputStream.h:27
vtkX3D::offset
Definition:
vtkX3D.h:438
vtkInputStream::EndReading
virtual void EndReading()
vtkX3D::length
Definition:
vtkX3D.h:393
vtkInputStream::StartReading
virtual void StartReading()
vtkInputStream
Wraps a binary input stream with a VTK interface.
Definition:
vtkInputStream.h:31
vtkInputStream::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkInputStream::New
static vtkInputStream * New()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkInputStream::Seek
virtual int Seek(unsigned long offset)
vtkInputStream.h
VTK_IO_EXPORT
#define VTK_IO_EXPORT
Definition:
vtkWin32Header.h:277
vtkBase64InputStream::BufferLength
int BufferLength
Definition:
vtkBase64InputStream.h:58
Generated on Sun Oct 19 2014 13:07:22 for VTK by
1.8.8