Add accessor for use with things like fprintf().
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Apr 2022 22:19:55 +0000 (00:19 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 5 May 2022 19:46:30 +0000 (21:46 +0200)
src/file.h

index 26d0704a6ae42af53fa1f7dd24be75b898f9b09e..ec13fc8287477fdbb9fb1cb8b7217c94d7464fda 100644 (file)
@@ -91,6 +91,10 @@ public:
         */
        FILE* take();
 
+       FILE* get() {
+               return _file;
+       }
+
 private:
        boost::filesystem::path _path;
        FILE* _file = nullptr;