IODA Bundle
DispatchingWriter.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 ///
12 /// \file DispatchingWriter.h
13 ///
14 /// @author Piotr Kuchta, June 2009
15 
16 #ifndef odc_DispatchingWriter_H
17 #define odc_DispatchingWriter_H
18 
21 
22 namespace eckit { class PathName; }
23 
24 namespace odc {
25 
27 {
28 public:
31 
32  DispatchingWriter(const std::string &outputFileTemplate, int maxOpenFiles = 0, bool append = false);
33  virtual ~DispatchingWriter();
34 
35  const std::string outputFileTemplate() { return outputFileTemplate_; }
36 
37  iterator begin();
38 
39 protected:
41 
42 private:
43 // No copy allowed
46 
47  const std::string outputFileTemplate_;
49  bool append_;
50 };
51 
52 } // namespace odc
53 
54 #endif
WriterDispatchingIterator< WriterBufferingIterator, DispatchingWriter > iterator_class
IteratorProxy< iterator_class, DispatchingWriter > iterator
DispatchingWriter(const DispatchingWriter &)
DispatchingWriter & operator=(const DispatchingWriter &)
DispatchingWriter(const std::string &outputFileTemplate, int maxOpenFiles=0, bool append=false)
const std::string outputFileTemplate_
iterator_class * writer()
const std::string outputFileTemplate()
Definition: ColumnInfo.h:23