OutputIntervalTrueNode.cc
1.66 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
59
60
61
62
63
64
65
/*
* OutputIntervalTrueNode.cc
*
* Created on: Oct 31, 2012
* Author: f.casimir
*/
#include <string.h>
// Common module includes
#include "OutputFormatTime.hh"
// Parameters module includes
#include "ServicesServer.hh"
#include "Parameter.hh"
#include "FileConfigurator.hh"
#include "ParameterManager.hh"
using namespace AMDA::Parameters;
// XMLConfigurator module includes
#include "Constant.hh"
// Download module includes
#include "Config.hh"
#include "ParamOutputIntervalTrueFile.hh"
#include "OutputIntervalTrueNode.hh"
using namespace AMDA::XMLConfigurator;
namespace AMDA {
namespace ParamOutputImpl {
namespace Download {
OutputIntervalTrueNode::OutputIntervalTrueNode() : NodeGrpCfg() {
/*
<intervalTrue>
<param id='imf'/>
</intervalTrue>
*/
getChildList()["param"]=NodeCfgSPtr(new SingleParamNode<ParamOutputIntervalTrueFile>());
}
void OutputIntervalTrueNode::proceed(xmlNodePtr pNode,
const AMDA::Parameters::CfgContext& pContext) {
LOG4CXX_DEBUG(gLogger,
"OutputIntervalTrueNode::proceed: '" << pNode->name << "' node")
ParameterManager* lParameterManager = pContext.get<ParameterManager*>();
CfgContext lContext;
ParamOutput* lParamOutputIntervalTrueFile = new ParamOutputIntervalTrueFile(
*lParameterManager);
ParamOutputSPtr lParamOutput(lParamOutputIntervalTrueFile);
lContext.push<ParamOutputIntervalTrueFile*>(dynamic_cast<ParamOutputIntervalTrueFile *>(lParamOutputIntervalTrueFile));
NodeGrpCfg::proceed(pNode, lContext);
lParameterManager->getParamOutputList().push_back(lParamOutput);
}
} // namespace Download
} // namespace ParamOutputImpl
} // namespace AMDA