/usr/include/casacore/casa/Quanta/QC.h is in casacore-dev 2.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | //# QC.h: physical constants with units
//# Copyright (C) 1994,1995,1996,1997,1998,1999
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id$
#ifndef CASA_QC_H
#define CASA_QC_H
//# Includes
#include <casacore/casa/aips.h>
#include <casacore/casa/BasicSL/Constants.h>
#include <casacore/casa/Quanta/Quantum.h>
#include <casacore/casa/Quanta/UnitMap.h>
namespace casacore { //# NAMESPACE CASACORE - BEGIN
//# Forward Declarations
//# Typedefs
// <summary>
// Physical constants (i.e. dimensioned values)
// </summary>
// <use visibility=export>
// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="tQuantum">
// <prerequisite>
// <li> <linkto class=Quantum>Quantum</linkto>
// </prerequisite>
// <etymology>
// A QC is based on the Quantum and C (constants) class
// </etymology>
// <synopsis>
// QC:name will produce a Quantity (Quantum<Double>) value consisting of
// a value and a unit. See the <linkto class=Quantum>Quantum</linkto> class
// for possibilities of manipulating quanta.
// tQuantum will give a list of the currently available constants
// </synopsis>
// <example>
// To obtain the velocity of light in pc/a, use:
// <srcblock>
// #include <casacore/casa/Quanta.h>
// Double vel_pcpy = (C::c).convert("pc/a").getValue();
// </srcblock>
// </example>
//############################################################################
//# NOTE: Delete the following listing of the public data members when
//# public data members are handled properly by the documentation
//# extractor.
//############################################################################
// The following constants are defined as public data members of class QC.
//
// <note role=caution>
// The following public data member documentation is currently extracted by
// hand, and thus could be out of date if this documentation was not updated
// when the class was modified.
// </note>
// <srcblock>
//
// // vel of light
// static Quantum<Double> c;
//
// // Gravitational constant
// static Quantum<Double> G;
//
// // Planck
// static Quantum<Double> h;
//
// // HI line
// static Quantum<Double> HI;
//
// // Gas constant
// static Quantum<Double> R;
//
// // Avogadro
// static Quantum<Double> NA;
//
// // electron charge
// static Quantum<Double> e;
//
// // proton mass
// static Quantum<Double> mp;
//
// // mp/me
// static Quantum<Double> mp_me;
//
// // permeability vacuum
// static Quantum<Double> mu0;
//
// // permittivity vacuum
// static Quantum<Double> epsilon0;
//
// // Boltzmann
// static Quantum<Double> k;
//
// // Faraday
// static Quantum<Double> F;
//
// // mass electron
// static Quantum<Double> me;
//
// // radius electron
// static Quantum<Double> re;
//
// // Bohr's radius
// static Quantum<Double> a0;
//
// // Solar radius
// static Quantum<Double> R0;
//
// // IAU Gaussian grav. const **2
// static Quantum<Double> k2;
//
// // quarter turn = 90 degrees = pi/2 radians
// static Quantum<Double> qTurn;
//
// // half turn = 180 degrees = pi radians
// static Quantum<Double> hTurn;
//
// // full turn = 360 degrees = 2pi radians
// static Quantum<Double> fTurn;
//
// </srcblock>
// <motivation>
// Physical constants should be known with their proper dimensions
// </motivation>
//
// <todo asof="941110">
// </todo>
class QC {
friend class QC_init;
public:
//# If you change any of the public data members, make the corresponding
//# change above to the documentation of the public data members.
// vel of light
static Quantum<Double> c;
// Gravitational constant
static Quantum<Double> G;
// Planck
static Quantum<Double> h;
// HI line
static Quantum<Double> HI;
// Gas constant
static Quantum<Double> R;
// Avogadro
static Quantum<Double> NA;
// electron charge
static Quantum<Double> e;
// proton mass
static Quantum<Double> mp;
// mp/me
static Quantum<Double> mp_me;
// permeability vacuum
static Quantum<Double> mu0;
// permittivity vacuum
static Quantum<Double> epsilon0;
// Boltzmann
static Quantum<Double> k;
// Faraday
static Quantum<Double> F;
// mass electron
static Quantum<Double> me;
// radius electron
static Quantum<Double> re;
// Bohr's radius
static Quantum<Double> a0;
// Solar radius
static Quantum<Double> R0;
// IAU Gaussian grav. const **2
static Quantum<Double> k2;
// quarter turn = 90 degrees = pi/2 radians
static Quantum<Double> qTurn;
// half turn = 180 degrees = pi radians
static Quantum<Double> hTurn;
// full turn = 360 degrees = 2pi radians
static Quantum<Double> fTurn;
private:
// This function is used, in conjunction with the
// <linkto class=QC_init>QC_init</linkto>
// class to force construction of statics (see ARM 3.4).
static void init();
};
// <summary>
// Class used to force construction of <linkto class=QC>QC</linkto>.
// </summary>
// <synopsis>
// A static object of this class is used to make sure that
// <linkto class=QC>QC</linkto>
// is constructed before it is needed, and therefore that its static data
// members are defined. See Meyers, p. 47.
// </synopsis>
// <use visibility=local>
// <linkfrom anchor="QC_init" classes="QC">
// <here>QC_init</here> --
// Class used to force construction of <linkto class=QC>QC</linkto>.
// </linkfrom>
class QC_init {
public:
QC_init();
~QC_init();
private:
static uShort count;
};
// <summary>
// Object used to force construction of <linkto class=QC>QC</linkto>.
// </summary>
// <synopsis>
// This static object of the <linkto class=QC_init>QC_init</linkto>
// class is used to make sure that
// <linkto class=QC>QC</linkto>
// is constructed before it is needed, and therefore that its static data
// members are defined. See Meyers, p. 47.
// </synopsis>
// <use visibility=local>
// <linkfrom anchor="QC initialization object" classes="QC QC_init">
// <here>QC initialization object</here> --
// Object used to force construction of <linkto class=QC>QC</linkto>.
// </linkfrom>
// <group name="QC initialization object">
static QC_init qc_init;
// </group>
//# Inline Implementations
} //# NAMESPACE CASACORE - END
#endif
|