Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
HiggsAnalysis
CombinedLimit
interface
CloseCoutSentry.h
Go to the documentation of this file.
1
#ifndef HiggsAnalysis_CombinedLimit_CloseCoutSentry_
2
#define HiggsAnalysis_CombinedLimit_CloseCoutSentry_
3
5
#include <cstdio>
6
7
class
CloseCoutSentry
{
8
public
:
9
CloseCoutSentry
(
bool
silent =
true
) ;
10
~CloseCoutSentry
();
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_
;
23
bool
stdOutIsMine_
;
24
};
25
26
#endif
CloseCoutSentry::trueStdOut_
static FILE * trueStdOut_
Definition:
CloseCoutSentry.h:22
CloseCoutSentry::fdErr_
static int fdErr_
Definition:
CloseCoutSentry.h:18
CloseCoutSentry::silent_
bool silent_
Definition:
CloseCoutSentry.h:17
CloseCoutSentry::breakFree
static void breakFree()
Definition:
CloseCoutSentry.cc:54
CloseCoutSentry::trueStdOut
FILE * trueStdOut()
Definition:
CloseCoutSentry.cc:59
CloseCoutSentry::reallyClear
static void reallyClear()
Definition:
CloseCoutSentry.cc:43
CloseCoutSentry::CloseCoutSentry
CloseCoutSentry(bool silent=true)
Definition:
CloseCoutSentry.cc:11
CloseCoutSentry
Definition:
CloseCoutSentry.h:7
CloseCoutSentry::clear
void clear()
Definition:
CloseCoutSentry.cc:34
CloseCoutSentry::stdOutIsMine_
bool stdOutIsMine_
Definition:
CloseCoutSentry.h:23
CloseCoutSentry::open_
static bool open_
Definition:
CloseCoutSentry.h:19
CloseCoutSentry::~CloseCoutSentry
~CloseCoutSentry()
Definition:
CloseCoutSentry.cc:29
CloseCoutSentry::fdOut_
static int fdOut_
Definition:
CloseCoutSentry.h:18
Generated for CMSSW Reference Manual by
1.8.5