1 |
/* |
2 |
****************************************************************************** |
3 |
* * |
4 |
* COPYRIGHT ACcESS 2004 - All Rights Reserved * |
5 |
* * |
6 |
* This software is the property of ACcESS. No part of this code * |
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 * |
9 |
* by any unauthorised person is illegal unless that person has a software * |
10 |
* license agreement with ACcESS. * |
11 |
* * |
12 |
****************************************************************************** |
13 |
*/ |
14 |
|
15 |
#if !defined finley_FinleyError_20040528_H |
16 |
#define finley_FinleyError_20040528_H |
17 |
|
18 |
#ifdef MSVC |
19 |
#ifdef FINLEY_EXPORTS |
20 |
#define FINLEY_DLL __declspec(dllexport) |
21 |
#else |
22 |
#define FINLEY_DLL __declspec(dllimport) |
23 |
#endif |
24 |
#else |
25 |
#define FINLEY_DLL |
26 |
#endif |
27 |
#include "finley/finleyC/Finley.h" |
28 |
|
29 |
#include <string> |
30 |
|
31 |
namespace finley { |
32 |
/** |
33 |
\brief |
34 |
Provide a C++ interface to the finley C funcion of the same name. |
35 |
Needed because of constness problems. |
36 |
*/ |
37 |
FINLEY_DLL void setFinleyError(Finley_ErrorCodeType errorCode, |
38 |
const std::string& errMess); |
39 |
|
40 |
/** |
41 |
\brief |
42 |
Convert a C finley error into a C++ exception. |
43 |
*/ |
44 |
FINLEY_DLL void checkFinleyError(); |
45 |
/** |
46 |
\brief |
47 |
Convert a C paso error into a C++ exception. |
48 |
*/ |
49 |
FINLEY_DLL void checkPasoError(); |
50 |
} // end of namespace |
51 |
#endif |