r244: *** empty log message ***
[ctsim.git] / include / ct.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          ct.h
5 **   Purpose:       Master header file for CTSim
6 **   Programmer:    Kevin Rosenberg
7 **   Date Started:  Aug 1984
8 **
9 **  This is part of the CTSim program
10 **  Copyright (C) 1983-2000 Kevin Rosenberg
11 **
12 **  $Id: ct.h,v 1.41 2000/12/04 05:36:57 kevin Exp $
13 **
14 **  This program is free software; you can redistribute it and/or modify
15 **  it under the terms of the GNU General Public License (version 2) as
16 **  published by the Free Software Foundation.
17 **
18 **  This program is distributed in the hope that it will be useful,
19 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 **  GNU General Public License for more details.
22 **
23 **  You should have received a copy of the GNU General Public License
24 **  along with this program; if not, write to the Free Software
25 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 ******************************************************************************/
27
28 #ifndef CT_H
29 #define CT_H
30
31 #ifdef MSVC
32   extern "C" {int strcasecmp(const char*, const char*);}
33   typedef long off_t;
34   #define HAVE_STRING_H 1
35   #include <fcntl.h>
36   #define strcasecmp stricmp
37   #define strncasecmp strnicmp
38 #endif
39
40 #ifdef HAVE_CONFIG_H
41   #include <config.h>
42 #endif
43
44 #define HAVE_ANSI_CPP 1
45 #ifdef HAVE_ANSI_CPP
46 #include <complex>
47 #include <cmath>
48 #include <cstdio>
49 #include <cctype>
50 #include <cstring>
51 #include <cstddef>
52 #include <cstdarg>
53 #include <cstdlib>
54 using namespace std;
55
56 #include <sstream>
57 #include <fstream>
58 #include <iostream>
59 #include <string>
60 #include <iterator>
61 #include <algorithm>
62 #include <exception>
63 #include <stdexcept>
64 #include <memory>
65
66 #else
67
68 #ifdef HAVE_CTYPE_H
69 #include <ctype.h>
70 #endif
71 #ifdef HAVE_MATH_H
72 #include <math.h>
73 #endif
74 #ifdef HAVE_STDIO_H
75 #include <stdio.h>
76 #endif
77 #ifdef HAVE_STRING_H
78 #include <string.h>
79 #endif
80 #ifdef HAVE_STDDEF_H
81 #include <stddef.h>
82 #endif
83 #ifdef HAVE_STDLIB_H
84 #include <stdlib.h>
85 #endif
86 #ifdef HAVE_STDARG_H
87 #include <stdarg.h>
88 #endif
89
90 #endif
91
92
93 #ifdef HAVE_DMALLOC
94 #include <dmalloc.h>
95 #endif
96 #ifdef HAVE_UNISTD_H
97 #include <unistd.h>
98 #endif
99 #ifdef HAVE_PNG
100   #include "png.h"
101 #endif
102 #ifdef HAVE_G2_H
103 extern "C" { 
104 #include "g2.h" 
105 }
106 #ifdef HAVE_X11
107 extern "C" {
108 #include "g2_X11.h"
109 }
110 #endif
111 #endif
112
113
114 #ifdef  HAVE_SYS_TYPES_H
115 #include <sys/types.h>
116 #endif
117 #ifdef HAVE_SYS_STAT_H
118 #include <sys/stat.h>
119 #endif
120 #ifdef HAVE_SYS_FCNTL_H
121 #include <sys/fcntl.h>
122 #endif
123 #ifdef HAVE_FCNTL_H
124 #include <fcntl.h>
125 #endif
126 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
127 #include <getopt.h>
128 #endif
129 #ifdef HAVE_SETJMP_H
130 #include <setjmp.h>
131 #endif
132 #ifdef HAVE_SYS_PARAM_H
133 #include <sys/param.h>          /* for htonl on FreeBSD */
134 #endif
135 #ifdef HAVE_NETINET_IN_H
136 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
137 #endif
138 #ifdef HAVE_INTTYPES_H
139 #include <inttypes.h>           /* for htonl on Solaris */
140 #endif
141 #ifdef HAVE_STDINT_H
142 #include <stdint.h>             /* Standard ints on Linux */
143 #endif
144 #ifdef HAVE_ASSERT_H
145 #include <assert.h>
146 #endif
147
148
149 #ifdef HAVE_FFTW
150 #include <rfftw.h>
151 #include <fftw.h>
152 #endif
153
154 #ifdef HAVE_MPI
155 #include "mpi++.h"
156 #include "mpiworld.h"
157 #endif
158
159 #include "ctsupport.h"
160 #include "fnetorderstream.h"
161
162 #ifdef HAVE_SGP
163   #include "ezplot.h"
164   #include "sgp.h"
165 #endif
166
167 #include "array2d.h"
168 #include "array2dfile.h"
169 #include "fnetorderstream.h"
170 #include "imagefile.h"
171 #include "phantom.h"
172 #include "scanner.h"
173 #include "backprojectors.h"
174 #include "filter.h"
175 #include "procsignal.h"
176 #include "projections.h"
177 #include "reconstruct.h"
178 #include "trace.h"
179
180
181 #endif
182