IODA Bundle
ODBTarget.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2016 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 /// @file ODBTarget.h
12 /// @author Piotr Kuchta
13 
14 #ifndef odbapi_ODBTarget_h
15 #define odbapi_ODBTarget_h
16 
17 #include <utility>
18 
19 #include "eckit/log/WrapperTarget.h"
20 
21 namespace odc {
22 
23 //----------------------------------------------------------------------------------------------------------------------
24 
25 class ODBTarget : public eckit::WrapperTarget {
26 public:
27 
28  ODBTarget(const char* tag = "", eckit::LogTarget* target = 0);
29 
30 private:
31 
32  virtual void writePrefix();
33  virtual void writeSuffix();
34 
35  void print(std::ostream& s) const;
36 
37 private:
38 
39  const char* tag_;
40 
41 };
42 
43 } // namespace odc
44 
45 #endif
virtual void writeSuffix()
Definition: ODBTarget.cc:50
const char * tag_
Definition: ODBTarget.h:39
void print(std::ostream &s) const
Definition: ODBTarget.cc:45
virtual void writePrefix()
Definition: ODBTarget.cc:26
ODBTarget(const char *tag="", eckit::LogTarget *target=0)
Definition: ODBTarget.cc:21
Definition: ColumnInfo.h:23