r172: *** 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.29 2000/08/03 09:21:12 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 extern "C" {int strcasecmp(const char*, const char*);}
32
33 #ifdef _WIN32
34   typedef long off_t;
35   #define HAVE_STRING_H 1
36   #include <fcntl.h>
37   #define snprintf _snprintf
38   #define vsnprintf _vsnprintf
39   #define strcasecmp stricmp
40   #define strncasecmp strnicmp
41 #endif
42
43 #ifdef HAVE_CONFIG_H
44   #include <config.h>
45 #endif
46 #ifdef HAVE_DMALLOC
47 #include <dmalloc.h>
48 #endif
49 #ifdef HAVE_PNG
50   #include "png.h"
51 #endif
52 #ifdef HAVE_G2_H
53 extern "C" { 
54 #include "g2.h" 
55 }
56 #ifdef HAVE_X11
57 extern "C" {
58 #include "g2_X11.h"
59 }
60 #endif
61 #endif
62 #ifdef HAVE_STDIO_H
63 #include <stdio.h>
64 #endif
65 #ifdef HAVE_STRING_H
66 #include <string.h>
67 #endif
68 #ifdef HAVE_STDDEF_H
69 #include <stddef.h>
70 #endif
71 #ifdef HAVE_STDLIB_H
72 #include <stdlib.h>
73 #endif
74 #ifdef HAVE_STDARG_H
75 #include <stdarg.h>
76 #endif
77 #ifdef  HAVE_SYS_TYPES_H
78 #include <sys/types.h>
79 #endif
80 #ifdef HAVE_SYS_STAT_H
81 #include <sys/stat.h>
82 #endif
83 #ifdef HAVE_CTYPE_H
84 #include <ctype.h>
85 #endif
86 #ifdef HAVE_MATH_H
87 #include <math.h>
88 #endif
89 #ifdef HAVE_SYS_FCNTL_H
90 #include <sys/fcntl.h>
91 #endif
92 #ifdef HAVE_FCNTL_H
93 #include <fcntl.h>
94 #endif
95 #if defined(HAVE_GETOPT_H) || defined(HAVE_GETOPT_LONG)
96 #include <getopt.h>
97 #endif
98 #ifdef HAVE_UNISTD_H
99 #include <unistd.h>
100 #endif
101 #ifdef HAVE_SETJMP_H
102 #include <setjmp.h>
103 #endif
104 #ifdef HAVE_SYS_PARAM_H
105 #include <sys/param.h>          /* for htonl on FreeBSD */
106 #endif
107 #ifdef HAVE_NETINET_IN_H
108 #include <netinet/in.h>         /* for htonl on Linux/Solaris */
109 #endif
110 #ifdef HAVE_INTTYPES_H
111 #include <inttypes.h>           /* for htonl on Solaris */
112 #endif
113 #ifdef HAVE_STDINT_H
114 #include <stdint.h>             /* Standard ints on Linux */
115 #endif
116 #ifdef HAVE_ASSERT_H
117 #include <assert.h>
118 #endif
119
120 #ifdef HAVE_FFTW
121 #include <rfftw.h>
122 #include <fftw.h>
123 #endif
124
125 #include <fstream>
126 #include <iostream>
127 #include <sstream>
128 #include <string>
129 #include <iterator>
130 #include <algorithm>
131 #include <exception>
132 #include <stdexcept>
133 #include <memory>
134 #include <complex>
135
136 using namespace std;
137
138 #ifdef HAVE_MPI
139 #include "mpi++.h"
140 #include "mpiworld.h"
141 #endif
142
143 #include "ctsupport.h"
144 #include "fnetorderstream.h"
145
146 #ifdef HAVE_SGP
147   #include "ezplot.h"
148   #include "sgp.h"
149 #endif
150
151 #include "array2d.h"
152 #include "array2dfile.h"
153 #include "fnetorderstream.h"
154 #include "imagefile.h"
155 #include "phantom.h"
156 #include "scanner.h"
157 #include "backprojectors.h"
158 #include "filter.h"
159 #include "projections.h"
160 #include "trace.h"
161
162
163 #endif
164