PointingModelRow.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 PointingModelRow.h 00032 */ 00033 00034 #ifndef PointingModelRow_CLASS 00035 #define PointingModelRow_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::PointingModelRowIDL; 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 00085 00086 00087 00088 00089 00090 00091 00092 using asdm::Angle; 00093 using asdm::AngularRate; 00094 using asdm::ArrayTime; 00095 using asdm::Complex; 00096 using asdm::Entity; 00097 using asdm::EntityId; 00098 using asdm::EntityRef; 00099 using asdm::Flux; 00100 using asdm::Frequency; 00101 using asdm::Humidity; 00102 using asdm::Interval; 00103 using asdm::Length; 00104 using asdm::Pressure; 00105 using asdm::Speed; 00106 using asdm::Tag; 00107 using asdm::Temperature; 00108 using asdm::ConversionException; 00109 using asdm::NoSuchRow; 00110 using asdm::IllegalAccessException; 00111 00112 /*\file PointingModel.h 00113 \brief Generated from model's revision "1.46", branch "HEAD" 00114 */ 00115 00116 namespace asdm { 00117 00118 //class asdm::PointingModelTable; 00119 00120 00121 // class asdm::AntennaRow; 00122 class AntennaRow; 00123 00124 00131 class PointingModelRow { 00132 friend class asdm::PointingModelTable; 00133 00134 public: 00135 00136 virtual ~PointingModelRow(); 00137 00141 PointingModelTable &getTable() const; 00142 00143 #ifndef WITHOUT_ACS 00144 00148 PointingModelRowIDL *toIDL() const; 00149 #endif 00150 00151 #ifndef WITHOUT_ACS 00152 00156 void setFromIDL (PointingModelRowIDL x) throw(ConversionException); 00157 #endif 00158 00163 string toXML() const; 00164 00170 void setFromXML (string rowDoc) throw(ConversionException); 00171 00173 // Intrinsic Table Attributes // 00175 00176 00177 // ===> Attribute pointingModelId 00178 00179 00180 00181 00182 00187 int getPointingModelId() const; 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 // ===> Attribute numCoeff 00198 00199 00200 00201 00202 00207 int getNumCoeff() const; 00208 00209 00210 00211 00219 void setNumCoeff (int numCoeff); 00220 00221 00222 00223 00224 00225 00226 00227 // ===> Attribute coeffName 00228 00229 00230 00231 00232 00237 vector<string > getCoeffName() const; 00238 00239 00240 00241 00249 void setCoeffName (vector<string > coeffName); 00250 00251 00252 00253 00254 00255 00256 00257 // ===> Attribute coeffVal 00258 00259 00260 00261 00262 00267 vector<float > getCoeffVal() const; 00268 00269 00270 00271 00279 void setCoeffVal (vector<float > coeffVal); 00280 00281 00282 00283 00284 00285 00286 00287 // ===> Attribute numFormula, which is optional 00288 00289 00290 00295 bool isNumFormulaExists() const; 00296 00297 00298 00304 int getNumFormula() const throw(IllegalAccessException); 00305 00306 00307 00308 00315 void setNumFormula (int numFormula); 00316 00317 00318 00319 00323 void clearNumFormula (); 00324 00325 00326 00327 00328 // ===> Attribute coeffFormula, which is optional 00329 00330 00331 00336 bool isCoeffFormulaExists() const; 00337 00338 00339 00345 vector<string > getCoeffFormula() const throw(IllegalAccessException); 00346 00347 00348 00349 00356 void setCoeffFormula (vector<string > coeffFormula); 00357 00358 00359 00360 00364 void clearCoeffFormula (); 00365 00366 00367 00369 // Extrinsic Table Attributes // 00371 00372 00373 // ===> Attribute antennaId 00374 00375 00376 00377 00378 00383 Tag getAntennaId() const; 00384 00385 00386 00387 00397 void setAntennaId (Tag antennaId); 00398 00399 00400 00401 00402 00403 00405 // Links // 00407 00408 00409 00410 00411 00418 AntennaRow* getAntennaUsingAntennaId(); 00419 00420 00421 00422 00423 00424 00425 00430 bool compareNoAutoInc(Tag antennaId, int numCoeff, vector<string > coeffName, vector<float > coeffVal); 00431 00432 00433 00434 00435 bool compareRequiredValue(int numCoeff, vector<string > coeffName, vector<float > coeffVal); 00436 00437 00446 bool equalByRequiredValue(PointingModelRow* x) ; 00447 00448 private: 00452 PointingModelTable &table; 00456 bool hasBeenAdded; 00457 00458 // This method is used by the Table class when this row is added to the table. 00459 void isAdded(); 00460 00461 00470 PointingModelRow (PointingModelTable &table); 00471 00489 PointingModelRow (PointingModelTable &table, PointingModelRow &row); 00490 00492 // Intrinsic Table Attributes // 00494 00495 00496 // ===> Attribute pointingModelId 00497 00498 00499 00500 int pointingModelId; 00501 00502 00503 00504 00514 void setPointingModelId (int pointingModelId); 00515 00516 00517 00518 00519 // ===> Attribute numCoeff 00520 00521 00522 00523 int numCoeff; 00524 00525 00526 00527 00528 00529 00530 // ===> Attribute coeffName 00531 00532 00533 00534 vector<string > coeffName; 00535 00536 00537 00538 00539 00540 00541 // ===> Attribute coeffVal 00542 00543 00544 00545 vector<float > coeffVal; 00546 00547 00548 00549 00550 00551 00552 // ===> Attribute numFormula, which is optional 00553 00554 00555 bool numFormulaExists; 00556 00557 00558 int numFormula; 00559 00560 00561 00562 00563 00564 00565 // ===> Attribute coeffFormula, which is optional 00566 00567 00568 bool coeffFormulaExists; 00569 00570 00571 vector<string > coeffFormula; 00572 00573 00574 00575 00576 00578 // Extrinsic Table Attributes // 00580 00581 00582 // ===> Attribute antennaId 00583 00584 00585 00586 Tag antennaId; 00587 00588 00589 00590 00591 00593 // Links // 00595 00596 00597 00598 00599 00600 00601 00602 00603 00604 }; 00605 00606 } // End namespace asdm 00607 00608 #endif /* PointingModel_CLASS */

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