Commit a9868cf2 authored by Jussi Lindgren's avatar Jussi Lindgren

Plugins: Fixed TCP Tagging not loading the port from config

- Deprecated External Stimulations approach
parent c0d34d11
#include "ovasCPluginExternalStimulations.h"
#include <boost/interprocess/ipc/message_queue.hpp>
......@@ -20,11 +21,11 @@ using namespace OpenViBEAcquisitionServerPlugins;
using namespace std;
CPluginExternalStimulations::CPluginExternalStimulations(const IKernelContext& rKernelContext) :
IAcquisitionServerPlugin(rKernelContext, CString("AcquisitionServer_Plugin_SoftwareTagging")),
IAcquisitionServerPlugin(rKernelContext, CString("AcquisitionServer_Plugin_ExternalStimulations")),
m_bIsExternalStimulationsEnabled(false),
m_sExternalStimulationsQueueName("openvibeExternalStimulations")
{
m_rKernelContext.getLogManager() << LogLevel_Info << "Loading plugin: Software Tagging\n";
m_rKernelContext.getLogManager() << LogLevel_Info << "Loading plugin: ExternalStimulations (deprecated)\n";
m_oSettingsHelper.add("EnableExternalStimulations", &m_bIsExternalStimulationsEnabled);
m_oSettingsHelper.add("ExternalStimulationQueueName", &m_sExternalStimulationsQueueName);
......@@ -47,7 +48,7 @@ void CPluginExternalStimulations::startHook(const std::vector<OpenViBE::CString>
ftime(&m_CTStartTime);
m_bIsESThreadRunning = true;
m_ESthreadPtr.reset(new boost::thread( boost::bind(&CPluginExternalStimulations::readExternalStimulations , this )));
m_rKernelContext.getLogManager() << LogLevel_Info << "Software tagging activated...\n";
m_rKernelContext.getLogManager() << LogLevel_Info << "External stimulations (deprecated) activated...\n";
}
m_vExternalStimulations.clear();
......
......@@ -6,6 +6,9 @@
*
* \author Anton Andreev
* \author Jozef Legeny
*
* \note This plugin is deprecated. The users are recommended to use the TCP Tagging plugin instead. (11.05.2016)
*
*/
#include <boost/thread.hpp>
......
......@@ -15,7 +15,8 @@ CPluginTCPTagging::CPluginTCPTagging(const OpenViBE::Kernel::IKernelContext& rKe
m_port("15361")
{
m_rKernelContext.getLogManager() << Kernel::LogLevel_Info << "Loading plugin: TCP Tagging\n";
m_oSettingsHelper.add("TCP Tagging Port", &m_port);
m_oSettingsHelper.add("TCP_Tagging_Port", &m_port);
m_oSettingsHelper.load();
}
CPluginTCPTagging::~CPluginTCPTagging()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment