This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/registry.cpp

18 lines
398 B
C++
Raw Normal View History

2019-12-14 10:04:17 +08:00
#include <QDebug>
#include "registry.h"
2019-12-14 11:30:12 +08:00
#include "plugin/shader_plugin.h"
2019-12-14 10:04:17 +08:00
Registry::Registry() {
2019-12-14 18:28:04 +08:00
registerNativePlugin("shader", typeid(ShaderPlugin).name());
2019-12-14 10:04:17 +08:00
}
2019-12-14 18:28:04 +08:00
void Registry::registerNativePlugin(QString key, QString value) {
qDebug() << key + " " + value;
pluginInfoMap.insert(key, value);
}
QString Registry::acquirePluginInfo(QString key) {
return pluginInfoMap.take(key);
2019-12-14 10:04:17 +08:00
}