From 3b6a6185e458fdfcedbb94a86df9c6383979ba51 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 19 Oct 2002 23:43:55 +0000 Subject: [PATCH] define inheritance of iostream --- dtool/src/parser-inc/iostream | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/dtool/src/parser-inc/iostream b/dtool/src/parser-inc/iostream index 08eefcb313..2ed4702706 100644 --- a/dtool/src/parser-inc/iostream +++ b/dtool/src/parser-inc/iostream @@ -27,15 +27,29 @@ // We don't care about the actual definition of the various iostream // classes, but we do need to know the classnames that are available. -class iostream {}; -class ostream {}; -class istream {}; -class fstream {}; -class ofstream {}; -class ifstream {}; -class stringstream {}; -class ostringstream {}; -class istringstream {}; +// We need to expose one method in each class to force it to publish. +// We should fix that sometime. +class ostream { +__published: + void put(char c); + void flush(); +}; +class istream { +__published: + int get(); +}; +class iostream : public istream, public ostream { +__published: + void flush(); +}; + + +class ofstream : public ostream {}; +class ifstream : public istream {}; +class fstream : public iostream {}; +class ostringstream : public ostream {}; +class istringstream : public istream {}; +class stringstream : public iostream {}; class streambuf {}; extern istream cin;