MCPcopy Create free account
hub / github.com/Qucs/qucs / getComponent

Method getComponent

qucs/module.cpp:78–91  ·  view source on GitHub ↗

Returns instantiated component based on the given "Model" name. If there is no such component registers the function returns NULL.

Source from the content-addressed store, hash-verified

76// Returns instantiated component based on the given "Model" name. If
77// there is no such component registers the function returns NULL.
78Component * Module::getComponent (QString Model) {
79 if ( Modules.contains(Model)) {
80 Module *m = Modules.find(Model).value();
81 QString Name;
82 char * File;
83 QString vaBitmap;
84 if (vaComponents.contains(Model))
85 return (Component *)
86 vacomponent::info (Name, vaBitmap, true, vaComponents[Model]);
87 else
88 return (Component *) m->info (Name, File, true);
89 }
90 return 0;
91}
92
93void Module::registerDynamicComponents()
94{

Callers

nothing calls this directly

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected