/[escript]/branches/windows_from_1431_trunk/escript/src/FunctionSpaceException.h
ViewVC logotype

Diff of /branches/windows_from_1431_trunk/escript/src/FunctionSpaceException.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1440 by trankine, Wed Feb 27 10:02:34 2008 UTC revision 1441 by trankine, Thu Feb 28 06:50:26 2008 UTC
# Line 2  Line 2 
2  /* $Id$ */  /* $Id$ */
3    
4  /*******************************************************  /*******************************************************
5   *  *
6   *           Copyright 2003-2007 by ACceSS MNRF  *           Copyright 2003-2007 by ACceSS MNRF
7   *       Copyright 2007 by University of Queensland  *       Copyright 2007 by University of Queensland
8   *  *
9   *                http://esscc.uq.edu.au  *                http://esscc.uq.edu.au
10   *        Primary Business: Queensland, Australia  *        Primary Business: Queensland, Australia
11   *  Licensed under the Open Software License version 3.0  *  Licensed under the Open Software License version 3.0
12   *     http://www.opensource.org/licenses/osl-3.0.php  *     http://www.opensource.org/licenses/osl-3.0.php
13   *  *
14   *******************************************************/  *******************************************************/
15    
16  #if !defined  escript_FunctionSpaceException_20040602_H  #if !defined  escript_FunctionSpaceException_20040602_H
17  #define escript_FunctionSpaceException_20040602_H  #define escript_FunctionSpaceException_20040602_H
18  #include "system_dep.h"  #include "system_dep.h"
19    
20  #include "esysUtils/EsysException.h"  #include "esysUtils/EsysException.h"
 #include <string>  
21    
22  namespace escript {  namespace escript
23    {
24    
 /**  
    \brief  
    FunctionSpaceException exception class.  
   
    Description:  
    FunctionSpaceException exception class.  
    The class provides a public function returning the exception name  
 */  
 class FunctionSpaceException:public esysUtils::EsysException {  
   
  public:  
25    /**    /**
26       \brief    \brief
27       Default constructor for the exception.    FunctionSpaceException exception class.
   */  
   ESCRIPT_DLL_API  
   FunctionSpaceException() : EsysException() {}  
   /**  
      \brief  
      Constructor for the exception.  
   */  
   ESCRIPT_DLL_API  
   FunctionSpaceException(const char *cstr) : EsysException(cstr) {}  
   /**  
      \brief  
      Constructor for the exception.  
   */  
   ESCRIPT_DLL_API  
   FunctionSpaceException(const std::string &str) : EsysException(str) {}  
28    
29    /// Destructor    Description:
30    ESCRIPT_DLL_API    FunctionSpaceException exception class.
31    virtual ~FunctionSpaceException() throw() {}    The class provides a public function returning the exception name
   /**  
      \brief  
      Returns the name of the exception.  
32    */    */
33    ESCRIPT_DLL_API    class FunctionSpaceException : public esysUtils::EsysException
34    virtual std::string exceptionName() const {return "FunctionSpaceException";}    {
35  };  
36      public:
37        /**
38        \brief
39        Default constructor for the exception.
40        */
41        ESCRIPT_DLL_API
42        FunctionSpaceException() : EsysException() {}
43        /**
44        \brief
45        Constructor for the exception.
46        */
47        ESCRIPT_DLL_API
48        FunctionSpaceException(const char *cstr) : EsysException(cstr) {}
49        /**
50        \brief
51        Constructor for the exception.
52        */
53        ESCRIPT_DLL_API
54        FunctionSpaceException(const std::string &str) : EsysException(str) {}
55    
56        /// Destructor
57        ESCRIPT_DLL_API
58        virtual ~FunctionSpaceException() throw() {}
59        /**
60        \brief
61        Returns the name of the exception.
62        */
63        ESCRIPT_DLL_API
64        virtual const std::string & exceptionName() const;
65    
66      private:
67    
68        //
69        // the exception name is immutable and class-wide.
70        // Inheritor note; you need one of these too.
71        // and an overloaded exceptionName() in your .cpp implementation file.
72        static const std::string exceptionNameValue;
73      };
74    
75  } // end of namespace  } // end of namespace
76  #endif  #endif

Legend:
Removed from v.1440  
changed lines
  Added in v.1441

  ViewVC Help
Powered by ViewVC 1.1.26