Pv_ionosProcess.cc
1.84 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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Pv_ionosProcess.c++
* Author: hacene
*
* Created on October 14, 2021, 4:25 PM
*/
#include "Operation.hh"
#include "ParameterManager.hh"
#include "ParameterCreatorFromExpression.hh"
#include <boost/lexical_cast.hpp>
#include "DicError.hh"
#include "AMDA_exception.hh"
#include "CainCreator.hh"
#include "Pv_ionosProcess.hh"
namespace AMDA {
namespace Parameters {
Pv_ionosProcess::Pv_ionosProcess(Parameter& parameter) : SingleParamProcess_CRTP(parameter) {
}
Pv_ionosProcess::Pv_ionosProcess(const Pv_ionosProcess& pProcess, Parameter ¶meter) : SingleParamProcess_CRTP(pProcess, parameter) {
}
Pv_ionosProcess::~Pv_ionosProcess() {
}
TimeStamp Pv_ionosProcess::init() {
if (_attributList.size() < 1) {
BOOST_THROW_EXCEPTION(AMDA::AMDA_exception() << AMDA::errno_code(AMDA_PROCESS_ERR) << AMDA::ex_msg(std::string("Pv_ionosProcess::init required at least 1 attribute")));
}
std::string ouputType = _attributList[0];
TimeStamp timeStamp = _parameterInput->init(this, _timeIntervalList);
Parameter::InfoList lInfoList = _parameterInput->getInfoList();
_parameter.getInfoList().insert(lInfoList.begin(), lInfoList.end());
_paramInput = _parameterInput->getParamData(this).get();
CainCreator ICreator(*this, *_paramInput, ouputType);
_operation = ICreator.getOperation();
_paramData = ParamDataSPtr(_operation->getParamOutput());
_paramData->setMinSampling(_paramInput->getMinSampling());
return timeStamp;
}
}
}