/* * Process.cc * * Created on: Oct 31, 2012 * Author: f.casimir */ #include "Operation.hh" #include "Process.hh" using namespace std; using namespace boost; using namespace log4cxx; namespace AMDA { namespace Parameters { LoggerPtr Process::_logger(Logger::getLogger("AMDA-Kernel.Process")); /** * * Default constructor. */ Process::Process(Parameter ¶meter) : AMDA::Parameters::DataWriter(parameter) ,DataClient() ,_operation(NULL), _refParameterSPtr(ParameterSPtr()), _gapThreshold(NAN), _isUserProcess(false) { } /** * * Default constructor. */ Process::Process(const Process &pProcess, Parameter ¶meter) : AMDA::Parameters::DataWriter(pProcess,parameter) , _attributList(pProcess._attributList) , _expression(pProcess._expression) , _description(pProcess._description) ,_operation(NULL), //No need clone of the operation, it is done in the 'init' method implementation _refParameterSPtr(pProcess._refParameterSPtr), _gapThreshold(pProcess._gapThreshold), _isUserProcess(pProcess._isUserProcess) { } /** * Default destructor. */ Process::~Process() { delete _operation; } } /* namespace Parameters */ } /* namespace AMDA */