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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1020 - (hide annotations)
Mon Mar 12 10:12:36 2007 UTC (12 years, 7 months ago) by phornby
File MIME type: text/plain
File size: 1813 byte(s)
Added explicit destructors to all Exception classes.

Fixed an ifdef in TestCase.cpp

Made the conditional definition of M_PI in LocalOps.h
depend only on M_PI being undefined.

Replace dynamically dimensioned arrays in DataFactory & DataTagged with malloc.

sort() method of list does not take a named argument
(despite the manual's claims to the contary).


1 jgs 82 /*
2 elspeth 615 ************************************************************
3     * Copyright 2006 by ACcESS MNRF *
4     * *
5     * http://www.access.edu.au *
6     * Primary Business: Queensland, Australia *
7     * Licensed under the Open Software License version 3.0 *
8     * http://www.opensource.org/licenses/osl-3.0.php *
9     * *
10     ************************************************************
11 jgs 82 */
12    
13     #if !defined escript_FunctionSpaceException_20040602_H
14     #define escript_FunctionSpaceException_20040602_H
15 woo409 757 #include "system_dep.h"
16 jgs 82
17 robwdcock 682 #include "esysUtils/EsysException.h"
18 jgs 82 #include <string>
19    
20     namespace escript {
21    
22     /**
23     \brief
24     FunctionSpaceException exception class.
25    
26     Description:
27     FunctionSpaceException exception class.
28     The class provides a public function returning the exception name
29     */
30 woo409 757 class FunctionSpaceException:public esysUtils::EsysException {
31 jgs 82
32     public:
33     /**
34     \brief
35     Default constructor for the exception.
36     */
37 woo409 757 ESCRIPT_DLL_API
38 jgs 82 FunctionSpaceException() : EsysException() {}
39     /**
40     \brief
41     Constructor for the exception.
42     */
43 woo409 757 ESCRIPT_DLL_API
44 jgs 82 FunctionSpaceException(const char *cstr) : EsysException(cstr) {}
45     /**
46     \brief
47     Constructor for the exception.
48     */
49 woo409 757 ESCRIPT_DLL_API
50 jgs 82 FunctionSpaceException(const std::string &str) : EsysException(str) {}
51 phornby 1020
52     /// Destructor
53     ESCRIPT_DLL_API
54     virtual ~FunctionSpaceException() throw();
55 jgs 82 /**
56     \brief
57     Returns the name of the exception.
58     */
59 woo409 757 ESCRIPT_DLL_API
60 jgs 82 virtual std::string exceptionName() const {return "FunctionSpaceException";}
61     };
62    
63     } // end of namespace
64     #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26