#include "transform_filter.hpp" #include "grid_algorithm.hpp" #include "workflow_graph.hpp" namespace xios { CTransformFilter::CTransformFilter( CGarbageCollector& gc, int slots, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) : CFilter(gc, slots, this), algorithm_(algo), detectMissingValues_(detectMissingValues), defaultValue_(defaultValue) { } CDataPacketPtr CTransformFilter::apply(std::vector data) { // for now, no auxilliairy field CDataPacketPtr packet(new CDataPacket); packet->date = data[0]->date; packet->timestamp = data[0]->timestamp; packet->status = data[0]->status; if (packet->status == CDataPacket::NO_ERROR) { cout<<"transformeFilter = "<getAlgoName(), 4, false, 1, packet); CWorkflowGraph::addEdge(packet->graphPackage->fromFilter, this->graphPackage->filterId, packet); packet->graphPackage->fromFilter = this->graphPackage->filterId; packet->graphPackage->currentField = this->graphPackage->inFields[0]; } } }