SIRF  3.4.0
iutilities.h
1 /*
2 SyneRBI Synergistic Image Reconstruction Framework (SIRF)
3 Copyright 2015 - 2017 Rutherford Appleton Laboratory STFC
4 Copyright 2020 University College London
5 
6 This is software developed for the Collaborative Computational
7 Project in Synergistic Reconstruction for Biomedical Imaging (formerly CCP PETMR)
8 (http://www.ccpsynerbi.ac.uk/).
9 
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 */
20 
21 #ifndef INTERFACE_UTILITIES
22 #define INTERFACE_UTILITIES
23 
24 #ifndef IUTILITIES_FOR_MATLAB
25 extern "C" {
26 #endif
27  int intBits();
28  void* newDataHandle();
29  void deleteDataHandle(void* ptr);
30  void* charDataHandle(const char* s);
31  void* intDataHandle(int i);
32  void* boolDataHandle(bool b);
33  void* floatDataHandle(float i);
34  void* doubleDataHandle(double i);
35  char* charDataFromHandle(const void* ptr);
36  bool boolDataFromHandle(const void* ptr);
37  int intDataFromHandle(const void* ptr);
38  int intDataItemFromHandle(const void* ptr, int i);
39  int uint16DataItemFromHandle(const void* ptr, int i);
40  int uint32DataItemFromHandle(const void* ptr, int i);
41  int uint64DataItemFromHandle(const void* ptr, int i);
42  float floatDataFromHandle(const void* ptr);
43  float floatDataItemFromHandle(const void* ptr, int i);
44  float floatReDataFromHandle(const void* ptr);
45  float floatImDataFromHandle(const void* ptr);
46  double doubleDataFromHandle(const void* ptr);
47  double doubleReDataFromHandle(const void* ptr);
48  double doubleImDataFromHandle(const void* ptr);
49  int executionStatus(const void* ptr);
50  const char* executionError(const void* ptr);
51  const char* executionErrorFile(const void* ptr);
52  int executionErrorLine(const void* ptr);
53 #ifndef IUTILITIES_FOR_MATLAB
54 }
55 #endif
56 
57 #endif