You need to sign in or sign up before continuing.
Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef ERRLINELOG_HH
#define ERRLINELOG_HH
//--------------------------------------------------------------------------
// $Id: ErrLineLog.hh,v 1.1.1.1 2005/03/29 17:04:19 steinke Exp $
//
// Description:
// Class ErrLineLog :
// Implementation of ErrLog based on ErrStdLog. In addition to
// allowing a user to set the severity of messages sent to the
// output streams (cout and cerr), this version writes the facility
// (file name and line number, if ErrMsg is used) and code (if non-zero)
// in the same way that FrameLogger/AppErrLog does.
//
// Environment:
// Software developed for the BaBar Detector at the SLAC B-Factory.
//
// Author List:
// Michael Kelsey <kelsey@slac.stanford.edu>
//
// Copyright Information:
// Copyright (C) 1999 Princeton University
// Copyright (C) 2004 California Institute of Technology
//
//------------------------------------------------------------------------
//-----------------
// C/C++ Headers --
//-----------------
//----------------------
// Base Class Headers --
//----------------------
#include "ErrLogger/ErrStdLog.hh"
//-------------------------------
// Collaborating Class Headers --
//-------------------------------
//------------------------------------
// Collaborating Class Declarations --
//------------------------------------
class ErrStream; // declare
// ---------------------
// -- Class Interface --
// ---------------------
class ErrLineLog : public ErrStdLog {
public:
// constructor
ErrLineLog( ErrLog::Severity theSeverity = ErrLog::warning );
// destructor
virtual ~ErrLineLog();
protected:
virtual ErrStream& doMsg( ErrLog::Severity severity,
const char* facility,
int code );
// All other interface uses ErrStdLog implementation
private:
// dis-allow copy construction and assignment
ErrLineLog( const ErrLineLog& );
ErrLineLog& operator=( const ErrLineLog& );
};
#endif /* ERRLINELOG_HH */