/* * TarNode.cc * * Created on: 4 oct. 2013 * Author: CS */ #include "TarNode.hh" #include 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(); // Set value in output param std::stringstream outputNodeName; std::string* filePrefix = pContext.get(); if (filePrefix == NULL) outputNodeName << pNode->parent->parent->name; else outputNodeName << (*filePrefix); output->addPostProcessing(new TarPostProcessing(outputNodeName.str())); } }