ReceiverRow.h

Go to the documentation of this file.
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 ReceiverRow.h
00032  */
00033  
00034 #ifndef ReceiverRow_CLASS
00035 #define ReceiverRow_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::ReceiverRowIDL;
00047 #endif
00048 
00049 
00050 
00051 
00052 
00053 
00054 #include <Tag.h>
00055 using  asdm::Tag;
00056 
00057 #include <Frequency.h>
00058 using  asdm::Frequency;
00059 
00060 #include <ArrayTimeInterval.h>
00061 using  asdm::ArrayTimeInterval;
00062 
00063 
00064 
00065 
00066         
00067 
00068         
00069 
00070         
00071 
00072         
00073 
00074         
00075 #include "CReceiverBand.h"
00076 using namespace ReceiverBandMod;
00077         
00078 
00079         
00080 
00081         
00082 #include "CReceiverSideband.h"
00083 using namespace ReceiverSidebandMod;
00084         
00085 
00086         
00087 #include "CNetSideband.h"
00088 using namespace NetSidebandMod;
00089         
00090 
00091 
00092 
00093 #include <ConversionException.h>
00094 #include <NoSuchRow.h>
00095 #include <IllegalAccessException.h>
00096 
00097 
00098 /*\file Receiver.h
00099     \brief Generated from model's revision "1.55", branch "HEAD"
00100 */
00101 
00102 namespace asdm {
00103 
00104 //class asdm::ReceiverTable;
00105 
00106 
00107 // class asdm::SpectralWindowRow;
00108 class SpectralWindowRow;
00109         
00110 
00111 class ReceiverRow;
00112 typedef void (ReceiverRow::*ReceiverAttributeFromBin) (EndianISStream& eiss);
00113 
00120 class ReceiverRow {
00121 friend class asdm::ReceiverTable;
00122 
00123 public:
00124 
00125         virtual ~ReceiverRow();
00126 
00130         ReceiverTable &getTable() const;
00131         
00136         bool isAdded() const;
00137                 
00139         // Intrinsic Table Attributes //
00141         
00142         
00143         // ===> Attribute receiverId
00144         
00145         
00146         
00147 
00148         
00153         int getReceiverId() const;
00154         
00155  
00156         
00157         
00158         
00159         
00160 
00161 
00162         
00163         // ===> Attribute timeInterval
00164         
00165         
00166         
00167 
00168         
00173         ArrayTimeInterval getTimeInterval() const;
00174         
00175  
00176         
00177         
00187         void setTimeInterval (ArrayTimeInterval timeInterval);
00188                 
00189         
00190         
00191         
00192 
00193 
00194         
00195         // ===> Attribute name
00196         
00197         
00198         
00199 
00200         
00205         string getName() const;
00206         
00207  
00208         
00209         
00217         void setName (string name);
00218                 
00219         
00220         
00221         
00222 
00223 
00224         
00225         // ===> Attribute numLO
00226         
00227         
00228         
00229 
00230         
00235         int getNumLO() const;
00236         
00237  
00238         
00239         
00247         void setNumLO (int numLO);
00248                 
00249         
00250         
00251         
00252 
00253 
00254         
00255         // ===> Attribute frequencyBand
00256         
00257         
00258         
00259 
00260         
00265         ReceiverBandMod::ReceiverBand getFrequencyBand() const;
00266         
00267  
00268         
00269         
00277         void setFrequencyBand (ReceiverBandMod::ReceiverBand frequencyBand);
00278                 
00279         
00280         
00281         
00282 
00283 
00284         
00285         // ===> Attribute freqLO
00286         
00287         
00288         
00289 
00290         
00295         vector<Frequency > getFreqLO() const;
00296         
00297  
00298         
00299         
00307         void setFreqLO (vector<Frequency > freqLO);
00308                 
00309         
00310         
00311         
00312 
00313 
00314         
00315         // ===> Attribute receiverSideband
00316         
00317         
00318         
00319 
00320         
00325         ReceiverSidebandMod::ReceiverSideband getReceiverSideband() const;
00326         
00327  
00328         
00329         
00337         void setReceiverSideband (ReceiverSidebandMod::ReceiverSideband receiverSideband);
00338                 
00339         
00340         
00341         
00342 
00343 
00344         
00345         // ===> Attribute sidebandLO
00346         
00347         
00348         
00349 
00350         
00355         vector<NetSidebandMod::NetSideband > getSidebandLO() const;
00356         
00357  
00358         
00359         
00367         void setSidebandLO (vector<NetSidebandMod::NetSideband > sidebandLO);
00368                 
00369         
00370         
00371         
00372 
00373 
00375         // Extrinsic Table Attributes //
00377         
00378         
00379         // ===> Attribute spectralWindowId
00380         
00381         
00382         
00383 
00384         
00389         Tag getSpectralWindowId() const;
00390         
00391  
00392         
00393         
00403         void setSpectralWindowId (Tag spectralWindowId);
00404                 
00405         
00406         
00407         
00408 
00409 
00411         // Links //
00413         
00414         
00415 
00416         
00417                 
00424          SpectralWindowRow* getSpectralWindowUsingSpectralWindowId();
00425          
00426 
00427         
00428 
00429         
00430         
00431         
00453         bool compareNoAutoInc(Tag spectralWindowId, ArrayTimeInterval timeInterval, string name, int numLO, ReceiverBandMod::ReceiverBand frequencyBand, vector<Frequency > freqLO, ReceiverSidebandMod::ReceiverSideband receiverSideband, vector<NetSidebandMod::NetSideband > sidebandLO);
00454         
00455         
00456 
00457         
00475         bool compareRequiredValue(string name, int numLO, ReceiverBandMod::ReceiverBand frequencyBand, vector<Frequency > freqLO, ReceiverSidebandMod::ReceiverSideband receiverSideband, vector<NetSidebandMod::NetSideband > sidebandLO); 
00476                  
00477         
00486         bool equalByRequiredValue(ReceiverRow* x) ;
00487         
00488 #ifndef WITHOUT_ACS
00489 
00493         ReceiverRowIDL *toIDL() const;
00494 #endif
00495         
00496 #ifndef WITHOUT_ACS
00497 
00502         void setFromIDL (ReceiverRowIDL x) ;
00503 #endif
00504         
00509         string toXML() const;
00510 
00517         void setFromXML (string rowDoc) ;       
00518 
00519 private:
00523         ReceiverTable &table;
00527         bool hasBeenAdded;
00528 
00529         // This method is used by the Table class when this row is added to the table.
00530         void isAdded(bool added);
00531 
00532 
00541         ReceiverRow (ReceiverTable &table);
00542 
00560          ReceiverRow (ReceiverTable &table, ReceiverRow &row);
00561                 
00563         // Intrinsic Table Attributes //
00565         
00566         
00567         // ===> Attribute receiverId
00568         
00569         
00570 
00571         int receiverId;
00572 
00573         
00574         
00575         
00585         void setReceiverId (int receiverId);
00586                 
00587         
00588 
00589         
00590         // ===> Attribute timeInterval
00591         
00592         
00593 
00594         ArrayTimeInterval timeInterval;
00595 
00596         
00597         
00598         
00599 
00600         
00601         // ===> Attribute name
00602         
00603         
00604 
00605         string name;
00606 
00607         
00608         
00609         
00610 
00611         
00612         // ===> Attribute numLO
00613         
00614         
00615 
00616         int numLO;
00617 
00618         
00619         
00620         
00621 
00622         
00623         // ===> Attribute frequencyBand
00624         
00625         
00626 
00627         ReceiverBandMod::ReceiverBand frequencyBand;
00628 
00629         
00630         
00631         
00632 
00633         
00634         // ===> Attribute freqLO
00635         
00636         
00637 
00638         vector<Frequency > freqLO;
00639 
00640         
00641         
00642         
00643 
00644         
00645         // ===> Attribute receiverSideband
00646         
00647         
00648 
00649         ReceiverSidebandMod::ReceiverSideband receiverSideband;
00650 
00651         
00652         
00653         
00654 
00655         
00656         // ===> Attribute sidebandLO
00657         
00658         
00659 
00660         vector<NetSidebandMod::NetSideband > sidebandLO;
00661 
00662         
00663         
00664         
00665 
00667         // Extrinsic Table Attributes //
00669         
00670         
00671         // ===> Attribute spectralWindowId
00672         
00673         
00674 
00675         Tag spectralWindowId;
00676 
00677         
00678         
00679         
00680 
00682         // Links //
00684         
00685         
00686                 
00687 
00688          
00689 
00690         
00691 
00692         
00694         // binary-deserialization material//
00696         map<string, ReceiverAttributeFromBin> fromBinMethods;
00697 void receiverIdFromBin( EndianISStream& eiss);
00698 void spectralWindowIdFromBin( EndianISStream& eiss);
00699 void timeIntervalFromBin( EndianISStream& eiss);
00700 void nameFromBin( EndianISStream& eiss);
00701 void numLOFromBin( EndianISStream& eiss);
00702 void frequencyBandFromBin( EndianISStream& eiss);
00703 void freqLOFromBin( EndianISStream& eiss);
00704 void receiverSidebandFromBin( EndianISStream& eiss);
00705 void sidebandLOFromBin( EndianISStream& eiss);
00706 
00707                 
00708         
00713          void toBin(EndianOSStream& eoss);
00714                  
00722          static ReceiverRow* fromBin(EndianISStream& eiss, ReceiverTable& table, const vector<string>& attributesSeq);   
00723 
00724 };
00725 
00726 } // End namespace asdm
00727 
00728 #endif /* Receiver_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines