Manticore  Version 1.0
Physics of Molecular Clouds
statics.cc
Go to the documentation of this file.
1 
8 #include "mutils/Exception.h"
9 #include "mutils/util.h"
10 
11 namespace mutils {
12 
13 // Static variables declared in <mutils/Exception.h>.
14 bool Exception::errors = false;
15 
16 
17 // Static variables declared in <mutils/Log.h>.
18 int Log::level = Log::WARN;
19 FILE *Log::stream = stderr;
20 std::string Log::file = "!";
21 
22 
23 // Namespace variables declared in <mutils/util.h>.
24 std::string::size_type npos = std::string::npos;
25 const std::string nullStr(1, 0);
26 
43 const std::string siPrefixes("YZEPTGMkhDdcmunpfazy");
44 
45 const std::map<char, const char *> siScaleMap{
46  {'Y', "1e24"}, {'Z', "1e21"}, {'E', "1e18"}, {'P', "1e15"},
47  {'T', "1e12"}, {'G', "1e9"}, {'M', "1e6"}, {'k', "1e3"},
48  {'h', "1e2"}, {'D', "1e1"}, {'d', "1e-1"}, {'c', "1e-2"},
49  {'m', "1e-3"}, {'u', "1e-6"}, {'n', "1e-9"}, {'p', "1e-12"},
50  {'f', "1e-15"}, {'a', "1e-18"}, {'z', "1e-21"}, {'y', "1e-24"}
51  };
52 
53 } // namespace mutils
static bool errors
Whether to print error messages (else throw exceptions).
Definition: Exception.h:182
static std::string file
Message log file name.
Definition: Log.h:436
static FILE * stream
Message log file stream.
Definition: Log.h:433
static constexpr int WARN
Warning condition.
Definition: Log.h:348
const std::string nullStr(1, 0)
const std::string siPrefixes("YZEPTGMkhDdcmunpfazy")
static int level
Message logging level for output to stream.
Definition: Log.h:430
The MathUtils miscellaneous utilities library.
MathUtils package.
Definition: CommandLine.cc:10
std::string::size_type npos
Definition: statics.cc:24
const std::map< char, const char * > siScaleMap
Definition: statics.cc:45
Defines the Exception base class.