add: some codes about nodes plugin.

This commit is contained in:
Mike Solar
2025-08-03 22:42:05 +08:00
parent 2b25dc7a77
commit 4940212687
8 changed files with 185 additions and 9 deletions
+46
View File
@@ -0,0 +1,46 @@
//
// Created by katherinesolar on 25-8-3.
//
#include "Plugin.h"
QString olive::plugin::PluginNode::Name() const
{
if (methods.name) {
char buffer[64]={0};
bool ok=methods.name(buffer, 64);
if (ok) {
return QString(buffer);
}
}
return "";
}
QString olive::plugin::PluginNode::Description() const
{
if (methods.description) {
char buffer[1024] = { 0 };
bool ok = methods.description(buffer, 1024);
if (ok) {
return QString(buffer);
}
}
return "";
}
void olive::plugin::PluginNode::Value(const NodeValueRow &value,
const NodeGlobals &globals,
NodeValueTable *table) const
{
methods.value(&node_ctx_functions);
}
QString olive::plugin::PluginNode::id() const
{
if (methods.id) {
char buffer[64]={0};
bool ok=methods.id(buffer, 64);
if (ok) {
return QString(buffer);
}
}
return "";
}