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>
20
class
MockReader
21
{
22
public
:
23
typedef
T
iterator_class
;
24
typedef
odc::IteratorProxy<T, MockReader, const double>
iterator
;
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
IteratorProxy.h
MockReader.cc
odc::IteratorProxy
Definition:
IteratorProxy.h:123
odc::tool::MockReader
Definition:
MockReader.h:21
odc::tool::MockReader::iterator_class
T iterator_class
Definition:
MockReader.h:23
odc::tool::MockReader::iterator
odc::IteratorProxy< T, MockReader, const double > iterator
Definition:
MockReader.h:24
odc::tool::MockReader::begin
iterator begin()
Definition:
MockReader.h:26
odc::tool::MockReader::end
const iterator end()
Definition:
MockReader.h:27
odc
Definition:
ColumnInfo.h:23
odc
src
odc
tools
MockReader.h
Generated on Fri Aug 20 2021 11:49:07 for IODA Bundle by
1.9.1