escript
Revision_
Main Page
Namespaces
Classes
Files
File List
File Members
dudley
src
CPPAdapter
DudleyError.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2016 by The University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Apache License, version 2.0
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development 2012-2013 by School of Earth Sciences
13
* Development from 2014 by Centre for Geoscience Computing (GeoComp)
14
*
15
*****************************************************************************/
16
17
18
#if !defined dudley_DudleyError_20040528_H
19
#define dudley_DudleyError_20040528_H
20
#include "
system_dep.h
"
21
22
#include "dudley/Dudley.h"
23
24
#include "
DudleyAdapterException.h
"
25
26
#include <string>
27
28
namespace
dudley
{
34
DUDLEY_DLL_API
35
void
setDudleyError
(
Dudley_ErrorCodeType
errorCode,
36
const
std::string& errMess);
37
42
DUDLEY_DLL_API
43
void
checkDudleyError
();
48
DUDLEY_DLL_API
49
void
checkPasoError
();
50
}
// end of namespace
51
#endif
dudley::checkPasoError
void checkPasoError()
Convert a C paso error into a C++ exception.
Definition:
DudleyError.cpp:41
DudleyAdapterException.h
system_dep.h
dudley::setDudleyError
void setDudleyError(Dudley_ErrorCodeType errorCode, const std::string &errMess)
Provide a C++ interface to the dudley C funcion of the same name. Needed because of constness problem...
Definition:
DudleyError.cpp:23
dudley::checkDudleyError
void checkDudleyError()
Convert a C dudley error into a C++ exception.
Definition:
DudleyError.cpp:29
DUDLEY_DLL_API
#define DUDLEY_DLL_API
Definition:
dudley/src/CPPAdapter/system_dep.h:29
dudley
Definition:
DudleyAdapterException.h:24
Esys_ErrorCodeType
Esys_ErrorCodeType
Definition:
error.h:41
Generated on Thu Aug 11 2016 23:33:40 for escript by
1.8.11