Changeset 756 for XIOS/trunk/src/filter/source_filter.cpp
- Timestamp:
- 10/23/15 10:49:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/source_filter.cpp
r650 r756 2 2 #include "grid.hpp" 3 3 #include "exception.hpp" 4 #include "calendar_util.hpp" 4 5 5 6 namespace xios 6 7 { 7 CSourceFilter::CSourceFilter(CGrid* grid )8 CSourceFilter::CSourceFilter(CGrid* grid, const CDuration offset /*= NoneDu*/) 8 9 : grid(grid) 10 , offset(offset) 9 11 { 10 12 if (!grid) … … 16 18 void CSourceFilter::streamData(CDate date, const CArray<double, N>& data) 17 19 { 20 date = date + offset; // this is a temporary solution, it should be part of a proper temporal filter 21 18 22 CDataPacketPtr packet(new CDataPacket); 19 23 packet->date = date; … … 33 37 void CSourceFilter::streamDataFromServer(CDate date, const std::map<int, CArray<double, 1> >& data) 34 38 { 39 date = date + offset; // this is a temporary solution, it should be part of a proper temporal filter 40 35 41 CDataPacketPtr packet(new CDataPacket); 36 42 packet->date = date;
Note: See TracChangeset
for help on using the changeset viewer.