casacore
aipstype.h
Go to the documentation of this file.
1//# aipstype.h: Global initialization for standard Casacore types
2//# Copyright (C) 2000,2001,2002
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: aips2-request@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25//#
26//# $Id$
27
28#ifndef CASA_AIPSTYPE_H
29#define CASA_AIPSTYPE_H
30
31// For temporary backward namespace compatibility, use casa as alias for casacore.
32//# Note: namespace casa = casacore; does not work for forward declarations.
33
34#if defined (UseCasaNamespace)
35# define casacore casa
36#endif
37
38namespace casacore { //# NAMESPACE CASACORE - BEGIN
39
40// Define the standard types used by Casacore
41
42typedef bool Bool;
43const Bool True = true;
44const Bool False = false;
45
46typedef char Char;
47typedef unsigned char uChar;
48typedef short Short;
49typedef unsigned short uShort;
50typedef int Int;
51typedef unsigned int uInt;
52typedef long Long;
53typedef unsigned long uLong;
54typedef float Float;
55typedef double Double;
56typedef long double lDouble;
57
58} //# NAMESPACE CASACORE - END
59
60#endif
this file contains all the compiler specific defines
Definition: mainpage.dox:28
unsigned char uChar
Definition: aipstype.h:47
const Bool False
Definition: aipstype.h:44
unsigned long uLong
Definition: aipstype.h:53
long Long
Definition: aipstype.h:52
short Short
Definition: aipstype.h:48
unsigned int uInt
Definition: aipstype.h:51
unsigned short uShort
Definition: aipstype.h:49
float Float
Definition: aipstype.h:54
int Int
Definition: aipstype.h:50
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
const Bool True
Definition: aipstype.h:43
double Double
Definition: aipstype.h:55
char Char
Definition: aipstype.h:46
long double lDouble
Definition: aipstype.h:56