Changeset 2005 for trunk/external-alma/atnf/PKSIO
- Timestamp:
- 02/23/11 19:19:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/atnf/PKSIO/SrcType.h
r1985 r2005 33 33 #ifndef ATNF_SRCTYPE_H 34 34 #define ATNF_SRCTYPE_H 35 36 //# Includes 37 #include <casa/aips.h> 38 #include <casa/BasicSL/String.h> 39 40 using namespace std ; 41 #include <casa/namespace.h> 35 42 36 43 // <sumamry> … … 69 76 CAL = 92, 70 77 NOTYPE = 99 } ; 78 79 static String getName(const Int srctype) 80 { 81 String obsType ; 82 switch( srctype ) { 83 case Int(SrcType::PSON): 84 obsType = "PSON" ; 85 break ; 86 case Int(SrcType::PSOFF): 87 obsType = "PSOFF" ; 88 break ; 89 case Int(SrcType::NOD): 90 obsType = "NOD" ; 91 break ; 92 case Int(SrcType::FSON): 93 obsType = "FSON" ; 94 break ; 95 case Int(SrcType::FSOFF): 96 obsType = "FSOFF" ; 97 break ; 98 case Int(SrcType::SKY): 99 obsType = "SKY" ; 100 break ; 101 case Int(SrcType::HOT): 102 obsType = "HOT" ; 103 break ; 104 case Int(SrcType::WARM): 105 obsType = "WARM" ; 106 break ; 107 case Int(SrcType::COLD): 108 obsType = "COLD" ; 109 break ; 110 case Int(SrcType::PONCAL): 111 obsType = "PSON:CALON" ; 112 break ; 113 case Int(SrcType::POFFCAL): 114 obsType = "PSOFF:CALON" ; 115 break ; 116 case Int(SrcType::NODCAL): 117 obsType = "NOD:CALON" ; 118 break ; 119 case Int(SrcType::FONCAL): 120 obsType = "FSON:CALON" ; 121 break ; 122 case Int(SrcType::FOFFCAL): 123 obsType = "FSOFF:CALOFF" ; 124 break ; 125 case Int(SrcType::FSLO): 126 obsType = "FSLO" ; 127 break ; 128 case Int(SrcType::FLOOFF): 129 obsType = "FS:LOWER:OFF" ; 130 break ; 131 case Int(SrcType::FLOSKY): 132 obsType = "FS:LOWER:SKY" ; 133 break ; 134 case Int(SrcType::FLOHOT): 135 obsType = "FS:LOWER:HOT" ; 136 break ; 137 case Int(SrcType::FLOWARM): 138 obsType = "FS:LOWER:WARM" ; 139 break ; 140 case Int(SrcType::FLOCOLD): 141 obsType = "FS:LOWER:COLD" ; 142 break ; 143 case Int(SrcType::FSHI): 144 obsType = "FSHI" ; 145 break ; 146 case Int(SrcType::FHIOFF): 147 obsType = "FS:HIGHER:OFF" ; 148 break ; 149 case Int(SrcType::FHISKY): 150 obsType = "FS:HIGHER:SKY" ; 151 break ; 152 case Int(SrcType::FHIHOT): 153 obsType = "FS:HIGHER:HOT" ; 154 break ; 155 case Int(SrcType::FHIWARM): 156 obsType = "FS:HIGHER:WARM" ; 157 break ; 158 case Int(SrcType::FHICOLD): 159 obsType = "FS:HIGHER:COLD" ; 160 break ; 161 default: 162 obsType = "NOTYPE" ; 163 } 164 165 return obsType ; 166 } ; 167 71 168 } ; 72 169
Note:
See TracChangeset
for help on using the changeset viewer.