MCPcopy Create free account
hub / github.com/commontk/CTK / readManifest

Method readManifest

Libs/PluginFramework/ctkPluginArchiveSQL.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void ctkPluginArchiveSQL::readManifest(const QByteArray& manifestResource)
53{
54 QByteArray manifestRes = manifestResource.isNull() ? this->getPluginResource("META-INF/MANIFEST.MF")
55 : manifestResource;
56 if (manifestRes.isEmpty())
57 {
58 throw ctkPluginException(QString("ctkPlugin has no MANIFEST.MF resource, location=") + localPluginPath);
59 }
60
61 manifest.read(manifestRes);
62}
63
64//----------------------------------------------------------------------------
65QString ctkPluginArchiveSQL::getAttribute(const QString& key) const

Callers 2

insertArchiveMethod · 0.80
restorePluginArchivesMethod · 0.80

Calls 5

getPluginResourceMethod · 0.95
QStringClass · 0.50
isNullMethod · 0.45
isEmptyMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected