Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.atnf.csiro.au/computing/software/casacore/casacore-1.2.0/doc/html/MSSelectionError_8h_source.html
Дата изменения: Unknown Дата индексирования: Mon Feb 14 22:10:26 2011 Кодировка: Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п |
00001 //# MSSelectionError.h: MSSelection error classes 00002 //# Copyright (C) 1994,1995,1996,1997,1999,2000 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id: MSSelectionError.h 20739 2009-09-29 01:15:15Z Malte.Marquarding $ 00027 00028 #ifndef MS_MSSELECTIONERROR_H 00029 #define MS_MSSELECTIONERROR_H 00030 00031 //# Includes 00032 #include <casa/aips.h> 00033 #include <casa/Exceptions/Error.h> 00034 00035 00036 namespace casa { //# NAMESPACE CASA - BEGIN 00037 00038 //# This header file defines the error classes thrown by the 00039 //# MSSelection and related classes. 00040 00041 00042 // <summary> 00043 // </summary> 00044 // <use visibility=export> 00045 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00046 // </reviewed> 00047 00048 // <synopsis> 00049 // The top-level generic MSSelection exception class. All 00050 // exceptions thrown by the MSSelection and related classes are 00051 // derived from this. Catching this class will catch only MSSelection 00052 // exceptions (but all exceptions from the MSSelection line of 00053 // classes). To catch more specific MSSelection exceptions, catch 00054 // the derived classes. Note that you have to catch AipsError to 00055 // catch all possible exceptions thrown by all of AIPS++ modules! 00056 //</synopsis> 00057 00058 class MSSelectionError : public AipsError { 00059 public: 00060 // The default constructor generates the message "Table error". 00061 MSSelectionError (Category c=GENERAL); 00062 // Construct with given message. 00063 void changeMessage(String& message); 00064 void addMessage(String& message); 00065 void reset() {message="";}; 00066 MSSelectionError (const String& message,Category c=GENERAL); 00067 ~MSSelectionError () throw(); 00068 Bool hasMessage; 00069 }; 00070 // 00071 //------------------------------------------------------------------- 00072 // 00073 // <summary> 00074 // Error thrown by MSTimeXXXX classes. 00075 // </summary> 00076 // <use visibility=export> 00077 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00078 // </reviewed> 00079 00080 // <synopsis> 00081 // </synopsis> 00082 00083 class MSSelectionTimeError : public MSSelectionError { 00084 public: 00085 // Add given message to string "MSSelection time error: ". 00086 MSSelectionTimeError (const String& message,Category c=GENERAL); 00087 ~MSSelectionTimeError () throw(); 00088 }; 00089 00090 class MSSelectionTimeParseError: public MSSelectionTimeError { 00091 public: 00092 MSSelectionTimeParseError (const String& message,Category c=GENERAL); 00093 ~MSSelectionTimeParseError () throw(); 00094 }; 00095 // 00096 //------------------------------------------------------------------- 00097 // 00098 00099 // <summary> 00100 // Error thrown by MSAntennaXXXX classes. 00101 // </summary> 00102 // <use visibility=export> 00103 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00104 // </reviewed> 00105 00106 // <synopsis> 00107 // </synopsis> 00108 00109 class MSSelectionAntennaError : public MSSelectionError { 00110 public: 00111 // Add given message to string "MSSelection time error: ". 00112 MSSelectionAntennaError (const String& message,Category c=GENERAL); 00113 ~MSSelectionAntennaError () throw(); 00114 }; 00115 // 00116 //------------------------------------------------------------------- 00117 // 00118 00119 class MSSelectionAntennaParseError: public MSSelectionAntennaError { 00120 public: 00121 MSSelectionAntennaParseError (const String& message,Category c=GENERAL); 00122 ~MSSelectionAntennaParseError () throw(); 00123 }; 00124 00125 // <summary> 00126 // Error thrown by MSFieldXXXX classes. 00127 // </summary> 00128 // <use visibility=export> 00129 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00130 // </reviewed> 00131 00132 // <synopsis> 00133 // </synopsis> 00134 00135 // 00136 //------------------------------------------------------------------- 00137 // 00138 class MSSelectionFieldError : public MSSelectionError { 00139 public: 00140 // Add given message to string "MSSelection time error: ". 00141 MSSelectionFieldError (const String& message,Category c=GENERAL); 00142 ~MSSelectionFieldError () throw(); 00143 }; 00144 00145 // 00146 //------------------------------------------------------------------- 00147 // 00148 class MSSelectionFieldParseError: public MSSelectionFieldError { 00149 public: 00150 MSSelectionFieldParseError (const String& message,Category c=GENERAL); 00151 ~MSSelectionFieldParseError () throw(); 00152 }; 00153 00154 // <summary> 00155 // Error thrown by MSUvDistXXXX classes. 00156 // </summary> 00157 // <use visibility=export> 00158 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00159 // </reviewed> 00160 00161 // <synopsis> 00162 // </synopsis> 00163 00164 // 00165 //------------------------------------------------------------------- 00166 // 00167 class MSSelectionUvDistError : public MSSelectionError { 00168 public: 00169 // Add given message to string "MSSelection time error: ". 00170 MSSelectionUvDistError (const String& message,Category c=GENERAL); 00171 ~MSSelectionUvDistError () throw(); 00172 }; 00173 00174 class MSSelectionUvDistParseError: public MSSelectionUvDistError { 00175 public: 00176 MSSelectionUvDistParseError (const String& message,Category c=GENERAL); 00177 ~MSSelectionUvDistParseError () throw(); 00178 }; 00179 00180 // 00181 //------------------------------------------------------------------- 00182 // 00183 // <summary> 00184 // Error thrown by MSSpwXXXX classes. 00185 // </summary> 00186 // <use visibility=export> 00187 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00188 // </reviewed> 00189 00190 // <synopsis> 00191 // </synopsis> 00192 00193 class MSSelectionSpwError : public MSSelectionError { 00194 public: 00195 // Add given message to string "MSSelection time error: ". 00196 MSSelectionSpwError (const String& message,Category c=GENERAL); 00197 ~MSSelectionSpwError () throw(); 00198 }; 00199 00200 class MSSelectionSpwParseError: public MSSelectionSpwError { 00201 public: 00202 MSSelectionSpwParseError (const String& message,Category c=GENERAL); 00203 ~MSSelectionSpwParseError () throw(); 00204 }; 00205 00206 class MSSelectionSpwWarning: public MSSelectionSpwError { 00207 public: 00208 MSSelectionSpwWarning (const String& message,Category c=GENERAL); 00209 ~MSSelectionSpwWarning () throw(); 00210 }; 00211 // 00212 //------------------------------------------------------------------- 00213 // 00214 // <summary> 00215 // Error thrown by MSScanXXXX classes. 00216 // </summary> 00217 // <use visibility=export> 00218 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00219 // </reviewed> 00220 00221 // <synopsis> 00222 // </synopsis> 00223 00224 class MSSelectionScanError : public MSSelectionError { 00225 public: 00226 // Add given message to string "MSSelection time error: ". 00227 MSSelectionScanError (const String& message,Category c=GENERAL); 00228 ~MSSelectionScanError () throw(); 00229 }; 00230 00231 class MSSelectionScanParseError: public MSSelectionScanError { 00232 public: 00233 MSSelectionScanParseError (const String& message,Category c=GENERAL); 00234 ~MSSelectionScanParseError () throw(); 00235 }; 00236 00237 class MSSelectionScanWarning: public MSSelectionScanError { 00238 public: 00239 MSSelectionScanWarning (const String& message,Category c=GENERAL); 00240 ~MSSelectionScanWarning () throw(); 00241 }; 00242 00243 00244 // String constructMessage(const Int pos, const String& command); 00245 // 00246 //------------------------------------------------------------------- 00247 // 00248 // <summary> 00249 // Error thrown by MSArrayXXXX classes. 00250 // </summary> 00251 // <use visibility=export> 00252 // <reviewed reviewer="UNKNOWN" date="" tests=""> 00253 // </reviewed> 00254 00255 // <synopsis> 00256 // </synopsis> 00257 00258 // 00259 //------------------------------------------------------------------- 00260 // 00261 class MSSelectionArrayError : public MSSelectionError { 00262 public: 00263 // Add given message to string "MSSelection time error: ". 00264 MSSelectionArrayError (const String& message,Category c=GENERAL); 00265 ~MSSelectionArrayError () throw(); 00266 }; 00267 00268 class MSSelectionArrayParseError: public MSSelectionArrayError { 00269 public: 00270 MSSelectionArrayParseError (const String& message,Category c=GENERAL); 00271 ~MSSelectionArrayParseError () throw(); 00272 }; 00273 00274 class MSSelectionArrayWarning: public MSSelectionArrayError { 00275 public: 00276 MSSelectionArrayWarning (const String& message,Category c=GENERAL); 00277 ~MSSelectionArrayWarning () throw(); 00278 }; 00279 // 00280 //------------------------------------------------------------------- 00281 // 00282 class MSSelectionPolnError : public MSSelectionError { 00283 public: 00284 // Add given message to string "MSSelection time error: ". 00285 MSSelectionPolnError (const String& message,Category c=GENERAL); 00286 ~MSSelectionPolnError () throw(); 00287 }; 00288 00289 class MSSelectionPolnParseError: public MSSelectionPolnError { 00290 public: 00291 MSSelectionPolnParseError (const String& message,Category c=GENERAL); 00292 ~MSSelectionPolnParseError () throw(); 00293 }; 00294 00295 class MSSelectionPolnWarning: public MSSelectionPolnError { 00296 public: 00297 MSSelectionPolnWarning (const String& message,Category c=GENERAL); 00298 ~MSSelectionPolnWarning () throw(); 00299 }; 00300 00301 // 00302 //------------------------------------------------------------------- 00303 // 00304 00305 String constructMessage(const Int pos, const String& command); 00306 } //# NAMESPACE CASA - END 00307 00308 #endif