logstream.cpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 #include "logstream.hpp"
40 
41 namespace gnsstk
42 {
43 
44  // This is a terrible kludge that nevertheless is necessary
45  // under Windows 2003 and 2005 because global optimization
46  // (compiler switch /O1 or /O2 or /Og) causes the reportingLevel
47  // to be defined ONLY in the module in which ReportingLevel() is
48  // assigned. Rather than give up optimization or
49  // ReportingLevel(), I came up with this kludge, which is to
50  // remove reportingLevel from the ReportingLevel() function and
51  // make it a static member of the class, then initialize it
52  // outside the class.
53  // Similarly for dumpTimeTags and dumpLevels.
54 #ifdef WIN32
55 //#ifndef LOGSTREAM_INITIALIZE_REPORTING_LEVEL
56 //#define LOGSTREAM_INITIALIZE_REPORTING_LEVEL
57  template<> LogLevel Log<ConfigureLOGstream>::reportingLevel = INFO;
58  template<> bool Log<ConfigureLOGstream>::dumpTimeTags = false;
59  template<> bool Log<ConfigureLOGstream>::dumpLevels = false;
60 //#endif
61 #endif
62 }
logstream.hpp
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::LogLevel
LogLevel
Definition: logstream.hpp:57
gnsstk::INFO
@ INFO
Definition: logstream.hpp:57


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39