summaryrefslogtreecommitdiff
path: root/inc/VrmlData_InBuffer.hxx
blob: bfa79eee6420ba20bb04d8b4973a09746664d241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// File:      VrmlData_InBuffer.hxx
// Created:   08.10.06 23:19
// Author:    Alexander GRIGORIEV
// Copyright: Open Cascade 2006


#ifndef VrmlData_InBuffer_HeaderFile
#define VrmlData_InBuffer_HeaderFile

#include <Standard_IStream.hxx>
#include <Standard_Boolean.hxx>

/**
 * Structure passed to the methods dealing with input stream.
 */
struct VrmlData_InBuffer {
private:
  // Note : This operator must be implemented on first use. It is currently defined to avoid compiler warnings
  VrmlData_InBuffer & operator = (const VrmlData_InBuffer &) { return *this; }
public:
  Standard_IStream& Input;
  char              Line[8096];
  char *            LinePtr;
  Standard_Boolean  IsProcessed;
  Standard_Integer  LineCount;
  VrmlData_InBuffer (Standard_IStream& theStream)
    : Input       (theStream),
      LinePtr     (&Line[0]),
      IsProcessed (Standard_False),
      LineCount   (0) {}
};

#endif