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

Contents of /trunk/dudley/src/CPPAdapter/DudleyError.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3892 - (show annotations)
Tue Apr 10 08:57:23 2012 UTC (6 years, 9 months ago) by jfenwick
File MIME type: text/plain
File size: 1142 byte(s)
Merged changes across from the attempt2 branch.
This version builds and passes python2 tests.
It also passes most python3 tests.



1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2010 by University of Queensland
5 * 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
14
15 #if !defined dudley_DudleyError_20040528_H
16 #define dudley_DudleyError_20040528_H
17 #include "system_dep.h"
18
19 extern "C" {
20 #include "dudley/Dudley.h"
21 }
22
23 #include "DudleyAdapterException.h"
24
25 #include <string>
26
27 namespace dudley {
28 /**
29 \brief
30 Provide a C++ interface to the dudley C funcion of the same name.
31 Needed because of constness problems.
32 */
33 DUDLEY_DLL_API
34 void setDudleyError(Dudley_ErrorCodeType errorCode,
35 const std::string& errMess);
36
37 /**
38 \brief
39 Convert a C dudley error into a C++ exception.
40 */
41 DUDLEY_DLL_API
42 void checkDudleyError();
43 /**
44 \brief
45 Convert a C paso error into a C++ exception.
46 */
47 DUDLEY_DLL_API
48 void checkPasoError();
49 } // end of namespace
50 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/pasowrap/dudley/src/CPPAdapter/DudleyError.h:3661-3674 /branches/py3_attempt2/dudley/src/CPPAdapter/DudleyError.h:3871-3891 /branches/ripleygmg_from_3668/dudley/src/CPPAdapter/DudleyError.h:3669-3791 /branches/scons_revamp_from_3210/dudley/src/CPPAdapter/DudleyError.h:3212-3243

  ViewVC Help
Powered by ViewVC 1.1.26