MCPcopy Create free account
hub / github.com/Robotips/uConfig / processFilePdf

Function processFilePdf

src/uconfig/uconfig.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17QTextStream out(stdout);
18
19void processFilePdf(QString file, Lib *lib, bool debug)
20{
21 Datasheet datasheet;
22 datasheet.setDebugEnabled(debug);
23 bool opened = datasheet.open(file);
24 if (!opened)
25 {
26 out << "error (2): input file cannot be opened" << endl;
27 exit(2);
28 }
29 datasheet.analyse();
30 foreach(DatasheetPackage *package, datasheet.packages())
31 {
32 Component *component = package->toComponent();
33 lib->addComponent(component);
34 }
35}
36
37void processFileLib(QString file, Lib *lib)
38{

Callers 1

mainFunction · 0.85

Calls 6

setDebugEnabledMethod · 0.80
analyseMethod · 0.80
toComponentMethod · 0.80
foreachFunction · 0.50
openMethod · 0.45
addComponentMethod · 0.45

Tested by

no test coverage detected