Xyce
6.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
N_ANP_Report.C
Go to the documentation of this file.
1
//-----------------------------------------------------------------------------
2
// Copyright Notice
3
//
4
// Copyright 2002 Sandia Corporation. Under the terms
5
// of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
6
// Government retains certain rights in this software.
7
//
8
// Xyce(TM) Parallel Electrical Simulator
9
// Copyright (C) 2002-2014 Sandia Corporation
10
//
11
// This program is free software: you can redistribute it and/or modify
12
// it under the terms of the GNU General Public License as published by
13
// the Free Software Foundation, either version 3 of the License, or
14
// (at your option) any later version.
15
//
16
// This program is distributed in the hope that it will be useful,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
// GNU General Public License for more details.
20
//
21
// You should have received a copy of the GNU General Public License
22
// along with this program. If not, see <http://www.gnu.org/licenses/>.
23
//-----------------------------------------------------------------------------
24
25
//-----------------------------------------------------------------------------
26
// Filename : $RCSfile: N_ANP_Report.C,v $
27
//
28
// Purpose : Contains the class definition for the N_ERH_ErrorMgr
29
// class. This class is the error handler for Xyce.
30
//
31
// Special Notes :
32
//
33
// Creator : Eric Keiter, SNL, Parallel Computational Sciences
34
//
35
// Creation Date : 3/15/00
36
//
37
// Revision Information:
38
// ---------------------
39
//
40
// Revision Number: $Revision: 1.3.2.1 $
41
//
42
// Revision Date : $Date: 2014/02/27 00:52:16 $
43
//
44
// Current Owner : $Author: tvrusso $
45
//-----------------------------------------------------------------------------
46
47
#include <
N_ANP_Report.h
>
48
#include <
N_ANP_AnalysisBase.h
>
49
50
namespace
Xyce {
51
namespace
Analysis {
52
53
class
messageHeader
{
54
public
:
55
messageHeader
(
const
AnalysisBase
&analysis_base,
const
std::string &function_name =
""
)
56
:
analysisBase_
(analysis_base),
57
functionName_
(function_name)
58
{}
59
60
const
AnalysisBase
&
analysisBase_
;
61
const
std::string &
functionName_
;
62
};
63
64
65
std::ostream &
operator<<
(std::ostream &os,
const
messageHeader
&x)
66
{
67
if
(!x.
functionName_
.empty())
68
os <<
" in function "
<< x.
functionName_
;
69
70
return
os;
71
}
72
73
74
UserWarning::UserWarning
(
const
AnalysisBase
&analysis_base)
75
{
76
os() <<
messageHeader
(analysis_base) <<
": "
;
77
}
78
79
UserWarning0::UserWarning0
(
const
AnalysisBase
&analysis_base)
80
{
81
os() <<
messageHeader
(analysis_base) <<
": "
;
82
}
83
84
UserFatal::UserFatal
(
const
AnalysisBase
&analysis_base)
85
{
86
os() <<
messageHeader
(analysis_base) <<
": "
;
87
}
88
89
UserFatal0::UserFatal0
(
const
AnalysisBase
&analysis_base)
90
{
91
os() <<
messageHeader
(analysis_base) <<
": "
;
92
}
93
94
DevelFatal::DevelFatal
(
const
AnalysisBase
&analysis_base,
const
std::string &function_name)
95
{
96
os() <<
messageHeader
(analysis_base, function_name) <<
": "
;
97
}
98
99
DevelFatal0::DevelFatal0
(
const
AnalysisBase
&analysis_base,
const
std::string &function_name)
100
{
101
os() <<
messageHeader
(analysis_base, function_name) <<
": "
;
102
}
103
104
DevelFatal0::DevelFatal0
(
const
std::string &function_name)
105
{
106
if
(!function_name.empty())
107
os() <<
" in function "
<< function_name;
108
os() <<
": "
;
109
}
110
111
}
// namespace Analysis
112
}
// namespace Xyce
src
AnalysisPKG
src
N_ANP_Report.C
Generated on Mon Mar 24 2014 10:54:31 for Xyce by
1.8.3.1