FastLED 3.10.8
Loading...
Searching...
No Matches

◆ close()

void fl::fstream::close ( )

Definition at line 262 of file fstream.cpp.hpp.

262 {
263 if (mHandle && mHandle->is_open()) {
264 mHandle->close();
265 // After successful close: keep good() = true to match std::ofstream behavior
266 // This allows fs_stub.hpp's createTextFile to work correctly
267 if (!mHandle->has_error()) {
268 mGood = true;
269 mEof = false;
270 mFail = false;
271 } else {
272 updateState();
273 }
274 }
275}
void updateState() FL_NO_EXCEPT
Definition fstream.h:308
bool mGood
Definition fstream.h:303
bool mEof
Definition fstream.h:304
filebuf_ptr mHandle
Definition fstream.h:301
bool mFail
Definition fstream.h:305

References fl::FL_NO_EXCEPT, mEof, mFail, mGood, mHandle, and updateState().

Referenced by ~fstream(), open(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: