Commit 9ee07dc4 authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH:Support ANSI C++

parent 446dc6df
......@@ -49,7 +49,7 @@ vtkAbstractMapper::vtkAbstractMapper()
this->TimeToDraw = 0.0;
}
void vtkAbstractMapper::PrintSelf(ostream& os, vtkIndent indent)
void vtkAbstractMapper::PrintSelf(vtkOstream& os, vtkIndent indent)
{
this->vtkProcessObject::PrintSelf(os,indent);
......
......@@ -59,7 +59,7 @@ class VTK_EXPORT vtkAbstractMapper : public vtkProcessObject
{
public:
vtkTypeMacro(vtkAbstractMapper,vtkProcessObject);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Release any graphics resources that are being consumed by this mapper.
......
......@@ -236,7 +236,7 @@ void vtkActor2D::GetActors2D(vtkPropCollection *ac)
ac->AddItem(this);
}
void vtkActor2D::PrintSelf(ostream& os, vtkIndent indent)
void vtkActor2D::PrintSelf(vtkOstream& os, vtkIndent indent)
{
this->vtkProp::PrintSelf(os,indent);
......
......@@ -61,7 +61,7 @@ class vtkMapper2D;
class VTK_EXPORT vtkActor2D : public vtkProp
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
vtkTypeMacro(vtkActor2D,vtkProp);
// Description:
......
......@@ -209,7 +209,7 @@ unsigned long vtkAttributeData::GetActualMemorySize()
return this->Data->GetActualMemorySize();
}
void vtkAttributeData::PrintSelf(ostream& os, vtkIndent indent)
void vtkAttributeData::PrintSelf(vtkOstream& os, vtkIndent indent)
{
vtkObject::PrintSelf(os,indent);
......
......@@ -59,7 +59,7 @@ class VTK_EXPORT vtkAttributeData : public vtkObject
{
public:
vtkTypeMacro(vtkAttributeData,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Allocate initial memory size.
......
......@@ -184,7 +184,7 @@ void vtkBitArray::DeepCopy(vtkDataArray *ia)
}
}
void vtkBitArray::PrintSelf(ostream& os, vtkIndent indent)
void vtkBitArray::PrintSelf(vtkOstream& os, vtkIndent indent)
{
vtkDataArray::PrintSelf(os,indent);
......
......@@ -56,7 +56,7 @@ class VTK_EXPORT vtkBitArray : public vtkDataArray
public:
static vtkBitArray *New();
vtkTypeMacro(vtkBitArray,vtkDataArray);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Allocate memory for this array. Delete old storage only if necessary.
......
......@@ -109,7 +109,7 @@ void vtkByteSwap::Swap4BERange(char *mem_ptr1,int num)
// Swap bunch of bytes. Num is the number of four byte words to swap.
void vtkByteSwap::SwapWrite4BERange(char *mem_ptr1,int num, ostream *fp)
void vtkByteSwap::SwapWrite4BERange(char *mem_ptr1,int num, vtkOstream *fp)
{
#ifndef VTK_WORDS_BIGENDIAN
char one_byte;
......@@ -298,7 +298,7 @@ void vtkByteSwap::Swap2LERange(char *mem_ptr1,int num){}
// Swap bunch of bytes. Num is the number of four byte words to swap.
void vtkByteSwap::SwapWrite2BERange(char *mem_ptr1,int num, ostream *fp)
void vtkByteSwap::SwapWrite2BERange(char *mem_ptr1,int num, vtkOstream *fp)
{
#ifndef VTK_WORDS_BIGENDIAN
char one_byte;
......
......@@ -47,9 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef __vtkByteSwap_h
#define __vtkByteSwap_h
#include <stdio.h>
#include <fstream.h>
#include "vtkObject.h"
class VTK_EXPORT vtkByteSwap : public vtkObject
......@@ -116,12 +114,12 @@ public:
static void SwapWrite4BERange(unsigned long *i,int num, FILE *fp)
{ vtkByteSwap::SwapWrite4BERange((char *)i,num,fp);};
static void SwapWrite4BERange(char *c,int num, ostream *fp);
static void SwapWrite4BERange(float *p,int num, ostream *fp)
static void SwapWrite4BERange(char *c,int num, vtkOstream *fp);
static void SwapWrite4BERange(float *p,int num, vtkOstream *fp)
{ vtkByteSwap::SwapWrite4BERange((char *)p,num,fp);};
static void SwapWrite4BERange(int *i,int num, ostream *fp)
static void SwapWrite4BERange(int *i,int num, vtkOstream *fp)
{ vtkByteSwap::SwapWrite4BERange((char *)i,num,fp);};
static void SwapWrite4BERange(unsigned long *i,int num, ostream *fp)
static void SwapWrite4BERange(unsigned long *i,int num, vtkOstream *fp)
{ vtkByteSwap::SwapWrite4BERange((char *)i,num,fp);};
......@@ -150,8 +148,8 @@ public:
static void SwapWrite2BERange(short *i,int num, FILE *fp)
{vtkByteSwap::SwapWrite2BERange((char *)i,num,fp);};
static void SwapWrite2BERange(char *c,int num, ostream *fp);
static void SwapWrite2BERange(short *i,int num, ostream *fp)
static void SwapWrite2BERange(char *c,int num, vtkOstream *fp);
static void SwapWrite2BERange(short *i,int num, vtkOstream *fp)
{vtkByteSwap::SwapWrite2BERange((char *)i,num,fp);};
// Description:
......
......@@ -257,7 +257,7 @@ int vtkCell::GetParametricCenter(float pcoords[3])
return 0;
}
void vtkCell::PrintSelf(ostream& os, vtkIndent indent)
void vtkCell::PrintSelf(vtkOstream& os, vtkIndent indent)
{
int numIds=this->PointIds->GetNumberOfIds();
......
......@@ -81,7 +81,7 @@ class VTK_EXPORT vtkCell : public vtkObject
{
public:
vtkTypeMacro(vtkCell,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Initialize cell from outside with point ids and point
......
......@@ -94,7 +94,7 @@ void vtkCellData::NullCell (int ptId)
}
void vtkCellData::PrintSelf(ostream& os, vtkIndent indent)
void vtkCellData::PrintSelf(vtkOstream& os, vtkIndent indent)
{
vtkDataSetAttributes::PrintSelf(os,indent);
}
......@@ -58,7 +58,7 @@ public:
static vtkCellData *New();
vtkTypeMacro(vtkCellData,vtkDataSetAttributes);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Set cell data to null values
......
......@@ -167,7 +167,7 @@ void vtkCharArray::DeepCopy(vtkDataArray *ia)
}
}
void vtkCharArray::PrintSelf(ostream& os, vtkIndent indent)
void vtkCharArray::PrintSelf(vtkOstream& os, vtkIndent indent)
{
vtkDataArray::PrintSelf(os,indent);
......
......@@ -56,7 +56,7 @@ public:
static vtkCharArray *New();
vtkTypeMacro(vtkCharArray,vtkDataArray);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Allocate memory for this array. Delete old storage only if necessary.
......
......@@ -188,7 +188,7 @@ int vtkCollection::GetNumberOfItems()
}
void vtkCollection::PrintSelf(ostream& os, vtkIndent indent)
void vtkCollection::PrintSelf(vtkOstream& os, vtkIndent indent)
{
vtkObject::PrintSelf(os,indent);
......
......@@ -71,7 +71,7 @@ class VTK_EXPORT vtkCollection : public vtkObject
{
public:
vtkTypeMacro(vtkCollection,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Construct with empty list.
......
......@@ -203,7 +203,7 @@ int vtkContourValues::GetNumberOfContours()
return this->Contours->GetMaxId()+1;
}
void vtkContourValues::PrintSelf(ostream& os, vtkIndent indent)
void vtkContourValues::PrintSelf(vtkOstream& os, vtkIndent indent)
{
int i, numContours=this->Contours->GetMaxId() + 1;
......
......@@ -64,7 +64,7 @@ public:
static vtkContourValues *New();
vtkTypeMacro(vtkContourValues,vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
void PrintSelf(vtkOstream& os, vtkIndent indent);
// Description:
// Set the ith contour value.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment