OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::FilePtr Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/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
521: f(f) {}
FILE * f
Definition Utils.hpp:529

References f.

◆ ~FilePtr()

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

References close().

Here is the call graph for this function:

Member Function Documentation

◆ close()

void Slic3r::FilePtr::close ( )
inline
523 {
524 if (this->f) {
525 ::fclose(this->f);
526 this->f = nullptr;
527 }
528 }

References f.

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

Here is the caller graph for this function:

Member Data Documentation

◆ f


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Utils.hpp