ScaFaCoS  1.0.1
Scalable Fast Coulomb Solvers
fcs_result_p.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2011, 2012, 2013 Lidia Westphal, Rene Halver, Michael Hofmann
3 
4  This file is part of ScaFaCoS.
5 
6  ScaFaCoS is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  ScaFaCoS is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser Public License for more details.
15 
16  You should have received a copy of the GNU Lesser Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 
29 #ifndef _FCSRESULT_P_H
30 #define _FCSRESULT_P_H
31 
32 #include "fcs_definitions.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
42 typedef struct FCSResult_t *FCSResult;
43 
44 #define FCS_RESULT_SUCCESS NULL
45 
46 #define FCS_RESULT_MAX_FUNCTION_LENGTH 64
47 #define FCS_RESULT_MAX_MESSAGE_LENGTH 512
48 
53 void fcs_result_destroy(FCSResult result);
54 
60 fcs_int fcs_result_get_return_code(FCSResult result);
61 
67 const char *fcs_result_get_function(FCSResult result);
68 
74 const char *fcs_result_get_message(FCSResult result);
75 
80 void fcs_result_print_result(FCSResult result);
81 
82 
83 #ifdef FCS_ENABLE_DEPRECATED
84 #define fcsResult_destroy fcs_result_destroy
85 #define fcsResult_getReturnCode fcs_result_get_return_code
86 #define fcsResult_getErrorMessage fcs_result_get_message
87 #define fcsResult_getErrorSource fcs_result_get_function
88 #define fcsResult_printResult fcs_result_print_result
89 #endif
90 
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 
97 #endif
fcs_int fcs_result_get_return_code(FCSResult result)
function to return the return code associated with an return state
void fcs_result_print_result(FCSResult result)
function to print the return state to stdout
const char * fcs_result_get_function(FCSResult result)
function to return the function name associated with an return state
const char * fcs_result_get_message(FCSResult result)
function to return the description message associated with an return state
void fcs_result_destroy(FCSResult result)
function to destroy an FCSResult-object
struct FCSResult_t * FCSResult
FCSResult-object that is used for handling the return state of the ScaFaCoS library functions...
Definition: fcs_result_p.h:42