Process.cc
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* 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()), _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), _isUserProcess(pProcess._isUserProcess)
{
}
/**
* Default destructor.
*/
Process::~Process() {
delete _operation;
}
} /* namespace Parameters */
} /* namespace AMDA */