|
@@ -29,59 +29,61 @@
|
|
|
// iostream classes, but we do need to know the classnames that are
|
|
// iostream classes, but we do need to know the classnames that are
|
|
|
// available.
|
|
// available.
|
|
|
|
|
|
|
|
-class ostream : virtual public ios {
|
|
|
|
|
-__published:
|
|
|
|
|
- ostream(const ostream&) = delete;
|
|
|
|
|
|
|
+namespace std {
|
|
|
|
|
+ class ostream : virtual public ios {
|
|
|
|
|
+ __published:
|
|
|
|
|
+ ostream(const ostream&) = delete;
|
|
|
|
|
|
|
|
- void put(char c);
|
|
|
|
|
- void flush();
|
|
|
|
|
- streampos tellp();
|
|
|
|
|
- void seekp(streampos pos);
|
|
|
|
|
- void seekp(streamoff off, ios_base::seekdir dir);
|
|
|
|
|
|
|
+ void put(char c);
|
|
|
|
|
+ void flush();
|
|
|
|
|
+ streampos tellp();
|
|
|
|
|
+ void seekp(streampos pos);
|
|
|
|
|
+ void seekp(streamoff off, ios_base::seekdir dir);
|
|
|
|
|
|
|
|
-protected:
|
|
|
|
|
- ostream(ostream &&);
|
|
|
|
|
-};
|
|
|
|
|
-class istream : virtual public ios {
|
|
|
|
|
-__published:
|
|
|
|
|
- istream(const istream&) = delete;
|
|
|
|
|
|
|
+ protected:
|
|
|
|
|
+ ostream(ostream &&);
|
|
|
|
|
+ };
|
|
|
|
|
+ class istream : virtual public ios {
|
|
|
|
|
+ __published:
|
|
|
|
|
+ istream(const istream&) = delete;
|
|
|
|
|
|
|
|
- int get();
|
|
|
|
|
- streampos tellg();
|
|
|
|
|
- void seekg(streampos pos);
|
|
|
|
|
- void seekg(streamoff off, ios_base::seekdir dir);
|
|
|
|
|
|
|
+ int get();
|
|
|
|
|
+ streampos tellg();
|
|
|
|
|
+ void seekg(streampos pos);
|
|
|
|
|
+ void seekg(streamoff off, ios_base::seekdir dir);
|
|
|
|
|
|
|
|
-protected:
|
|
|
|
|
- istream(istream &&);
|
|
|
|
|
-};
|
|
|
|
|
-class iostream : public istream, public ostream {
|
|
|
|
|
-__published:
|
|
|
|
|
- iostream(const iostream&) = delete;
|
|
|
|
|
|
|
+ protected:
|
|
|
|
|
+ istream(istream &&);
|
|
|
|
|
+ };
|
|
|
|
|
+ class iostream : public istream, public ostream {
|
|
|
|
|
+ __published:
|
|
|
|
|
+ iostream(const iostream&) = delete;
|
|
|
|
|
|
|
|
- void flush();
|
|
|
|
|
|
|
+ void flush();
|
|
|
|
|
|
|
|
-protected:
|
|
|
|
|
- iostream(iostream &&);
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ protected:
|
|
|
|
|
+ iostream(iostream &&);
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-class ofstream : public ostream {
|
|
|
|
|
-__published:
|
|
|
|
|
- ofstream();
|
|
|
|
|
- void close();
|
|
|
|
|
-};
|
|
|
|
|
-class ifstream : public istream {
|
|
|
|
|
-__published:
|
|
|
|
|
- ifstream();
|
|
|
|
|
- void close();
|
|
|
|
|
-};
|
|
|
|
|
-class fstream : public iostream {
|
|
|
|
|
-__published:
|
|
|
|
|
- fstream();
|
|
|
|
|
- void close();
|
|
|
|
|
-};
|
|
|
|
|
|
|
+ class ofstream : public ostream {
|
|
|
|
|
+ __published:
|
|
|
|
|
+ ofstream();
|
|
|
|
|
+ void close();
|
|
|
|
|
+ };
|
|
|
|
|
+ class ifstream : public istream {
|
|
|
|
|
+ __published:
|
|
|
|
|
+ ifstream();
|
|
|
|
|
+ void close();
|
|
|
|
|
+ };
|
|
|
|
|
+ class fstream : public iostream {
|
|
|
|
|
+ __published:
|
|
|
|
|
+ fstream();
|
|
|
|
|
+ void close();
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
-extern istream cin;
|
|
|
|
|
-extern ostream cout;
|
|
|
|
|
-extern ostream cerr;
|
|
|
|
|
|
|
+ extern istream cin;
|
|
|
|
|
+ extern ostream cout;
|
|
|
|
|
+ extern ostream cerr;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
#endif
|
|
#endif
|