------------------------------------------------------------------------------
| 52 | |
| 53 | //------------------------------------------------------------------------------ |
| 54 | static int vtkXMLParserFail(istream* stream) |
| 55 | { |
| 56 | // The fail() method returns true if either the failbit or badbit is set. |
| 57 | #if defined(__HP_aCC) |
| 58 | // The HP compiler sets the badbit too often, so we ignore it. |
| 59 | return (stream->rdstate() & ios::failbit) ? 1 : 0; |
| 60 | #else |
| 61 | return stream->fail() ? 1 : 0; |
| 62 | #endif |
| 63 | } |
| 64 | |
| 65 | //------------------------------------------------------------------------------ |
| 66 | vtkTypeInt64 vtkXMLParser::TellG() |