Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::FilePtr Struct Reference

#include <src/libslic3r/Utils.hpp>

Public Member Functions

 FilePtr (FILE *f)
 
 ~FilePtr ()
 
void close ()
 

Public Attributes

FILE * f = nullptr
 

Detailed Description

Constructor & Destructor Documentation

◆ FilePtr()

Slic3r::FilePtr::FilePtr ( FILE *  f)
inline
270: f(f) {}
FILE * f
Definition Utils.hpp:278

◆ ~FilePtr()

Slic3r::FilePtr::~FilePtr ( )
inline
271{ this->close(); }
void close()
Definition Utils.hpp:272

References close().

+ Here is the call graph for this function:

Member Function Documentation

◆ close()

void Slic3r::FilePtr::close ( )
inline
272 {
273 if (this->f) {
274 ::fclose(this->f);
275 this->f = nullptr;
276 }
277 }

References f.

Referenced by ~FilePtr(), and Slic3r::GCodeProcessor::post_process().

+ Here is the caller graph for this function:

Member Data Documentation

◆ f

FILE* Slic3r::FilePtr::f = nullptr

The documentation for this struct was generated from the following file: