/** * DataWriter.cc * * Created on: Nov 14, 2012 * Author: AKKA IS */ #include "DataWriter.hh" #include "Parameter.hh" #include "ParamData.hh" namespace AMDA { namespace Parameters { log4cxx::LoggerPtr DataWriter::_logger(log4cxx::Logger::getLogger("AMDA-Kernel.DataWriter")); DataWriter::DataWriter(Parameter ¶meter) : _parameter(parameter), _signatureTrigger("") { } DataWriter::DataWriter(const DataWriter &pDataWriter, Parameter &pParameter) : _parameter(pParameter), _timeIntervalList(pDataWriter._timeIntervalList), _paramData(), _signatureTrigger(pDataWriter._signatureTrigger) { //_paramData not copied, must a be different instance of pDataWriter } DataWriter::~DataWriter() { } TimeStamp DataWriter::init(TimeIntervalListSPtr pTimeIntervalList) { LOG4CXX_DEBUG(_logger, "DataWriter => Initialise data writer for parameter: " << _parameter.getId()); _timeIntervalList = pTimeIntervalList; TimeStamp timeStamp = init(); updateInfo(_parameter); return timeStamp; } ParameterManager &DataWriter::getParameterManager() { return _parameter.getParameterManager(); } void DataWriter::updateInfo(Parameter & /*parameter*/) { //nothing to do - each param getter can override this method to update specific param info } } /* namespace Parameters */ } /* namespace AMDA */