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

Annotation of /trunk/escript/src/FunctionSpaceException.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4154 - (hide annotations)
Tue Jan 22 09:30:23 2013 UTC (6 years, 10 months ago) by jfenwick
File MIME type: text/plain
File size: 2465 byte(s)
Round 1 of copyright fixes
1 ksteube 1312
2 jfenwick 3981 /*****************************************************************************
3 phornby 1455 *
4 jfenwick 4154 * Copyright (c) 2003-2013 by University of Queensland
5 jfenwick 3981 * http://www.uq.edu.au
6 phornby 1455 *
7 ksteube 1811 * Primary Business: Queensland, Australia
8     * Licensed under the Open Software License version 3.0
9     * http://www.opensource.org/licenses/osl-3.0.php
10 phornby 1455 *
11 jfenwick 3981 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12     * Development since 2012 by School of Earth Sciences
13     *
14     *****************************************************************************/
15 ksteube 1312
16 ksteube 1811
17 jgs 82 #if !defined escript_FunctionSpaceException_20040602_H
18     #define escript_FunctionSpaceException_20040602_H
19 woo409 757 #include "system_dep.h"
20 jgs 82
21 robwdcock 682 #include "esysUtils/EsysException.h"
22 jgs 82
23 phornby 1455 namespace escript
24     {
25 jgs 82
26     /**
27 phornby 1455 \brief
28     FunctionSpaceException exception class.
29 phornby 1020
30 phornby 1455 Description:
31     FunctionSpaceException exception class.
32     The class provides a public function returning the exception name
33 jgs 82 */
34 phornby 1455 class FunctionSpaceException : public esysUtils::EsysException
35     {
36 jgs 82
37 phornby 1455 protected:
38    
39     typedef EsysException Parent;
40    
41     public:
42     /**
43     \brief
44     Default constructor for the exception.
45     */
46     ESCRIPT_DLL_API
47     FunctionSpaceException() : Parent() { updateMessage();}
48     /**
49     \brief
50     Constructor for the exception.
51     */
52     ESCRIPT_DLL_API
53     FunctionSpaceException(const char *cstr) : Parent(cstr) { updateMessage();}
54     /**
55     \brief
56     Constructor for the exception.
57     */
58     ESCRIPT_DLL_API
59     FunctionSpaceException(const std::string &str) :
60     Parent(str) { updateMessage();}
61     /**
62     \brief
63     Copy Constructor for the exception.
64     */
65     ESCRIPT_DLL_API
66     FunctionSpaceException(const FunctionSpaceException &other) : Parent(other)
67     {
68     updateMessage();
69     }
70    
71 phornby 1628 ESCRIPT_DLL_API
72 phornby 1649 inline FunctionSpaceException &
73 phornby 2019 operator=(const FunctionSpaceException &other ) THROW(NO_ARG)
74 phornby 1628 {
75     Parent::operator=(other);
76     updateMessage();
77     return *this;
78     }
79 phornby 1455
80 phornby 1628
81 phornby 1455 /// Destructor
82     ESCRIPT_DLL_API
83 phornby 2019 virtual ~FunctionSpaceException() THROW(NO_ARG) {}
84 phornby 1455 /**
85     \brief
86     Returns the name of the exception.
87     */
88     ESCRIPT_DLL_API
89     virtual const std::string & exceptionName() const;
90    
91     private:
92    
93     //
94     // the exception name is immutable and class-wide.
95     // Inheritor note; you need one of these too.
96     // and an overloaded exceptionName() in your .cpp implementation file.
97     static const std::string exceptionNameValue;
98     };
99    
100 jgs 82 } // end of namespace
101     #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26