Blame view

src/PostProcessing/ZipNode.cc 750 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
/*
 * ZipNode.cc
 *
 *  Created on: 4 oct. 2013
 *      Author: CS
 */

#include "ZipNode.hh"

namespace postprocessing {

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

void ZipNode::proceed(xmlNodePtr pNode,
			const AMDA::Parameters::CfgContext& pContext) {
		LOG4CXX_DEBUG(_logger, "ZipNode::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
30

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

		if (filePrefix == NULL)
			outputNodeName << pNode->parent->parent->name;
		else
			outputNodeName << (*filePrefix);

fbe3c2bb   Benjamin Renard   First commit
31
32
33
		output->addPostProcessing(new ZipPostProcessing(outputNodeName.str()));
	}
}