source: XIOS/trunk/src/filter/pass_through_filter.cpp @ 827

Last change on this file since 827 was 641, checked in by rlacroix, 9 years ago

Use the filter infrastructure to handle field references.

Add a pass-through filter to do so.

File size: 296 bytes
Line 
1#include "pass_through_filter.hpp"
2
3namespace xios
4{
5  CPassThroughFilter::CPassThroughFilter(CGarbageCollector& gc)
6    : CFilter(gc, 1, this)
7  { /* Nothing to do */ }
8
9  CDataPacketPtr CPassThroughFilter::apply(std::vector<CDataPacketPtr> data)
10  {
11    return data[0];
12  }
13} // namespace xios
Note: See TracBrowser for help on using the repository browser.