/[escript]/trunk/finley/src/CPPAdapter/FinleyError.h
ViewVC logotype

Annotation of /trunk/finley/src/CPPAdapter/FinleyError.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2895 - (hide annotations)
Fri Jan 29 04:58:16 2010 UTC (9 years, 5 months ago) by caltinay
File MIME type: text/plain
File size: 1149 byte(s)
Moved finley's system_dep.h file up to the C level to be able to export two
functions that are used by the dataexporter. Changed include paths and C++
style comments accordingly.

1 ksteube 1312
2     /*******************************************************
3 ksteube 1811 *
4 jfenwick 2881 * Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 * Earth Systems Science Computational Center (ESSCC)
6     * http://www.uq.edu.au/esscc
7     *
8     * Primary Business: Queensland, Australia
9     * Licensed under the Open Software License version 3.0
10     * http://www.opensource.org/licenses/osl-3.0.php
11     *
12     *******************************************************/
13 ksteube 1312
14 ksteube 1811
15 jgs 82 #if !defined finley_FinleyError_20040528_H
16     #define finley_FinleyError_20040528_H
17 caltinay 2895 #include "finley/system_dep.h"
18 jgs 82
19     extern "C" {
20 caltinay 2895 #include "finley/Finley.h"
21 jgs 82 }
22    
23 jgs 472 #include "FinleyAdapterException.h"
24    
25 jgs 82 #include <string>
26    
27     namespace finley {
28     /**
29     \brief
30     Provide a C++ interface to the finley C funcion of the same name.
31     Needed because of constness problems.
32     */
33 woo409 757 FINLEY_DLL_API
34 jgs 150 void setFinleyError(Finley_ErrorCodeType errorCode,
35 jgs 82 const std::string& errMess);
36    
37     /**
38     \brief
39     Convert a C finley error into a C++ exception.
40     */
41 woo409 757 FINLEY_DLL_API
42 jgs 82 void checkFinleyError();
43 jgs 150 /**
44     \brief
45     Convert a C paso error into a C++ exception.
46     */
47 woo409 757 FINLEY_DLL_API
48 jgs 150 void checkPasoError();
49 jgs 82 } // end of namespace
50     #endif

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26