TarNode.cc
754 Bytes
/*
* 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;
std::string* filePrefix = pContext.get<std::string*>();
if (filePrefix == NULL)
outputNodeName << pNode->parent->parent->name;
else
outputNodeName << (*filePrefix);
output->addPostProcessing(new TarPostProcessing(outputNodeName.str()));
}
}