IODA Bundle
DispatchingWriter.cc
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 ///
12 /// \file DispatchingWriter.cc
13 ///
14 /// @author Piotr Kuchta, June 2009
15 
16 #include "eckit/config/Resource.h"
17 #include "odc/DispatchingWriter.h"
18 
19 using namespace eckit;
20 
21 namespace odc {
22 
23 DispatchingWriter::DispatchingWriter(const std::string& outputFileTemplate, int maxOpenFiles, bool append)
24 : outputFileTemplate_(outputFileTemplate),
25  maxOpenFiles_(maxOpenFiles ? maxOpenFiles : Resource<long>("$ODBAPI_MAX_OPEN_FILES;-maxOpenFiles;maxOpenFiles", 250)),
26  append_(append)
27 {}
28 
30 
32 {
33  NOTIMP;
34  // TODO:
35  return 0;
36 }
37 
39 {
40  return iterator(new iterator_class(*this, maxOpenFiles_, append_));
41 }
42 
43 } // namespace odc
44 
WriterDispatchingIterator< WriterBufferingIterator, DispatchingWriter > iterator_class
IteratorProxy< iterator_class, DispatchingWriter > iterator
iterator_class * writer()
Definition: ColumnInfo.h:23