IODA Bundle
Tracer.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 #include "odc/utility/Tracer.h"
12 
13 #include <ostream>
14 
15 
16 namespace odc {
17 namespace utility {
18 
19 //----------------------------------------------------------------------------------------------------------------------
20 
21 Tracer::Tracer(std::ostream& o, const std::string& m) :
22  out_(o), message_(m) {
23  //out_ << message_ << " BEGIN" << std::endl;
24  out_ << "BEGIN " << message_ << std::endl;
25 }
26 
28  //out_ << message_ << " END" << std::endl;
29  out_ << "END " << message_ << std::endl;
30 }
31 
32 //----------------------------------------------------------------------------------------------------------------------
33 
34 } // utility
35 } // odc
Tracer(std::ostream &, const std::string &)
Definition: Tracer.cc:21
std::ostream & out_
Definition: Tracer.h:31
std::string message_
Definition: Tracer.h:32
Definition: ColumnInfo.h:23