Blame view

src/PostProcessing/TarNode.cc 754 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * TarNode.cc
 *
 *  Created on: 4 oct. 2013
 *      Author: CS
 */

#include "TarNode.hh"
#include <sstream>

namespace postprocessing {

log4cxx::LoggerPtr TarNode::_logger = log4cxx::Logger::getLogger("AMDA-Kernel.TarNode");

void TarNode::proceed(xmlNodePtr pNode,
		const AMDA::Parameters::CfgContext& pContext) {
	LOG4CXX_DEBUG(_logger, "TarNode::proceed");

	PostProcessingAble* output = pContext.get<PostProcessingAble*>();

	// Set value in output param
	std::stringstream outputNodeName;
87088471   Benjamin Renard   Use file prefix f...
23
24
25
26
27
28
29

	std::string* filePrefix = pContext.get<std::string*>();

	if (filePrefix == NULL)
		outputNodeName << pNode->parent->parent->name;
	else
		outputNodeName << (*filePrefix);
fbe3c2bb   Benjamin Renard   First commit
30
31
32
33
	output->addPostProcessing(new TarPostProcessing(outputNodeName.str()));
}

}