FreqOffsetRow.h

00001 00002 /* 00003 * ALMA - Atacama Large Millimeter Array 00004 * (c) European Southern Observatory, 2002 00005 * (c) Associated Universities Inc., 2002 00006 * Copyright by ESO (in the framework of the ALMA collaboration), 00007 * Copyright by AUI (in the framework of the ALMA collaboration), 00008 * All rights reserved. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free software Foundation; either 00013 * version 2.1 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY, without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00023 * MA 02111-1307 USA 00024 * 00025 * Warning! 00026 * -------------------------------------------------------------------- 00027 * | This is generated code! Do not modify this file. | 00028 * | If you do, all changes will be lost when the file is re-generated. | 00029 * -------------------------------------------------------------------- 00030 * 00031 * File FreqOffsetRow.h 00032 */ 00033 00034 #ifndef FreqOffsetRow_CLASS 00035 #define FreqOffsetRow_CLASS 00036 00037 #include <vector> 00038 #include <string> 00039 #include <set> 00040 using std::vector; 00041 using std::string; 00042 using std::set; 00043 00044 #ifndef WITHOUT_ACS 00045 #include <asdmIDLC.h> 00046 using asdmIDL::FreqOffsetRowIDL; 00047 #endif 00048 00049 #include <Angle.h> 00050 #include <AngularRate.h> 00051 #include <ArrayTime.h> 00052 #include <ArrayTimeInterval.h> 00053 #include <Complex.h> 00054 #include <Entity.h> 00055 #include <EntityId.h> 00056 #include <EntityRef.h> 00057 #include <Flux.h> 00058 #include <Frequency.h> 00059 #include <Humidity.h> 00060 #include <Interval.h> 00061 #include <Length.h> 00062 #include <Pressure.h> 00063 #include <Speed.h> 00064 #include <Tag.h> 00065 #include <Temperature.h> 00066 #include <ConversionException.h> 00067 #include <NoSuchRow.h> 00068 #include <IllegalAccessException.h> 00069 00070 /* 00071 #include <Enumerations.h> 00072 using namespace enumerations; 00073 */ 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 using asdm::Angle; 00085 using asdm::AngularRate; 00086 using asdm::ArrayTime; 00087 using asdm::Complex; 00088 using asdm::Entity; 00089 using asdm::EntityId; 00090 using asdm::EntityRef; 00091 using asdm::Flux; 00092 using asdm::Frequency; 00093 using asdm::Humidity; 00094 using asdm::Interval; 00095 using asdm::Length; 00096 using asdm::Pressure; 00097 using asdm::Speed; 00098 using asdm::Tag; 00099 using asdm::Temperature; 00100 using asdm::ConversionException; 00101 using asdm::NoSuchRow; 00102 using asdm::IllegalAccessException; 00103 00104 /*\file FreqOffset.h 00105 \brief Generated from model's revision "1.46", branch "HEAD" 00106 */ 00107 00108 namespace asdm { 00109 00110 //class asdm::FreqOffsetTable; 00111 00112 00113 // class asdm::FeedRow; 00114 class FeedRow; 00115 00116 // class asdm::AntennaRow; 00117 class AntennaRow; 00118 00119 // class asdm::SpectralWindowRow; 00120 class SpectralWindowRow; 00121 00122 00129 class FreqOffsetRow { 00130 friend class asdm::FreqOffsetTable; 00131 00132 public: 00133 00134 virtual ~FreqOffsetRow(); 00135 00139 FreqOffsetTable &getTable() const; 00140 00141 #ifndef WITHOUT_ACS 00142 00146 FreqOffsetRowIDL *toIDL() const; 00147 #endif 00148 00149 #ifndef WITHOUT_ACS 00150 00154 void setFromIDL (FreqOffsetRowIDL x) throw(ConversionException); 00155 #endif 00156 00161 string toXML() const; 00162 00168 void setFromXML (string rowDoc) throw(ConversionException); 00169 00171 // Intrinsic Table Attributes // 00173 00174 00175 // ===> Attribute timeInterval 00176 00177 00178 00179 00180 00185 ArrayTimeInterval getTimeInterval() const; 00186 00187 00188 00189 00199 void setTimeInterval (ArrayTimeInterval timeInterval); 00200 00201 00202 00203 00204 00205 00206 00207 // ===> Attribute offset 00208 00209 00210 00211 00212 00217 Frequency getOffset() const; 00218 00219 00220 00221 00229 void setOffset (Frequency offset); 00230 00231 00232 00233 00234 00235 00237 // Extrinsic Table Attributes // 00239 00240 00241 // ===> Attribute antennaId 00242 00243 00244 00245 00246 00251 Tag getAntennaId() const; 00252 00253 00254 00255 00265 void setAntennaId (Tag antennaId); 00266 00267 00268 00269 00270 00271 00272 00273 // ===> Attribute feedId 00274 00275 00276 00277 00278 00283 int getFeedId() const; 00284 00285 00286 00287 00297 void setFeedId (int feedId); 00298 00299 00300 00301 00302 00303 00304 00305 // ===> Attribute spectralWindowId 00306 00307 00308 00309 00310 00315 Tag getSpectralWindowId() const; 00316 00317 00318 00319 00329 void setSpectralWindowId (Tag spectralWindowId); 00330 00331 00332 00333 00334 00335 00337 // Links // 00339 00340 00341 00342 00343 00344 // ===> Slice link from a row of FreqOffset table to a collection of row of Feed table. 00345 00351 vector <FeedRow *> getFeeds(); 00352 00353 00354 00355 00356 00357 00358 00359 00360 00367 AntennaRow* getAntennaUsingAntennaId(); 00368 00369 00370 00371 00372 00373 00374 00375 00382 SpectralWindowRow* getSpectralWindowUsingSpectralWindowId(); 00383 00384 00385 00386 00387 00388 00389 00394 bool compareNoAutoInc(Tag antennaId, int feedId, Tag spectralWindowId, ArrayTimeInterval timeInterval, Frequency offset); 00395 00396 00397 00398 00399 bool compareRequiredValue(Frequency offset); 00400 00401 00410 bool equalByRequiredValue(FreqOffsetRow* x) ; 00411 00412 private: 00416 FreqOffsetTable &table; 00420 bool hasBeenAdded; 00421 00422 // This method is used by the Table class when this row is added to the table. 00423 void isAdded(); 00424 00425 00434 FreqOffsetRow (FreqOffsetTable &table); 00435 00453 FreqOffsetRow (FreqOffsetTable &table, FreqOffsetRow &row); 00454 00456 // Intrinsic Table Attributes // 00458 00459 00460 // ===> Attribute timeInterval 00461 00462 00463 00464 ArrayTimeInterval timeInterval; 00465 00466 00467 00468 00469 00470 00471 // ===> Attribute offset 00472 00473 00474 00475 Frequency offset; 00476 00477 00478 00479 00480 00482 // Extrinsic Table Attributes // 00484 00485 00486 // ===> Attribute antennaId 00487 00488 00489 00490 Tag antennaId; 00491 00492 00493 00494 00495 00496 00497 // ===> Attribute feedId 00498 00499 00500 00501 int feedId; 00502 00503 00504 00505 00506 00507 00508 // ===> Attribute spectralWindowId 00509 00510 00511 00512 Tag spectralWindowId; 00513 00514 00515 00516 00517 00519 // Links // 00521 00522 00523 00524 00525 00526 00527 00528 00529 00530 00531 00532 00533 00534 00535 00536 00537 00538 00539 00540 00541 00542 00543 }; 00544 00545 } // End namespace asdm 00546 00547 #endif /* FreqOffset_CLASS */

Generated on Tue Nov 18 17:43:41 2008 for ASDM C++ Implementation by doxygen 1.3.8