CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CloseCoutSentry.h
Go to the documentation of this file.
1 #ifndef HiggsAnalysis_CombinedLimit_CloseCoutSentry_
2 #define HiggsAnalysis_CombinedLimit_CloseCoutSentry_
3 
5 #include <cstdio>
6 
8  public:
9  CloseCoutSentry(bool silent = true) ;
11  // clear, if I was the one closing it
12  void clear() ;
13  // break through any sentry, even the ones above myself (for critical error messages, or debug)
14  static void breakFree() ;
15  FILE *trueStdOut();
16  private:
17  bool silent_;
18  static int fdOut_, fdErr_;
19  static bool open_;
20  // always clear, even if I was not the one closing it
21  void static reallyClear() ;
22  static FILE *trueStdOut_;
24 };
25 
26 #endif
static FILE * trueStdOut_
static int fdErr_
static void breakFree()
static void reallyClear()
CloseCoutSentry(bool silent=true)
static bool open_
static int fdOut_