void free();
// Type checking.
+ ObjType getType() { return type; }
GBool isBool() { return type == objBool; }
GBool isInt() { return type == objInt; }
GBool isReal() { return type == objReal; }
// Stream accessors.
GBool streamIs(char *dictType);
void streamReset();
+ void streamClose();
int streamGetChar();
int streamLookChar();
char *streamGetLine(char *buf, int size);
int streamGetPos();
void streamSetPos(int pos);
-/* BaseFile streamGetFile();*/
Dict *streamGetDict();
// Output.
inline void Object::streamReset()
{ stream->reset(); }
+inline void Object::streamClose()
+ { stream->close(); }
+
inline int Object::streamGetChar()
{ return stream->getChar(); }
inline void Object::streamSetPos(int pos)
{ stream->setPos(pos); }
-/*inline BaseFile Object::streamGetFile()
- { return stream->getFile(); }*/
-
inline Dict *Object::streamGetDict()
{ return stream->getDict(); }