KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FONTCONFIG_REPORTER_SCOPE Class Reference

RAII class to set and restore the fontconfig reporter. More...

#include <reporter.h>

Public Member Functions

 FONTCONFIG_REPORTER_SCOPE (REPORTER *aReporter)
 
 ~FONTCONFIG_REPORTER_SCOPE ()
 

Private Attributes

REPORTERm_previousReporter
 

Detailed Description

RAII class to set and restore the fontconfig reporter.

Ensures the fontconfig reporter is properly reset even if an exception occurs during file loading operations.

Definition at line 321 of file reporter.h.

Constructor & Destructor Documentation

◆ FONTCONFIG_REPORTER_SCOPE()

FONTCONFIG_REPORTER_SCOPE::FONTCONFIG_REPORTER_SCOPE ( REPORTER * aReporter)
explicit

Definition at line 255 of file reporter.cpp.

References m_previousReporter, and fontconfig::FONTCONFIG::SetReporter().

◆ ~FONTCONFIG_REPORTER_SCOPE()

FONTCONFIG_REPORTER_SCOPE::~FONTCONFIG_REPORTER_SCOPE ( )

Definition at line 262 of file reporter.cpp.

References m_previousReporter, and fontconfig::FONTCONFIG::SetReporter().

Member Data Documentation

◆ m_previousReporter

REPORTER* FONTCONFIG_REPORTER_SCOPE::m_previousReporter
private

Definition at line 328 of file reporter.h.

Referenced by FONTCONFIG_REPORTER_SCOPE(), and ~FONTCONFIG_REPORTER_SCOPE().


The documentation for this class was generated from the following files: