source: XIOS/trunk/src/filter/pass_through_filter.hpp @ 1878

Last change on this file since 1878 was 1704, checked in by yushan, 5 years ago

Introducing the new graph functionality. Attribute build_workflow_graph=.TRUE. is used in the field definition section in the xml file to enable the workflow graph of the field and other fields referecing to it. A more detailed document will be available soon on the graph fuctionality.

File size: 1.0 KB
RevLine 
[641]1#ifndef __XIOS_CPassThroughFilter__
2#define __XIOS_CPassThroughFilter__
3
4#include "filter.hpp"
5
6namespace xios
7{
8  /*!
9   * A simple pass-through filter with one input slot.
10   * The pass-through filter is used to handle references on a field.
11   */
12  class CPassThroughFilter : public CFilter, public IFilterEngine
13  {
14    public:
15      /*!
16       * Constructs a pass-through filter with the one input slot.
17       *
18       * \param gc the associated garbage collector
19       */
20      CPassThroughFilter(CGarbageCollector& gc);
21
[1704]22      inline StdString GetName(void) {return StdString("Pass through filter");};
23
[641]24    protected:
25      /*!
26       * Returns the input packet without making any modification to it.
27       *
28       * \param data a vector of packets corresponding to each slot
29       * \return the untouched source data packet
30       */
31      CDataPacketPtr virtual apply(std::vector<CDataPacketPtr> data);
[1704]32      void virtual buildGraph(std::vector<CDataPacketPtr> data);
[641]33  }; // class CPassThroughFilter
34} // namespace xios
35
36#endif //__XIOS_CPassThroughFilter__
Note: See TracBrowser for help on using the repository browser.