ScanRow.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 ScanRow.h
00032  */
00033  
00034 #ifndef ScanRow_CLASS
00035 #define ScanRow_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::ScanRowIDL;
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 #include "CScanIntent.h"
00092 using namespace ScanIntentMod;
00093         
00094 
00095         
00096 
00097         
00098 
00099         
00100 
00101 
00102 
00103 using asdm::Angle;
00104 using asdm::AngularRate;
00105 using asdm::ArrayTime;
00106 using asdm::Complex;
00107 using asdm::Entity;
00108 using asdm::EntityId;
00109 using asdm::EntityRef;
00110 using asdm::Flux;
00111 using asdm::Frequency;
00112 using asdm::Humidity;
00113 using asdm::Interval;
00114 using asdm::Length;
00115 using asdm::Pressure;
00116 using asdm::Speed;
00117 using asdm::Tag;
00118 using asdm::Temperature;
00119 using asdm::ConversionException;
00120 using asdm::NoSuchRow;
00121 using asdm::IllegalAccessException;
00122 
00123 /*\file Scan.h
00124     \brief Generated from model's revision "1.41", branch "HEAD"
00125 */
00126 
00127 namespace asdm {
00128 
00129 //class asdm::ScanTable;
00130 
00131 
00132 // class asdm::ExecBlockRow;
00133 class ExecBlockRow;
00134         
00135 
00142 class ScanRow {
00143 friend class asdm::ScanTable;
00144 
00145 public:
00146 
00147         virtual ~ScanRow();
00148 
00152         ScanTable &getTable() const;
00153         
00154 #ifndef WITHOUT_ACS
00155 
00159         ScanRowIDL *toIDL() const;
00160 #endif
00161         
00162 #ifndef WITHOUT_ACS
00163 
00167         void setFromIDL (ScanRowIDL x) throw(ConversionException);
00168 #endif
00169         
00174         string toXML() const;
00175 
00181         void setFromXML (string rowDoc) throw(ConversionException);
00182         
00184         // Intrinsic Table Attributes //
00186         
00187         
00188         // ===> Attribute scanNumber
00189         
00190         
00191         
00192 
00193         
00198         int getScanNumber() const;
00199         
00200  
00201         
00202         
00209         void setScanNumber (int scanNumber) throw(IllegalAccessException);
00210                 
00211         
00212         
00213         
00214 
00215 
00216         
00217         // ===> Attribute startTime
00218         
00219         
00220         
00221 
00222         
00227         ArrayTime getStartTime() const;
00228         
00229  
00230         
00231         
00237         void setStartTime (ArrayTime startTime);
00238                 
00239         
00240         
00241         
00242 
00243 
00244         
00245         // ===> Attribute endTime
00246         
00247         
00248         
00249 
00250         
00255         ArrayTime getEndTime() const;
00256         
00257  
00258         
00259         
00265         void setEndTime (ArrayTime endTime);
00266                 
00267         
00268         
00269         
00270 
00271 
00272         
00273         // ===> Attribute numSubScan
00274         
00275         
00276         
00277 
00278         
00283         int getNumSubScan() const;
00284         
00285  
00286         
00287         
00293         void setNumSubScan (int numSubScan);
00294                 
00295         
00296         
00297         
00298 
00299 
00300         
00301         // ===> Attribute numIntent
00302         
00303         
00304         
00305 
00306         
00311         int getNumIntent() const;
00312         
00313  
00314         
00315         
00321         void setNumIntent (int numIntent);
00322                 
00323         
00324         
00325         
00326 
00327 
00328         
00329         // ===> Attribute numField, which is optional
00330         
00331         
00332         
00337         bool isNumFieldExists() const;
00338         
00339 
00340         
00346         int getNumField() const throw(IllegalAccessException);
00347         
00348  
00349         
00350         
00356         void setNumField (int numField);
00357                 
00358         
00359         
00360         
00364         void clearNumField ();
00365         
00366 
00367 
00368         
00369         // ===> Attribute scanIntent
00370         
00371         
00372         
00373 
00374         
00379         vector<ScanIntent > getScanIntent() const;
00380         
00381  
00382         
00383         
00389         void setScanIntent (vector<ScanIntent > scanIntent);
00390                 
00391         
00392         
00393         
00394 
00395 
00396         
00397         // ===> Attribute sourceName, which is optional
00398         
00399         
00400         
00405         bool isSourceNameExists() const;
00406         
00407 
00408         
00414         string getSourceName() const throw(IllegalAccessException);
00415         
00416  
00417         
00418         
00424         void setSourceName (string sourceName);
00425                 
00426         
00427         
00428         
00432         void clearSourceName ();
00433         
00434 
00435 
00436         
00437         // ===> Attribute fieldName, which is optional
00438         
00439         
00440         
00445         bool isFieldNameExists() const;
00446         
00447 
00448         
00454         vector<string > getFieldName() const throw(IllegalAccessException);
00455         
00456  
00457         
00458         
00464         void setFieldName (vector<string > fieldName);
00465                 
00466         
00467         
00468         
00472         void clearFieldName ();
00473         
00474 
00475 
00476         
00477         // ===> Attribute flagRow
00478         
00479         
00480         
00481 
00482         
00487         bool getFlagRow() const;
00488         
00489  
00490         
00491         
00497         void setFlagRow (bool flagRow);
00498                 
00499         
00500         
00501         
00502 
00503 
00505         // Extrinsic Table Attributes //
00507         
00508         
00509         // ===> Attribute execBlockId
00510         
00511         
00512         
00513 
00514         
00519         Tag getExecBlockId() const;
00520         
00521  
00522         
00523         
00530         void setExecBlockId (Tag execBlockId) throw(IllegalAccessException);
00531                 
00532         
00533         
00534         
00535 
00536 
00538         // Links //
00540         
00541         
00542 
00543         
00544                 
00551          ExecBlockRow* getExecBlockUsingExecBlockId();
00552          
00553 
00554         
00555 
00556         
00557         
00558         
00563         bool compareNoAutoInc(Tag execBlockId, int scanNumber, ArrayTime startTime, ArrayTime endTime, int numSubScan, int numIntent, vector<ScanIntent > scanIntent, bool flagRow);
00564         
00565         
00566 
00567         
00568         bool compareRequiredValue(ArrayTime startTime, ArrayTime endTime, int numSubScan, int numIntent, vector<ScanIntent > scanIntent, bool flagRow); 
00569                  
00570         
00579         bool equalByRequiredValue(ScanRow* x) ;
00580 
00581 private:
00585         ScanTable &table;
00589         bool hasBeenAdded;
00590 
00591         // This method is used by the Table class when this row is added to the table.
00592         void isAdded();
00593 
00594 
00603         ScanRow (ScanTable &table);
00604 
00622          ScanRow (ScanTable &table, ScanRow &row);
00623                 
00625         // Intrinsic Table Attributes //
00627         
00628         
00629         // ===> Attribute scanNumber
00630         
00631         
00632 
00633         int scanNumber;
00634 
00635         
00636         
00637         
00638 
00639         
00640         // ===> Attribute startTime
00641         
00642         
00643 
00644         ArrayTime startTime;
00645 
00646         
00647         
00648         
00649 
00650         
00651         // ===> Attribute endTime
00652         
00653         
00654 
00655         ArrayTime endTime;
00656 
00657         
00658         
00659         
00660 
00661         
00662         // ===> Attribute numSubScan
00663         
00664         
00665 
00666         int numSubScan;
00667 
00668         
00669         
00670         
00671 
00672         
00673         // ===> Attribute numIntent
00674         
00675         
00676 
00677         int numIntent;
00678 
00679         
00680         
00681         
00682 
00683         
00684         // ===> Attribute numField, which is optional
00685         
00686         
00687         bool numFieldExists;
00688         
00689 
00690         int numField;
00691 
00692         
00693         
00694         
00695 
00696         
00697         // ===> Attribute scanIntent
00698         
00699         
00700 
00701         vector<ScanIntent > scanIntent;
00702 
00703         
00704         
00705         
00706 
00707         
00708         // ===> Attribute sourceName, which is optional
00709         
00710         
00711         bool sourceNameExists;
00712         
00713 
00714         string sourceName;
00715 
00716         
00717         
00718         
00719 
00720         
00721         // ===> Attribute fieldName, which is optional
00722         
00723         
00724         bool fieldNameExists;
00725         
00726 
00727         vector<string > fieldName;
00728 
00729         
00730         
00731         
00732 
00733         
00734         // ===> Attribute flagRow
00735         
00736         
00737 
00738         bool flagRow;
00739 
00740         
00741         
00742         
00743 
00745         // Extrinsic Table Attributes //
00747         
00748         
00749         // ===> Attribute execBlockId
00750         
00751         
00752 
00753         Tag execBlockId;
00754 
00755         
00756         
00757         
00758 
00760         // Links //
00762         
00763         
00764                 
00765 
00766          
00767 
00768         
00769 
00770 
00771 };
00772 
00773 } // End namespace asdm
00774 
00775 #endif /* Scan_CLASS */

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