MCPcopy Create free account
hub / github.com/KLayout/klayout / process

Method process

src/layui/layui/layLayoutStatisticsForm.cc:177–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175};
176
177bool
178StatisticsTemplateProcessor::process ()
179{
180 m_output.open (QIODevice::WriteOnly);
181
182 bool ret_value = false;
183
184 try
185 {
186 tl::SelfTimer timer (tl::verbosity () > 21, "StatisticsForm: create content");
187
188 QDomDocument doc;
189 doc.setContent (m_temp, true);
190
191 QXmlStreamWriter writer (&m_output);
192 writer.writeStartDocument (QString::fromUtf8 ("1.0"));
193 process (doc.documentElement (), m_top_eval, writer);
194 writer.writeEndDocument ();
195
196 ret_value = true;
197
198 } catch (tl::Exception &ex) {
199 tl::error << ex.msg ();
200 QTextStream writer (&m_output);
201 writer << tl::to_string (QObject::tr ("ERROR: evaluating template: ")).c_str () << ex.msg ().c_str ();
202 }
203
204 m_output.close ();
205 return ret_value;
206}
207
208void
209StatisticsTemplateProcessor::process_child_nodes (const QDomElement &element, tl::Eval &eval, QXmlStreamWriter &writer)

Callers 1

get_implMethod · 0.45

Calls 15

verbosityFunction · 0.85
maxFunction · 0.85
to_qstringFunction · 0.85
msgMethod · 0.80
to_boolMethod · 0.80
can_convert_to_ulongMethod · 0.80
to_ulongMethod · 0.80
itemMethod · 0.80
processFunction · 0.50
to_stringFunction · 0.50
trFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected