basic_file.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef _BASIC_FILE_STDIO_H
00040 #define _BASIC_FILE_STDIO_H 1
00041
00042 #pragma GCC system_header
00043
00044 #include <bits/c++config.h>
00045 #include <ios>
00046
00047 namespace std
00048 {
00049
00050 template<typename _CharT>
00051 class __basic_file;
00052
00053
00054 template<>
00055 class __basic_file<char>
00056 {
00057
00058 __c_file* _M_cfile;
00059
00060
00061 bool _M_cfile_created;
00062
00063 public:
00064 __basic_file(__c_lock* __lock = 0);
00065
00066 __basic_file*
00067 open(const char* __name, ios_base::openmode __mode, int __prot = 0664);
00068
00069 __basic_file*
00070 sys_open(__c_file* __file, ios_base::openmode);
00071
00072 __basic_file*
00073 sys_open(int __fd, ios_base::openmode __mode);
00074
00075 __basic_file*
00076 close();
00077
00078 bool
00079 is_open() const;
00080
00081 int
00082 fd();
00083
00084 __c_file*
00085 file();
00086
00087 ~__basic_file();
00088
00089 streamsize
00090 xsputn(const char* __s, streamsize __n);
00091
00092 streamsize
00093 xsputn_2(const char* __s1, streamsize __n1,
00094 const char* __s2, streamsize __n2);
00095
00096 streamsize
00097 xsgetn(char* __s, streamsize __n);
00098
00099 streamoff
00100 seekoff(streamoff __off, ios_base::seekdir __way);
00101
00102 int
00103 sync();
00104
00105 streamsize
00106 showmanyc();
00107 };
00108 }
00109
00110 #endif
Generated on Sun Sep 12 15:49:57 2004 for libstdc++ source by
1.3.8