Last change
on this file since 2002 was
1999,
checked in by ymipsl, 3 years ago
|
Adapt transformation algorithm to new infrastructure (on going...)
YM
|
-
Property svn:executable set to
*
|
File size:
963 bytes
|
Rev | Line | |
---|
[1984] | 1 | #ifndef __XIOS_TRANSFORM_FILTER_HPP__ |
---|
| 2 | #define __XIOS_TRANSFORM_FILTER_HPP__ |
---|
| 3 | |
---|
| 4 | #include "filter.hpp" |
---|
[1999] | 5 | #include "grid_algorithm.hpp" |
---|
[1984] | 6 | |
---|
| 7 | namespace xios |
---|
| 8 | { |
---|
| 9 | |
---|
| 10 | /*! |
---|
| 11 | * A generic filter with multiple input slots wrapping any type of spatial transformations. |
---|
| 12 | */ |
---|
| 13 | class CTransformFilter : public CFilter, IFilterEngine |
---|
| 14 | { |
---|
| 15 | public: |
---|
| 16 | |
---|
[1999] | 17 | CTransformFilter(CGarbageCollector& gc, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) ; |
---|
[1984] | 18 | |
---|
| 19 | protected: |
---|
| 20 | /*! |
---|
| 21 | Overriding this function to process transformations with auxillary inputs |
---|
| 22 | */ |
---|
| 23 | CDataPacketPtr virtual apply(std::vector<CDataPacketPtr> data) ; |
---|
| 24 | void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest); |
---|
| 25 | |
---|
| 26 | private : |
---|
| 27 | |
---|
[1999] | 28 | CGridAlgorithm* algorithm_ ; |
---|
[1984] | 29 | bool detectMissingValues_ ; |
---|
| 30 | bool defaultValue_ ; |
---|
| 31 | |
---|
| 32 | }; // class CTransformFilter |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | } // namespace xios |
---|
| 36 | |
---|
| 37 | #endif //__XIOS_CSpatialTransformFilter__ |
---|
Note: See
TracBrowser
for help on using the repository browser.