/[escript]/branches/domexper/dudley/src/CPPAdapter/DudleyError.h
ViewVC logotype

Diff of /branches/domexper/dudley/src/CPPAdapter/DudleyError.h

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

revision 471 by jgs, Fri Jan 27 01:33:02 2006 UTC revision 2548 by jfenwick, Mon Jul 20 06:20:06 2009 UTC
# Line 1  Line 1 
1  /*  
2   ******************************************************************************  /*******************************************************
3   *                                                                            *  *
4   *       COPYRIGHT  ACcESS 2004 -  All Rights Reserved                        *  * Copyright (c) 2003-2009 by University of Queensland
5   *                                                                            *  * Earth Systems Science Computational Center (ESSCC)
6   * This software is the property of ACcESS. No part of this code              *  * http://www.uq.edu.au/esscc
7   * may be copied in any form or by any means without the expressed written    *  *
8   * consent of ACcESS.  Copying, use or modification of this software          *  * Primary Business: Queensland, Australia
9   * by any unauthorised person is illegal unless that person has a software    *  * Licensed under the Open Software License version 3.0
10   * license agreement with ACcESS.                                             *  * http://www.opensource.org/licenses/osl-3.0.php
11   *                                                                            *  *
12   ******************************************************************************  *******************************************************/
13  */  
14                                                                              
15  #if !defined  finley_FinleyError_20040528_H  #if !defined  finley_FinleyError_20040528_H
16  #define finley_FinleyError_20040528_H  #define finley_FinleyError_20040528_H
17    #include "system_dep.h"
18    
19  extern "C" {  extern "C" {
20  #include "Finley.h"  #include "../Finley.h"
21  }  }
22    
23    #include "FinleyAdapterException.h"
24    
25  #include <string>  #include <string>
26    
27  namespace finley {  namespace finley {
# Line 27  namespace finley { Line 30  namespace finley {
30       Provide a C++ interface to the finley C funcion of the same name.       Provide a C++ interface to the finley C funcion of the same name.
31       Needed because of constness problems.       Needed because of constness problems.
32    */    */
33      FINLEY_DLL_API
34    void setFinleyError(Finley_ErrorCodeType errorCode,    void setFinleyError(Finley_ErrorCodeType errorCode,
35                const std::string& errMess);                const std::string& errMess);
36    
# Line 34  namespace finley { Line 38  namespace finley {
38       \brief       \brief
39       Convert a C finley error into a C++ exception.       Convert a C finley error into a C++ exception.
40    */    */
41      FINLEY_DLL_API
42    void checkFinleyError();    void checkFinleyError();
43    /**    /**
44       \brief       \brief
45       Convert a C paso  error into a C++ exception.       Convert a C paso  error into a C++ exception.
46    */    */
47      FINLEY_DLL_API
48    void checkPasoError();    void checkPasoError();
49  } // end of namespace  } // end of namespace
50  #endif  #endif

Legend:
Removed from v.471  
changed lines
  Added in v.2548

  ViewVC Help
Powered by ViewVC 1.1.26