From b09e65a1789351ea02394dbea0f2c85134364589 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 3 Aug 2012 18:54:49 +0200 Subject: [PATCH] Added: #1440 Interface to start the build --HG-- branch : build_pipeline_v3 --- .../plugin_library/process_handler.cpp | 10 +--------- .../pipeline/plugin_library/process_handler.h | 18 +++++++++++------- .../pipeline/plugin_library/process_info.h | 2 +- .../pipeline/plugin_max/process_max_shape.cpp | 5 +++++ .../pipeline/plugin_max/process_max_shape.h | 8 ++------ .../pipeline/plugin_nel/process_interface.cpp | 5 +++++ .../pipeline/plugin_nel/process_interface.h | 8 ++------ .../plugin_nel/process_interface_info.h | 6 ------ 8 files changed, 27 insertions(+), 35 deletions(-) diff --git a/code/nel/tools/pipeline/plugin_library/process_handler.cpp b/code/nel/tools/pipeline/plugin_library/process_handler.cpp index 87380259c..661bc65d9 100644 --- a/code/nel/tools/pipeline/plugin_library/process_handler.cpp +++ b/code/nel/tools/pipeline/plugin_library/process_handler.cpp @@ -40,15 +40,7 @@ using namespace std; namespace PIPELINE { -IProcessHandler::IProcessHandler() -{ - -} - -IProcessHandler::~IProcessHandler() -{ - -} +void sdfkjsdklfjsdfodjsfop() { } } /* namespace PIPELINE */ diff --git a/code/nel/tools/pipeline/plugin_library/process_handler.h b/code/nel/tools/pipeline/plugin_library/process_handler.h index 80690a4cd..911f06968 100644 --- a/code/nel/tools/pipeline/plugin_library/process_handler.h +++ b/code/nel/tools/pipeline/plugin_library/process_handler.h @@ -35,6 +35,7 @@ #include // Project includes +#include "pipeline_process.h" namespace PIPELINE { @@ -48,14 +49,17 @@ namespace PIPELINE { class IProcessHandler : public NLMISC::IClassable { protected: - // pointers - // ... - - // instances - // ... + IPipelineProcess *m_PipelineProcess; + public: - IProcessHandler(); - virtual ~IProcessHandler(); + IProcessHandler() : m_PipelineProcess(IPipelineProcess::getInstance()) { } + virtual ~IProcessHandler() { } + + void setPipelineProcess(IPipelineProcess *pipelineProcess) { m_PipelineProcess = pipelineProcess; } + + /// Build. Can't be any easier than that, can it? + virtual void build() = 0; + }; /* class IProcessHandler */ } /* namespace PIPELINE */ diff --git a/code/nel/tools/pipeline/plugin_library/process_info.h b/code/nel/tools/pipeline/plugin_library/process_info.h index 6e7b5cd6e..df7a34a13 100644 --- a/code/nel/tools/pipeline/plugin_library/process_info.h +++ b/code/nel/tools/pipeline/plugin_library/process_info.h @@ -55,7 +55,7 @@ protected: public: IProcessInfo() : m_PipelineProcess(IPipelineProcess::getInstance()) { } - virtual ~IProcessInfo() { } + virtual ~IProcessInfo() { } void setPipelineProcess(IPipelineProcess *pipelineProcess) { m_PipelineProcess = pipelineProcess; } diff --git a/code/nel/tools/pipeline/plugin_max/process_max_shape.cpp b/code/nel/tools/pipeline/plugin_max/process_max_shape.cpp index 03b5c9bb3..6a165f813 100644 --- a/code/nel/tools/pipeline/plugin_max/process_max_shape.cpp +++ b/code/nel/tools/pipeline/plugin_max/process_max_shape.cpp @@ -54,6 +54,11 @@ CProcessMaxShape::~CProcessMaxShape() } +void CProcessMaxShape::build() +{ + +} + namespace { class CMaxExportShapeCommand : public NLMISC::IRunnable diff --git a/code/nel/tools/pipeline/plugin_max/process_max_shape.h b/code/nel/tools/pipeline/plugin_max/process_max_shape.h index 22797ddb8..519b19b1a 100644 --- a/code/nel/tools/pipeline/plugin_max/process_max_shape.h +++ b/code/nel/tools/pipeline/plugin_max/process_max_shape.h @@ -46,16 +46,12 @@ namespace PIPELINE { */ class CProcessMaxShape : public IProcessHandler { -protected: - // pointers - // ... - - // instances - // ... public: CProcessMaxShape(); virtual ~CProcessMaxShape(); + virtual void build(); + NLMISC_DECLARE_CLASS(CProcessMaxShape) }; /* class CProcessMaxShape */ diff --git a/code/nel/tools/pipeline/plugin_nel/process_interface.cpp b/code/nel/tools/pipeline/plugin_nel/process_interface.cpp index b04da95b4..f025b4ee2 100644 --- a/code/nel/tools/pipeline/plugin_nel/process_interface.cpp +++ b/code/nel/tools/pipeline/plugin_nel/process_interface.cpp @@ -50,6 +50,11 @@ CProcessInterface::~CProcessInterface() } +void CProcessInterface::build() +{ + +} + } /* namespace PIPELINE */ /* end of file */ diff --git a/code/nel/tools/pipeline/plugin_nel/process_interface.h b/code/nel/tools/pipeline/plugin_nel/process_interface.h index 8a047740d..9220002fa 100644 --- a/code/nel/tools/pipeline/plugin_nel/process_interface.h +++ b/code/nel/tools/pipeline/plugin_nel/process_interface.h @@ -46,16 +46,12 @@ namespace PIPELINE { */ class CProcessInterface : public IProcessHandler { -protected: - // pointers - // ... - - // instances - // ... public: CProcessInterface(); virtual ~CProcessInterface(); + virtual void build(); + NLMISC_DECLARE_CLASS(CProcessInterface) }; /* class CProcessInterface */ diff --git a/code/nel/tools/pipeline/plugin_nel/process_interface_info.h b/code/nel/tools/pipeline/plugin_nel/process_interface_info.h index c1e892c31..7543e7fcb 100644 --- a/code/nel/tools/pipeline/plugin_nel/process_interface_info.h +++ b/code/nel/tools/pipeline/plugin_nel/process_interface_info.h @@ -46,12 +46,6 @@ namespace PIPELINE { */ class CProcessInterfaceInfo : public IProcessInfo { -protected: - // pointers - // ... - - // instances - // ... public: CProcessInterfaceInfo(); virtual ~CProcessInterfaceInfo();