WeatherRow.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 WeatherRow.h 00032 */ 00033 00034 #ifndef WeatherRow_CLASS 00035 #define WeatherRow_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::WeatherRowIDL; 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 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 using asdm::Angle; 00111 using asdm::AngularRate; 00112 using asdm::ArrayTime; 00113 using asdm::Complex; 00114 using asdm::Entity; 00115 using asdm::EntityId; 00116 using asdm::EntityRef; 00117 using asdm::Flux; 00118 using asdm::Frequency; 00119 using asdm::Humidity; 00120 using asdm::Interval; 00121 using asdm::Length; 00122 using asdm::Pressure; 00123 using asdm::Speed; 00124 using asdm::Tag; 00125 using asdm::Temperature; 00126 using asdm::ConversionException; 00127 using asdm::NoSuchRow; 00128 using asdm::IllegalAccessException; 00129 00130 /*\file Weather.h 00131 \brief Generated from model's revision "1.46", branch "HEAD" 00132 */ 00133 00134 namespace asdm { 00135 00136 //class asdm::WeatherTable; 00137 00138 00139 // class asdm::StationRow; 00140 class StationRow; 00141 00142 00149 class WeatherRow { 00150 friend class asdm::WeatherTable; 00151 00152 public: 00153 00154 virtual ~WeatherRow(); 00155 00159 WeatherTable &getTable() const; 00160 00161 #ifndef WITHOUT_ACS 00162 00166 WeatherRowIDL *toIDL() const; 00167 #endif 00168 00169 #ifndef WITHOUT_ACS 00170 00174 void setFromIDL (WeatherRowIDL x) throw(ConversionException); 00175 #endif 00176 00181 string toXML() const; 00182 00188 void setFromXML (string rowDoc) throw(ConversionException); 00189 00191 // Intrinsic Table Attributes // 00193 00194 00195 // ===> Attribute timeInterval 00196 00197 00198 00199 00200 00205 ArrayTimeInterval getTimeInterval() const; 00206 00207 00208 00209 00219 void setTimeInterval (ArrayTimeInterval timeInterval); 00220 00221 00222 00223 00224 00225 00226 00227 // ===> Attribute pressure 00228 00229 00230 00231 00232 00237 Pressure getPressure() const; 00238 00239 00240 00241 00249 void setPressure (Pressure pressure); 00250 00251 00252 00253 00254 00255 00256 00257 // ===> Attribute relHumidity 00258 00259 00260 00261 00262 00267 Humidity getRelHumidity() const; 00268 00269 00270 00271 00279 void setRelHumidity (Humidity relHumidity); 00280 00281 00282 00283 00284 00285 00286 00287 // ===> Attribute temperature 00288 00289 00290 00291 00292 00297 Temperature getTemperature() const; 00298 00299 00300 00301 00309 void setTemperature (Temperature temperature); 00310 00311 00312 00313 00314 00315 00316 00317 // ===> Attribute dewPoint, which is optional 00318 00319 00320 00325 bool isDewPointExists() const; 00326 00327 00328 00334 Temperature getDewPoint() const throw(IllegalAccessException); 00335 00336 00337 00338 00345 void setDewPoint (Temperature dewPoint); 00346 00347 00348 00349 00353 void clearDewPoint (); 00354 00355 00356 00357 00358 // ===> Attribute windDirection 00359 00360 00361 00362 00363 00368 Angle getWindDirection() const; 00369 00370 00371 00372 00380 void setWindDirection (Angle windDirection); 00381 00382 00383 00384 00385 00386 00387 00388 // ===> Attribute windSpeed 00389 00390 00391 00392 00393 00398 Speed getWindSpeed() const; 00399 00400 00401 00402 00410 void setWindSpeed (Speed windSpeed); 00411 00412 00413 00414 00415 00416 00417 00418 // ===> Attribute windMax 00419 00420 00421 00422 00423 00428 Speed getWindMax() const; 00429 00430 00431 00432 00440 void setWindMax (Speed windMax); 00441 00442 00443 00444 00445 00446 00447 00448 // ===> Attribute pressureFlag 00449 00450 00451 00452 00453 00458 bool getPressureFlag() const; 00459 00460 00461 00462 00470 void setPressureFlag (bool pressureFlag); 00471 00472 00473 00474 00475 00476 00477 00478 // ===> Attribute relHumidityFlag 00479 00480 00481 00482 00483 00488 bool getRelHumidityFlag() const; 00489 00490 00491 00492 00500 void setRelHumidityFlag (bool relHumidityFlag); 00501 00502 00503 00504 00505 00506 00507 00508 // ===> Attribute temperatureFlag 00509 00510 00511 00512 00513 00518 bool getTemperatureFlag() const; 00519 00520 00521 00522 00530 void setTemperatureFlag (bool temperatureFlag); 00531 00532 00533 00534 00535 00536 00537 00538 // ===> Attribute dewPointFlag, which is optional 00539 00540 00541 00546 bool isDewPointFlagExists() const; 00547 00548 00549 00555 bool getDewPointFlag() const throw(IllegalAccessException); 00556 00557 00558 00559 00566 void setDewPointFlag (bool dewPointFlag); 00567 00568 00569 00570 00574 void clearDewPointFlag (); 00575 00576 00577 00578 00579 // ===> Attribute windDirectionFlag 00580 00581 00582 00583 00584 00589 bool getWindDirectionFlag() const; 00590 00591 00592 00593 00601 void setWindDirectionFlag (bool windDirectionFlag); 00602 00603 00604 00605 00606 00607 00608 00609 // ===> Attribute windSpeedFlag 00610 00611 00612 00613 00614 00619 bool getWindSpeedFlag() const; 00620 00621 00622 00623 00631 void setWindSpeedFlag (bool windSpeedFlag); 00632 00633 00634 00635 00636 00637 00638 00639 // ===> Attribute windMaxFlag 00640 00641 00642 00643 00644 00649 bool getWindMaxFlag() const; 00650 00651 00652 00653 00661 void setWindMaxFlag (bool windMaxFlag); 00662 00663 00664 00665 00666 00667 00669 // Extrinsic Table Attributes // 00671 00672 00673 // ===> Attribute stationId 00674 00675 00676 00677 00678 00683 Tag getStationId() const; 00684 00685 00686 00687 00697 void setStationId (Tag stationId); 00698 00699 00700 00701 00702 00703 00705 // Links // 00707 00708 00709 00710 00711 00718 StationRow* getStationUsingStationId(); 00719 00720 00721 00722 00723 00724 00725 00730 bool compareNoAutoInc(Tag stationId, ArrayTimeInterval timeInterval, Pressure pressure, Humidity relHumidity, Temperature temperature, Angle windDirection, Speed windSpeed, Speed windMax, bool pressureFlag, bool relHumidityFlag, bool temperatureFlag, bool windDirectionFlag, bool windSpeedFlag, bool windMaxFlag); 00731 00732 00733 00734 00735 bool compareRequiredValue(Pressure pressure, Humidity relHumidity, Temperature temperature, Angle windDirection, Speed windSpeed, Speed windMax, bool pressureFlag, bool relHumidityFlag, bool temperatureFlag, bool windDirectionFlag, bool windSpeedFlag, bool windMaxFlag); 00736 00737 00746 bool equalByRequiredValue(WeatherRow* x) ; 00747 00748 private: 00752 WeatherTable &table; 00756 bool hasBeenAdded; 00757 00758 // This method is used by the Table class when this row is added to the table. 00759 void isAdded(); 00760 00761 00770 WeatherRow (WeatherTable &table); 00771 00789 WeatherRow (WeatherTable &table, WeatherRow &row); 00790 00792 // Intrinsic Table Attributes // 00794 00795 00796 // ===> Attribute timeInterval 00797 00798 00799 00800 ArrayTimeInterval timeInterval; 00801 00802 00803 00804 00805 00806 00807 // ===> Attribute pressure 00808 00809 00810 00811 Pressure pressure; 00812 00813 00814 00815 00816 00817 00818 // ===> Attribute relHumidity 00819 00820 00821 00822 Humidity relHumidity; 00823 00824 00825 00826 00827 00828 00829 // ===> Attribute temperature 00830 00831 00832 00833 Temperature temperature; 00834 00835 00836 00837 00838 00839 00840 // ===> Attribute dewPoint, which is optional 00841 00842 00843 bool dewPointExists; 00844 00845 00846 Temperature dewPoint; 00847 00848 00849 00850 00851 00852 00853 // ===> Attribute windDirection 00854 00855 00856 00857 Angle windDirection; 00858 00859 00860 00861 00862 00863 00864 // ===> Attribute windSpeed 00865 00866 00867 00868 Speed windSpeed; 00869 00870 00871 00872 00873 00874 00875 // ===> Attribute windMax 00876 00877 00878 00879 Speed windMax; 00880 00881 00882 00883 00884 00885 00886 // ===> Attribute pressureFlag 00887 00888 00889 00890 bool pressureFlag; 00891 00892 00893 00894 00895 00896 00897 // ===> Attribute relHumidityFlag 00898 00899 00900 00901 bool relHumidityFlag; 00902 00903 00904 00905 00906 00907 00908 // ===> Attribute temperatureFlag 00909 00910 00911 00912 bool temperatureFlag; 00913 00914 00915 00916 00917 00918 00919 // ===> Attribute dewPointFlag, which is optional 00920 00921 00922 bool dewPointFlagExists; 00923 00924 00925 bool dewPointFlag; 00926 00927 00928 00929 00930 00931 00932 // ===> Attribute windDirectionFlag 00933 00934 00935 00936 bool windDirectionFlag; 00937 00938 00939 00940 00941 00942 00943 // ===> Attribute windSpeedFlag 00944 00945 00946 00947 bool windSpeedFlag; 00948 00949 00950 00951 00952 00953 00954 // ===> Attribute windMaxFlag 00955 00956 00957 00958 bool windMaxFlag; 00959 00960 00961 00962 00963 00965 // Extrinsic Table Attributes // 00967 00968 00969 // ===> Attribute stationId 00970 00971 00972 00973 Tag stationId; 00974 00975 00976 00977 00978 00980 // Links // 00982 00983 00984 00985 00986 00987 00988 00989 00990 00991 }; 00992 00993 } // End namespace asdm 00994 00995 #endif /* Weather_CLASS */

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