mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
define inheritance of iostream
This commit is contained in:
parent
802d4549d9
commit
3b6a6185e4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user