Ferenc Szontágh
2024-06-27 920507bff803647c79dfce27c4c265b2caee7f8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "DataBasePlugin.h"
 
extern "C" IPlugin *create(IPC *ipc)
{
    return new DataBasePlugin(ipc);
}
 
DataBasePlugin::DataBasePlugin(IPC* ipc) : ipc(ipc)
{
}
 
void DataBasePlugin::handleMessage(const Command &cmd)
{
    auto it = CommandTypeToString.find(cmd.commandType);
}
 
void DataBasePlugin::updateConfig(const nlohmann::json &config)
{
    DLOG(INFO) << "Updated plugin config: " << config.dump() << std::endl;
}
const std::string DataBasePlugin::getPluginName() { return this->plugin_name; }