Sierra Toolkit  Version of the Day
Writer_fwd.hpp
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2010 Sandia Corporation. */
3 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4 /* license for use of this work by or on behalf of the U.S. Government. */
5 /* Export of this program may require a license from the */
6 /* United States Government. */
7 /*------------------------------------------------------------------------*/
8 
9 #ifndef STK_UTIL_DIAG_WRITER_FWD_HPP
10 #define STK_UTIL_DIAG_WRITER_FWD_HPP
11 
12 namespace stk_classic {
13 
18 
23 enum LogMask {
24  LOG_ALWAYS = 0x00000000,
25  LOG_TRACE = 0x00000001,
26  LOG_TRACE_STATS = 0x00000002,
27  LOG_TRACE_SUB_CALLS = 0x00000004,
28  LOG_MEMBERS = 0x00000008,
29 
30  LOG_STREAM_COMMON = LOG_TRACE | LOG_TRACE_STATS,
31  LOG_PARAMETERS = 0x00000100
32 };
33 
37 
38 namespace diag {
39 
40 class Writer;
41 
42 typedef unsigned long PrintMask;
43 
44 } // namespace diag
45 } // namespace stk_classic
46 
47 namespace sierra {
48 
49 enum LogMask {
50  LOG_ALWAYS = stk_classic::LOG_ALWAYS,
51  LOG_TRACE = stk_classic::LOG_TRACE,
52  LOG_TRACE_STATS = stk_classic::LOG_TRACE_STATS,
53  LOG_TRACE_SUB_CALLS = stk_classic::LOG_TRACE_SUB_CALLS,
54  LOG_MEMBERS = stk_classic::LOG_MEMBERS,
55 
56  LOG_STREAM_COMMON = stk_classic::LOG_STREAM_COMMON,
57  LOG_PARAMETERS = stk_classic::LOG_PARAMETERS
58 };
59 
60 namespace Diag {
61 
62 typedef stk_classic::diag::Writer Writer;
63 
64 class PrintTable;
65 
66 typedef stk_classic::diag::PrintMask PrintMask;
67 
68 } // namespace Diag
69 
70 namespace Slib {
71 enum {
72  LOG_ALWAYS = sierra::LOG_ALWAYS,
73  LOG_TRACE = sierra::LOG_TRACE,
74  LOG_TRACE_STATS = sierra::LOG_TRACE_STATS,
75  LOG_TRACE_SUB_CALLS = sierra::LOG_TRACE_SUB_CALLS,
76  LOG_MEMBERS = sierra::LOG_MEMBERS,
77 
78  LOG_RESOURCE = 0x00000100,
79  LOG_PLUGIN = 0x00000200,
80  LOG_GLOBAL_VARIABLE = 0x00000400,
81  LOG_MEMORY = 0x00000800
82 };
83 
84 } // namespace Slib
85 
86 } // namespace sierra
87 
88 
89 #endif // STK_UTIL_DIAG_WRITER_FWD_HPP
Definition: Env.cpp:53
Sierra Toolkit.
Class Writer implements a runtime selectable diagnostic output writer to aid in the development and d...
Definition: Writer.hpp:49
LogMask
Enumeration LogMask enumerates global bit assignments.
Definition: Writer_fwd.hpp:23