SBSummaryRow.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 SBSummaryRow.h
00032  */
00033  
00034 #ifndef SBSummaryRow_CLASS
00035 #define SBSummaryRow_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::SBSummaryRowIDL;
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 #include "CSBType.h"
00088 using namespace SBTypeMod;
00089         
00090 
00091         
00092 
00093         
00094 
00095         
00096 
00097         
00098 
00099         
00100 
00101         
00102 
00103         
00104 
00105         
00106 
00107         
00108 
00109         
00110 
00111         
00112 
00113 
00114 
00115 using asdm::Angle;
00116 using asdm::AngularRate;
00117 using asdm::ArrayTime;
00118 using asdm::Complex;
00119 using asdm::Entity;
00120 using asdm::EntityId;
00121 using asdm::EntityRef;
00122 using asdm::Flux;
00123 using asdm::Frequency;
00124 using asdm::Humidity;
00125 using asdm::Interval;
00126 using asdm::Length;
00127 using asdm::Pressure;
00128 using asdm::Speed;
00129 using asdm::Tag;
00130 using asdm::Temperature;
00131 using asdm::ConversionException;
00132 using asdm::NoSuchRow;
00133 using asdm::IllegalAccessException;
00134 
00135 /*\file SBSummary.h
00136     \brief Generated from model's revision "1.41", branch "HEAD"
00137 */
00138 
00139 namespace asdm {
00140 
00141 //class asdm::SBSummaryTable;
00142 
00143         
00144 
00151 class SBSummaryRow {
00152 friend class asdm::SBSummaryTable;
00153 
00154 public:
00155 
00156         virtual ~SBSummaryRow();
00157 
00161         SBSummaryTable &getTable() const;
00162         
00163 #ifndef WITHOUT_ACS
00164 
00168         SBSummaryRowIDL *toIDL() const;
00169 #endif
00170         
00171 #ifndef WITHOUT_ACS
00172 
00176         void setFromIDL (SBSummaryRowIDL x) throw(ConversionException);
00177 #endif
00178         
00183         string toXML() const;
00184 
00190         void setFromXML (string rowDoc) throw(ConversionException);
00191         
00193         // Intrinsic Table Attributes //
00195         
00196         
00197         // ===> Attribute sbId
00198         
00199         
00200         
00201 
00202         
00207         EntityRef getSbId() const;
00208         
00209  
00210         
00211         
00218         void setSbId (EntityRef sbId) throw(IllegalAccessException);
00219                 
00220         
00221         
00222         
00223 
00224 
00225         
00226         // ===> Attribute projectId
00227         
00228         
00229         
00230 
00231         
00236         EntityRef getProjectId() const;
00237         
00238  
00239         
00240         
00246         void setProjectId (EntityRef projectId);
00247                 
00248         
00249         
00250         
00251 
00252 
00253         
00254         // ===> Attribute obsUnitSetId
00255         
00256         
00257         
00258 
00259         
00264         EntityRef getObsUnitSetId() const;
00265         
00266  
00267         
00268         
00274         void setObsUnitSetId (EntityRef obsUnitSetId);
00275                 
00276         
00277         
00278         
00279 
00280 
00281         
00282         // ===> Attribute sbIntent
00283         
00284         
00285         
00286 
00287         
00292         string getSbIntent() const;
00293         
00294  
00295         
00296         
00302         void setSbIntent (string sbIntent);
00303                 
00304         
00305         
00306         
00307 
00308 
00309         
00310         // ===> Attribute sbType
00311         
00312         
00313         
00314 
00315         
00320         SBType getSbType() const;
00321         
00322  
00323         
00324         
00330         void setSbType (SBType sbType);
00331                 
00332         
00333         
00334         
00335 
00336 
00337         
00338         // ===> Attribute sbDuration
00339         
00340         
00341         
00342 
00343         
00348         Interval getSbDuration() const;
00349         
00350  
00351         
00352         
00358         void setSbDuration (Interval sbDuration);
00359                 
00360         
00361         
00362         
00363 
00364 
00365         
00366         // ===> Attribute numScan
00367         
00368         
00369         
00370 
00371         
00376         int getNumScan() const;
00377         
00378  
00379         
00380         
00386         void setNumScan (int numScan);
00387                 
00388         
00389         
00390         
00391 
00392 
00393         
00394         // ===> Attribute scanIntent
00395         
00396         
00397         
00398 
00399         
00404         vector<string > getScanIntent() const;
00405         
00406  
00407         
00408         
00414         void setScanIntent (vector<string > scanIntent);
00415                 
00416         
00417         
00418         
00419 
00420 
00421         
00422         // ===> Attribute numberRepeats
00423         
00424         
00425         
00426 
00427         
00432         int getNumberRepeats() const;
00433         
00434  
00435         
00436         
00442         void setNumberRepeats (int numberRepeats);
00443                 
00444         
00445         
00446         
00447 
00448 
00449         
00450         // ===> Attribute weatherConstraint
00451         
00452         
00453         
00454 
00455         
00460         vector<string > getWeatherConstraint() const;
00461         
00462  
00463         
00464         
00470         void setWeatherConstraint (vector<string > weatherConstraint);
00471                 
00472         
00473         
00474         
00475 
00476 
00477         
00478         // ===> Attribute scienceGoal
00479         
00480         
00481         
00482 
00483         
00488         vector<string > getScienceGoal() const;
00489         
00490  
00491         
00492         
00498         void setScienceGoal (vector<string > scienceGoal);
00499                 
00500         
00501         
00502         
00503 
00504 
00505         
00506         // ===> Attribute raCenter
00507         
00508         
00509         
00510 
00511         
00516         double getRaCenter() const;
00517         
00518  
00519         
00520         
00526         void setRaCenter (double raCenter);
00527                 
00528         
00529         
00530         
00531 
00532 
00533         
00534         // ===> Attribute decCenter
00535         
00536         
00537         
00538 
00539         
00544         double getDecCenter() const;
00545         
00546  
00547         
00548         
00554         void setDecCenter (double decCenter);
00555                 
00556         
00557         
00558         
00559 
00560 
00561         
00562         // ===> Attribute frequency
00563         
00564         
00565         
00566 
00567         
00572         double getFrequency() const;
00573         
00574  
00575         
00576         
00582         void setFrequency (double frequency);
00583                 
00584         
00585         
00586         
00587 
00588 
00589         
00590         // ===> Attribute frequencyBand
00591         
00592         
00593         
00594 
00595         
00600         string getFrequencyBand() const;
00601         
00602  
00603         
00604         
00610         void setFrequencyBand (string frequencyBand);
00611                 
00612         
00613         
00614         
00615 
00616 
00617         
00618         // ===> Attribute observingMode
00619         
00620         
00621         
00622 
00623         
00628         vector<string > getObservingMode() const;
00629         
00630  
00631         
00632         
00638         void setObservingMode (vector<string > observingMode);
00639                 
00640         
00641         
00642         
00643 
00644 
00646         // Extrinsic Table Attributes //
00648         
00650         // Links //
00652         
00653         
00654         
00655         
00660         bool compareNoAutoInc(EntityRef sbId, EntityRef projectId, EntityRef obsUnitSetId, string sbIntent, SBType sbType, Interval sbDuration, int numScan, vector<string > scanIntent, int numberRepeats, vector<string > weatherConstraint, vector<string > scienceGoal, double raCenter, double decCenter, double frequency, string frequencyBand, vector<string > observingMode);
00661         
00662         
00663 
00664         
00665         bool compareRequiredValue(EntityRef projectId, EntityRef obsUnitSetId, string sbIntent, SBType sbType, Interval sbDuration, int numScan, vector<string > scanIntent, int numberRepeats, vector<string > weatherConstraint, vector<string > scienceGoal, double raCenter, double decCenter, double frequency, string frequencyBand, vector<string > observingMode); 
00666                  
00667         
00676         bool equalByRequiredValue(SBSummaryRow* x) ;
00677 
00678 private:
00682         SBSummaryTable &table;
00686         bool hasBeenAdded;
00687 
00688         // This method is used by the Table class when this row is added to the table.
00689         void isAdded();
00690 
00691 
00700         SBSummaryRow (SBSummaryTable &table);
00701 
00719          SBSummaryRow (SBSummaryTable &table, SBSummaryRow &row);
00720                 
00722         // Intrinsic Table Attributes //
00724         
00725         
00726         // ===> Attribute sbId
00727         
00728         
00729 
00730         EntityRef sbId;
00731 
00732         
00733         
00734         
00735 
00736         
00737         // ===> Attribute projectId
00738         
00739         
00740 
00741         EntityRef projectId;
00742 
00743         
00744         
00745         
00746 
00747         
00748         // ===> Attribute obsUnitSetId
00749         
00750         
00751 
00752         EntityRef obsUnitSetId;
00753 
00754         
00755         
00756         
00757 
00758         
00759         // ===> Attribute sbIntent
00760         
00761         
00762 
00763         string sbIntent;
00764 
00765         
00766         
00767         
00768 
00769         
00770         // ===> Attribute sbType
00771         
00772         
00773 
00774         SBType sbType;
00775 
00776         
00777         
00778         
00779 
00780         
00781         // ===> Attribute sbDuration
00782         
00783         
00784 
00785         Interval sbDuration;
00786 
00787         
00788         
00789         
00790 
00791         
00792         // ===> Attribute numScan
00793         
00794         
00795 
00796         int numScan;
00797 
00798         
00799         
00800         
00801 
00802         
00803         // ===> Attribute scanIntent
00804         
00805         
00806 
00807         vector<string > scanIntent;
00808 
00809         
00810         
00811         
00812 
00813         
00814         // ===> Attribute numberRepeats
00815         
00816         
00817 
00818         int numberRepeats;
00819 
00820         
00821         
00822         
00823 
00824         
00825         // ===> Attribute weatherConstraint
00826         
00827         
00828 
00829         vector<string > weatherConstraint;
00830 
00831         
00832         
00833         
00834 
00835         
00836         // ===> Attribute scienceGoal
00837         
00838         
00839 
00840         vector<string > scienceGoal;
00841 
00842         
00843         
00844         
00845 
00846         
00847         // ===> Attribute raCenter
00848         
00849         
00850 
00851         double raCenter;
00852 
00853         
00854         
00855         
00856 
00857         
00858         // ===> Attribute decCenter
00859         
00860         
00861 
00862         double decCenter;
00863 
00864         
00865         
00866         
00867 
00868         
00869         // ===> Attribute frequency
00870         
00871         
00872 
00873         double frequency;
00874 
00875         
00876         
00877         
00878 
00879         
00880         // ===> Attribute frequencyBand
00881         
00882         
00883 
00884         string frequencyBand;
00885 
00886         
00887         
00888         
00889 
00890         
00891         // ===> Attribute observingMode
00892         
00893         
00894 
00895         vector<string > observingMode;
00896 
00897         
00898         
00899         
00900 
00902         // Extrinsic Table Attributes //
00904         
00906         // Links //
00908         
00909 
00910 };
00911 
00912 } // End namespace asdm
00913 
00914 #endif /* SBSummary_CLASS */

Generated on Thu Nov 29 16:46:46 2007 for ASDM C++ Implementation by  doxygen 1.5.1