MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / reset

Method reset

file_plugins/gerber/gbrparser.cpp:495–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void Parser::reset(const QString& fileName)
496{
497 if (!fileName.isEmpty())
498 file = new File(fileName);
499 aperFunctionMap.clear();
500 attAper = {};
501 components.clear();
502 m_abSrIdStack.clear();
503 m_abSrIdStack.push({ WorkingType::Normal, 0 });
504 m_apertureMacro.clear();
505 m_currentGerbLine.clear();
506 m_goId = 0;
507 m_path.clear();
508 m_state = State(file->format());
509 m_stepRepeat.reset();
510 refDes.clear();
511}
512
513void Parser::resetStep()
514{

Callers 4

parseStepRepeatMethod · 0.45
closeStepRepeatMethod · 0.45
parseMethod · 0.45
setChildMethod · 0.45

Calls 5

isEmptyMethod · 0.80
pushMethod · 0.80
StateEnum · 0.70
clearMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected