casacore
Loading...
Searching...
No Matches
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: casa-feedback@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#ifndef CASA_AIPSTYPE_H
27#define CASA_AIPSTYPE_H
28
29// For temporary backward namespace compatibility, use casa as alias for casacore.
30// # Note: namespace casa = casacore; does not work for forward declarations.
31
32#if defined(UseCasaNamespace)
33#define casacore casa
34#endif
35
36namespace casacore { // # NAMESPACE CASACORE - BEGIN
37
38// Define the standard types used by Casacore
39
40typedef bool Bool;
41const Bool True = true;
42const Bool False = false;
43
44typedef char Char;
45typedef unsigned char uChar;
46typedef short Short;
47typedef unsigned short uShort;
48typedef int Int;
49typedef unsigned int uInt;
50typedef long Long;
51typedef unsigned long uLong;
52typedef float Float;
53typedef double Double;
54typedef long double lDouble;
55
56} // namespace casacore
57
58#endif
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
unsigned char uChar
Definition aipstype.h:45
const Bool False
Definition aipstype.h:42
unsigned long uLong
Definition aipstype.h:51
long Long
Definition aipstype.h:50
short Short
Definition aipstype.h:46
unsigned int uInt
Definition aipstype.h:49
unsigned short uShort
Definition aipstype.h:47
float Float
Definition aipstype.h:52
int Int
Definition aipstype.h:48
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
const Bool True
Definition aipstype.h:41
double Double
Definition aipstype.h:53
char Char
Definition aipstype.h:44
long double lDouble
Definition aipstype.h:54