//# UnitMap2.cc: Unit map prefix initialisation //# Copyright (C) 2001,2002 //# 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$ //# Includes #include namespace casacore { //# NAMESPACE CASACORE - BEGIN // Initialise the maps void UnitMap::initUMPrefix (UMaps& maps) { map& mapPref = maps.mapPref; mapPref.insert(map::value_type ("Y", UnitName("Y", C::yotta, "yotta"))); mapPref.insert(map::value_type ("Z", UnitName("Z", C::zetta, "zetta"))); mapPref.insert(map::value_type ("E", UnitName("E", C::exa, "exa"))); mapPref.insert(map::value_type ("P", UnitName("P", C::peta, "peta"))); mapPref.insert(map::value_type ("T", UnitName("T", C::tera, "tera"))); mapPref.insert(map::value_type ("G", UnitName("G", C::giga, "giga"))); mapPref.insert(map::value_type ("M", UnitName("M", C::mega, "mega"))); mapPref.insert(map::value_type ("k", UnitName("k", C::kilo, "kilo"))); mapPref.insert(map::value_type ("h", UnitName("h", C::hecto, "hecto"))); mapPref.insert(map::value_type ("da",UnitName("da",C::deka, "deka"))); mapPref.insert(map::value_type ("d", UnitName("d", C::deci, "deci"))); mapPref.insert(map::value_type ("c", UnitName("c", C::centi, "centi"))); mapPref.insert(map::value_type ("m", UnitName("m", C::milli, "milli"))); mapPref.insert(map::value_type ("u", UnitName("u", C::micro, "micro"))); mapPref.insert(map::value_type ("n", UnitName("n", C::nano, "nano"))); mapPref.insert(map::value_type ("p", UnitName("p", C::pico, "pico"))); mapPref.insert(map::value_type ("f", UnitName("f", C::femto, "femto"))); mapPref.insert(map::value_type ("a", UnitName("a", C::atto, "atto"))); mapPref.insert(map::value_type ("z", UnitName("z", C::zepto, "zepto"))); mapPref.insert(map::value_type ("y", UnitName("y", C::yocto, "yocto"))); } } //# NAMESPACE CASACORE - END