aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llfile.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llcommon/llfile.h
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llcommon/llfile.h')
-rw-r--r--linden/indra/llcommon/llfile.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/linden/indra/llcommon/llfile.h b/linden/indra/llcommon/llfile.h
index 554308f..5034cf7 100644
--- a/linden/indra/llcommon/llfile.h
+++ b/linden/indra/llcommon/llfile.h
@@ -69,6 +69,7 @@ public:
69 // be overridden by the user's umask. It is ignored on Windows. 69 // be overridden by the user's umask. It is ignored on Windows.
70 static int mkdir(const char* filename, int perms = 0700); 70 static int mkdir(const char* filename, int perms = 0700);
71 71
72 static int rmdir(const char* filename);
72 static int remove(const char* filename); 73 static int remove(const char* filename);
73 static int rename(const char* filename,const char* newname); 74 static int rename(const char* filename,const char* newname);
74 static int stat(const char* filename,llstat* file_status); 75 static int stat(const char* filename,llstat* file_status);
@@ -87,7 +88,7 @@ public:
87 typedef std::basic_ios<char,std::char_traits< char > > _Myios; 88 typedef std::basic_ios<char,std::char_traits< char > > _Myios;
88 89
89 llifstream() 90 llifstream()
90 : std::basic_istream<char,std::char_traits< char > >(NULL,true),_Filebuffer(NULL) 91 : std::basic_istream<char,std::char_traits< char > >(NULL,true),_Filebuffer(NULL),_ShouldClose(false)
91 { // construct unopened 92 { // construct unopened
92 } 93 }
93 94
@@ -97,7 +98,8 @@ public:
97 98
98 explicit llifstream(_Filet *_File) 99 explicit llifstream(_Filet *_File)
99 : std::basic_istream<char,std::char_traits< char > >(NULL,true), 100 : std::basic_istream<char,std::char_traits< char > >(NULL,true),
100 _Filebuffer(new _Myfb(_File)) 101 _Filebuffer(new _Myfb(_File)),
102 _ShouldClose(false)
101 { // construct with specified C stream 103 { // construct with specified C stream
102 } 104 }
103 virtual ~llifstream(); 105 virtual ~llifstream();
@@ -107,13 +109,14 @@ public:
107 return _Filebuffer; 109 return _Filebuffer;
108 } 110 }
109 bool is_open() const; 111 bool is_open() const;
110 void open(const char *_Filename, 112 void open(const char* _Filename, /* Flawfinder: ignore */
111 ios_base::openmode _Mode = ios_base::in, 113 ios_base::openmode _Mode = ios_base::in,
112 int _Prot = (int)ios_base::_Openprot); /* Flawfinder: ignore */ 114 int _Prot = (int)ios_base::_Openprot);
113 void close(); 115 void close();
114 116
115private: 117private:
116 _Myfb* _Filebuffer; // the file buffer 118 _Myfb* _Filebuffer; // the file buffer
119 bool _ShouldClose;
117}; 120};
118 121
119 122