libcosmos
Linux C++ System Programming Library
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FDFile.cxx
1// cosmos
2#include <cosmos/fs/FDFile.hxx>
3
4namespace cosmos {
5
6FDFile::~FDFile() {
7 if (!m_auto_close) {
8 // only close() here if we're not actually closing. This
9 // cannot fail. If we have to close() then let the base class
10 // destructor do that.
11 close();
12 }
13}
14
15} // end ns
void close() override
Close the current file object.
Definition FDFile.hxx:62