/[escript]/trunk/escript/src/DomainException.h
ViewVC logotype

Contents of /trunk/escript/src/DomainException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1628 - (show annotations)
Fri Jul 11 13:12:46 2008 UTC (11 years, 2 months ago) by phornby
File MIME type: text/plain
File size: 2274 byte(s)

Merge in /branches/windows_from_1456_trunk_1620_merged_in branch.

You will find a preserved pre-merge trunk in tags under tags/trunk_at_1625.
That will be useful for diffing & checking on my stupidity.

Here is a list of the conflicts and their resolution at this
point in time.


=================================================================================
(LLWS == looks like white space).

finley/src/Assemble_addToSystemMatrix.c - resolve to branch - unused var. may be wrong.....
finley/src/CPPAdapter/SystemMatrixAdapter.cpp - resolve to branch - LLWS
finley/src/CPPAdapter/MeshAdapter.cpp - resolve to branch - LLWS
paso/src/PCG.c - resolve to branch - unused var fixes.
paso/src/SolverFCT.c - resolve to branch - LLWS
paso/src/FGMRES.c - resolve to branch - LLWS
paso/src/Common.h - resolve to trunk version. It's omp.h's include... not sure it's needed,
but for the sake of saftey.....
paso/src/Functions.c - resolve to branch version, indentation/tab removal and return error
on bad unimplemented Paso_FunctionCall.
paso/src/SolverFCT_solve.c - resolve to branch version, unused vars
paso/src/SparseMatrix_MatrixVector.c - resolve to branch version, unused vars.
escript/src/Utils.cpp - resloved to branch, needs WinSock2.h
escript/src/DataExpanded.cpp - resolved to branch version - LLWS
escript/src/DataFactory.cpp - resolve to branch version
=================================================================================

This currently passes tests on linux (debian), but is not checked on windows or Altix yet.

This checkin is to make a trunk I can check out for windows to do tests on it.

Known outstanding problem is in the operator=() method of exceptions
causing warning messages on the intel compilers.

May the God of doughnuts have mercy on my soul.


1
2 /* $Id$ */
3
4 /*******************************************************
5 *
6 * Copyright 2003-2007 by ACceSS MNRF
7 * Copyright 2007 by University of Queensland
8 *
9 * http://esscc.uq.edu.au
10 * Primary Business: Queensland, Australia
11 * Licensed under the Open Software License version 3.0
12 * http://www.opensource.org/licenses/osl-3.0.php
13 *
14 *******************************************************/
15
16 #if !defined escript_DomainException_20040608_H
17 #define escript_DomainException_20040608_H
18 #include "system_dep.h"
19
20 #include "esysUtils/EsysException.h"
21
22 namespace escript
23 {
24
25 /**
26 \brief
27 DomainException exception class.
28
29 Description:
30 DomainException exception class.
31 The class provides a public function returning the exception name
32 */
33 class DomainException : public esysUtils::EsysException
34 {
35
36 protected:
37
38 typedef EsysException Parent;
39
40 public:
41 /**
42 \brief
43 Default constructor for the exception.
44 */
45 ESCRIPT_DLL_API
46 DomainException() : Parent() { updateMessage();}
47 /**
48 \brief
49 Constructor for the exception.
50 */
51 ESCRIPT_DLL_API
52 DomainException(const char *cstr) : Parent(cstr) { updateMessage();}
53 /**
54 \brief
55 Constructor for the exception.
56 */
57 ESCRIPT_DLL_API
58 DomainException(const std::string &str) : Parent(str) { updateMessage();}
59 /**
60 \brief
61 Copy Constructor for the exception.
62 */
63 ESCRIPT_DLL_API
64 DomainException(const DomainException &other) : Parent(other)
65 {
66 updateMessage();
67 }
68
69 ESCRIPT_DLL_API
70 inline virtual DomainException &
71 operator=(const DomainException &other ) THROW_ANY
72 {
73 Parent::operator=(other);
74 updateMessage();
75 return *this;
76 }
77
78 /// Destructor
79 ESCRIPT_DLL_API
80 virtual ~DomainException() THROW_ANY {}
81 /**
82 \brief
83 Returns the name of the exception.
84 */
85 ESCRIPT_DLL_API
86 virtual const std::string & exceptionName() const;
87
88 private:
89
90 //
91 // the exception name is immutable and class-wide.
92 // Inheritor note; you need one of these too.
93 // and an overloaded exceptionName() in your .cpp implementation file.
94 static const std::string exceptionNameValue;
95 };
96
97 } // end of namespace
98 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26