IODA Bundle
MockReader.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2012 ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #ifndef MockReader_H
12 #define MockReader_H
13 
14 #include "odc/IteratorProxy.h"
15 
16 namespace odc {
17 namespace tool {
18 
19 template <typename T>
21 {
22 public:
23  typedef T iterator_class;
25 
26  iterator begin() { return iterator(new T); }
27  const iterator end() { return iterator(0); }
28 };
29 
30 #include "MockReader.cc"
31 
32 } // namespace tool
33 } // namespace odc
34 
35 #endif
36 
odc::IteratorProxy< T, MockReader, const double > iterator
Definition: MockReader.h:24
const iterator end()
Definition: MockReader.h:27
Definition: ColumnInfo.h:23