Added: #1440 Call the build plugin

--HG--
branch : build_pipeline_v3
hg/feature/build_pipeline_v3
kaetemi 13 years ago
parent d4a0a6df98
commit 656db83196

@ -31,7 +31,7 @@
// STL includes // STL includes
// NeL includes // NeL includes
// #include <nel/misc/debug.h> #include <nel/misc/debug.h>
// Project includes // Project includes
@ -52,7 +52,9 @@ CProcessInterface::~CProcessInterface()
void CProcessInterface::build() void CProcessInterface::build()
{ {
nldebug("Building process interface!");
m_PipelineProcess->setExit(FINISH_ERROR, "Not yet implemented");
} }
} /* namespace PIPELINE */ } /* namespace PIPELINE */

@ -40,6 +40,7 @@
#include "module_pipeline_master_itf.h" #include "module_pipeline_master_itf.h"
#include "pipeline_service.h" #include "pipeline_service.h"
#include "../plugin_library/process_info.h" #include "../plugin_library/process_info.h"
#include "../plugin_library/process_handler.h"
#include "pipeline_workspace.h" #include "pipeline_workspace.h"
#include "pipeline_process_impl.h" #include "pipeline_process_impl.h"
#include "database_status.h" #include "database_status.h"
@ -516,12 +517,24 @@ public:
CPluginBuildTask(CModulePipelineSlave *slave) : m_Slave(slave) { } CPluginBuildTask(CModulePipelineSlave *slave) : m_Slave(slave) { }
virtual void run() virtual void run()
{ {
// Figure out the build plugin // Call the build plugin
// ... switch (m_Slave->m_ActiveProcess->m_ActivePlugin.HandlerType)
{
case PIPELINE::PLUGIN_REGISTERED_CLASS:
{
PIPELINE::IProcessHandler *processHandler = static_cast<PIPELINE::IProcessHandler *>(NLMISC::CClassRegistry::create(m_Slave->m_ActiveProcess->m_ActivePlugin.Handler));
processHandler->setPipelineProcess(m_Slave->m_ActiveProcess);
m_Slave->m_ActiveProcess->m_SubTaskResult = FINISH_NOT;
processHandler->build();
}
break;
default:
nlwarning("Plugin type not implemented");
break;
}
// Build // Write the results file
// ... // ... ****************************** TODO
// TODO ************/////////////////########################################################################### BUILD THING
// Done // Done
m_Slave->m_PluginBuildDone = true; m_Slave->m_PluginBuildDone = true;

Loading…
Cancel
Save