b618130ec6d152772bd23b2baece82a430727e8c
[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.48 2001/01/02 05:34: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 #include "msvc_compat.h"
33 #endif
34
35 #ifdef HAVE_CONFIG_H
36   #include <config.h>
37 #endif
38 \r
39 #define HAVE_ANSI_CPP 1
40 #ifdef HAVE_ANSI_CPP
41 #include <complex>
42 #include <cmath>
43 #include <cstdio>
44 #include <cctype>
45 #include <cstring>
46 #include <cstddef>
47 #include <cstdarg>
48 #include <cstdlib>
49 \r
50 #if defined(MSVC) || HAVE_SSTREAM\r
51 #include <sstream>
52 #else\r
53 #include <sstream_subst>
54 #endif\r
55 \r
56 #include <fstream>
57 #include <iostream>
58 #include <string>\r
59 #include <iterator>
60 #include <algorithm>
61 #include <exception>
62 #include <stdexcept>
63 #include <memory>
64
65 #else
66
67 #ifdef HAVE_CTYPE_H
68 #include <ctype.h>
69 #endif
70 #ifdef HAVE_MATH_H
71 #include <math.h>
72 #endif
73 #ifdef HAVE_STDIO_H
74 #include <stdio.h>
75 #endif
76 #ifdef HAVE_STRING_H
77 #include <string.h>
78 #endif
79 #ifdef HAVE_STDDEF_H
80 #include <stddef.h>
81 #endif
82 #ifdef HAVE_STDLIB_H
83 #include <stdlib.h>
84 #endif
85 #ifdef HAVE_STDARG_H
86 #include <stdarg.h>
87 #endif
88
89 #endif
90
91
92 #ifdef HAVE_DMALLOC
93 #include <dmalloc.h>
94 #endif
95 #ifdef HAVE_UNISTD_H
96 #include <unistd.h>
97 #endif
98 #ifdef HAVE_PNG
99   #include "png.h"
100 #endif
101 #ifdef HAVE_G2_H
102 extern "C" { 
103 #include "g2.h" 
104 }
105 #ifdef HAVE_X11
106 extern "C" {
107 #include "g2_X11.h"
108 }
109 #endif
110 #endif
111
112
113 #ifdef  HAVE_SYS_TYPES_H
114 #include <sys/types.h>
115 #endif
116 #ifdef HAVE_SYS_STAT_H
117 #include <sys/stat.h>
118 #endif
119 #ifdef HAVE_SYS_FCNTL_H
120 #include <sys/fcntl.h>
121 #endif
122 #ifdef HAVE_FCNTL_H
123 #include <fcntl.h>
124 #endif
125 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
126 #include <getopt.h>
127 #endif
128 #ifdef HAVE_SETJMP_H
129 #include <setjmp.h>
130 #endif
131 #ifdef HAVE_SYS_PARAM_H
132 #include <sys/param.h>          /* for htonl on FreeBSD */
133 #endif
134 #ifdef HAVE_NETINET_IN_H
135 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
136 #endif
137 #ifdef HAVE_INTTYPES_H
138 #include <inttypes.h>           /* for htonl on Solaris */
139 #endif
140 #ifdef HAVE_STDINT_H
141 #include <stdint.h>             /* Standard ints on Linux */
142 #endif
143 #ifdef HAVE_ASSERT_H
144 #include <assert.h>
145 #endif
146
147
148 #ifdef HAVE_FFTW
149 #include <rfftw.h>
150 #include <fftw.h>
151 #endif
152
153 #ifdef HAVE_MPI
154 #include "mpi++.h"
155 #include "mpiworld.h"
156 #endif
157
158 #include "ctsupport.h"
159 #include "fnetorderstream.h"
160
161 #ifdef HAVE_SGP
162   #include "ezplot.h"
163   #include "sgp.h"
164 #endif
165
166 #include "array2d.h"
167 #include "array2dfile.h"
168 #include "fnetorderstream.h"
169 #include "imagefile.h"
170 #include "phantom.h"
171 #include "scanner.h"
172 #include "backprojectors.h"
173 #include "filter.h"\r
174 #include "fourier.h"
175 #include "procsignal.h"
176 #include "projections.h"
177 #include "reconstruct.h"
178 #include "plotfile.h"\r
179 #include "trace.h"
180
181
182 #endif
183