KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB_EXPORT_STATE_GUARD Struct Reference

Save and restore the static ODB++ exporter formatting state. More...

Public Member Functions

 ODB_EXPORT_STATE_GUARD ()
 
 ~ODB_EXPORT_STATE_GUARD ()
 

Public Attributes

double m_scale
 
double m_symbolScale
 
int m_sigfig
 
std::string m_unitsStr
 

Detailed Description

Save and restore the static ODB++ exporter formatting state.

SaveBoard() writes these, so without a guard the sigfig this test asks for would follow the shared qa_pcbnew binary into every later ODB++ test.

Definition at line 46 of file test_odb_drill_tools.cpp.

Constructor & Destructor Documentation

◆ ODB_EXPORT_STATE_GUARD()

ODB_EXPORT_STATE_GUARD::ODB_EXPORT_STATE_GUARD ( )
inline

Definition at line 48 of file test_odb_drill_tools.cpp.

References m_scale, m_sigfig, m_symbolScale, and m_unitsStr.

◆ ~ODB_EXPORT_STATE_GUARD()

ODB_EXPORT_STATE_GUARD::~ODB_EXPORT_STATE_GUARD ( )
inline

Member Data Documentation

◆ m_scale

double ODB_EXPORT_STATE_GUARD::m_scale

Definition at line 64 of file test_odb_drill_tools.cpp.

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

◆ m_sigfig

int ODB_EXPORT_STATE_GUARD::m_sigfig

Definition at line 66 of file test_odb_drill_tools.cpp.

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

◆ m_symbolScale

double ODB_EXPORT_STATE_GUARD::m_symbolScale

Definition at line 65 of file test_odb_drill_tools.cpp.

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

◆ m_unitsStr

std::string ODB_EXPORT_STATE_GUARD::m_unitsStr

Definition at line 67 of file test_odb_drill_tools.cpp.

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


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