Moved public API documentation from the source files into the
[mono.git] / mcs / class / System / System.Diagnostics / TraceSwitch.cs
1 //
2 // System.Diagnostics.TraceSwtich.cs
3 //
4 // Comments from John R. Hicks <angryjohn69@nc.rr.com> original implementation 
5 // can be found at: /mcs/docs/apidocs/xml/en/System.Diagnostics
6 //
7 // Author:
8 //      John R. Hicks (angryjohn69@nc.rr.com)
9 //
10 // (C) 2001
11 //
12
13 namespace System.Diagnostics
14 {
15         public class TraceSwitch : Switch
16         {
17                 private TraceLevel level;
18                 private bool traceError = false;
19                 private bool traceInfo = false;
20                 private bool traceVerbose = false;
21                 private bool traceWarning = false;
22
23                 public TraceSwitch(string displayName, string description)
24                         : base(displayName, description)
25                 {
26                 }
27
28                 public TraceLevel Level
29                 {
30                         get 
31                         {
32                                 return level;
33                         }
34                         set
35                         {
36                                 level = value;
37                         }
38
39                 }
40
41                 public bool TraceError
42                 {
43                         get 
44                         {
45                                 return traceError;
46                         }
47                 }
48
49                 public bool TraceInfo
50                 {
51                         get 
52                         {
53                                 return traceInfo;
54                         }
55                 }
56
57                 public bool TraceVerbose
58                 {
59                         get 
60                         {
61                                 return traceVerbose;
62                         }
63                 }
64
65                 public bool TraceWarning
66                 {
67                         get
68                         {
69                                 return traceWarning;
70                         }
71                 }
72         }
73 }
74