ASDM.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 ASDM.h
00032  */
00033  
00034 #ifndef ASDM_CLASS
00035 #define ASDM_CLASS
00036 
00037 #include <vector>
00038 using std::vector;
00039 
00040 #include <map>
00041 using std::map;
00042 
00043 #include <Representable.h>
00044 #include <Entity.h>
00045 #include <EntityId.h>
00046 #include <ArrayTime.h>
00047 #include <IllegalAccessException.h>
00048 #include <InvalidArgumentException.h>
00049 
00050 using asdm::Entity;
00051 using asdm::EntityId;
00052 using asdm::ArrayTime;
00053 using asdm::IllegalAccessException;
00054 using asdm::InvalidArgumentException;
00055 
00056 #ifndef WITHOUT_ACS
00057 #include <asdmIDLC.h> 
00058 using namespace asdmIDL;   
00059 #endif
00060 
00061 /*\file ASDM.h
00062     \brief Generated from model's revision "1.55", branch "HEAD"
00063 */
00064 
00065 namespace asdm {
00066 
00067 
00068 //class asdm::MainTable;
00069 class MainTable;
00070 
00071 //class asdm::AlmaRadiometerTable;
00072 class AlmaRadiometerTable;
00073 
00074 //class asdm::AnnotationTable;
00075 class AnnotationTable;
00076 
00077 //class asdm::AntennaTable;
00078 class AntennaTable;
00079 
00080 //class asdm::BeamTable;
00081 class BeamTable;
00082 
00083 //class asdm::CalAmpliTable;
00084 class CalAmpliTable;
00085 
00086 //class asdm::CalAtmosphereTable;
00087 class CalAtmosphereTable;
00088 
00089 //class asdm::CalBandpassTable;
00090 class CalBandpassTable;
00091 
00092 //class asdm::CalCurveTable;
00093 class CalCurveTable;
00094 
00095 //class asdm::CalDataTable;
00096 class CalDataTable;
00097 
00098 //class asdm::CalDelayTable;
00099 class CalDelayTable;
00100 
00101 //class asdm::CalDeviceTable;
00102 class CalDeviceTable;
00103 
00104 //class asdm::CalFluxTable;
00105 class CalFluxTable;
00106 
00107 //class asdm::CalFocusTable;
00108 class CalFocusTable;
00109 
00110 //class asdm::CalFocusModelTable;
00111 class CalFocusModelTable;
00112 
00113 //class asdm::CalGainTable;
00114 class CalGainTable;
00115 
00116 //class asdm::CalHolographyTable;
00117 class CalHolographyTable;
00118 
00119 //class asdm::CalPhaseTable;
00120 class CalPhaseTable;
00121 
00122 //class asdm::CalPointingTable;
00123 class CalPointingTable;
00124 
00125 //class asdm::CalPointingModelTable;
00126 class CalPointingModelTable;
00127 
00128 //class asdm::CalPositionTable;
00129 class CalPositionTable;
00130 
00131 //class asdm::CalPrimaryBeamTable;
00132 class CalPrimaryBeamTable;
00133 
00134 //class asdm::CalReductionTable;
00135 class CalReductionTable;
00136 
00137 //class asdm::CalSeeingTable;
00138 class CalSeeingTable;
00139 
00140 //class asdm::CalWVRTable;
00141 class CalWVRTable;
00142 
00143 //class asdm::ConfigDescriptionTable;
00144 class ConfigDescriptionTable;
00145 
00146 //class asdm::CorrelatorModeTable;
00147 class CorrelatorModeTable;
00148 
00149 //class asdm::DataDescriptionTable;
00150 class DataDescriptionTable;
00151 
00152 //class asdm::DelayModelTable;
00153 class DelayModelTable;
00154 
00155 //class asdm::DopplerTable;
00156 class DopplerTable;
00157 
00158 //class asdm::EphemerisTable;
00159 class EphemerisTable;
00160 
00161 //class asdm::ExecBlockTable;
00162 class ExecBlockTable;
00163 
00164 //class asdm::FeedTable;
00165 class FeedTable;
00166 
00167 //class asdm::FieldTable;
00168 class FieldTable;
00169 
00170 //class asdm::FlagTable;
00171 class FlagTable;
00172 
00173 //class asdm::FlagCmdTable;
00174 class FlagCmdTable;
00175 
00176 //class asdm::FocusTable;
00177 class FocusTable;
00178 
00179 //class asdm::FocusModelTable;
00180 class FocusModelTable;
00181 
00182 //class asdm::FreqOffsetTable;
00183 class FreqOffsetTable;
00184 
00185 //class asdm::GainTrackingTable;
00186 class GainTrackingTable;
00187 
00188 //class asdm::HistoryTable;
00189 class HistoryTable;
00190 
00191 //class asdm::HolographyTable;
00192 class HolographyTable;
00193 
00194 //class asdm::ObservationTable;
00195 class ObservationTable;
00196 
00197 //class asdm::PointingTable;
00198 class PointingTable;
00199 
00200 //class asdm::PointingModelTable;
00201 class PointingModelTable;
00202 
00203 //class asdm::PolarizationTable;
00204 class PolarizationTable;
00205 
00206 //class asdm::ProcessorTable;
00207 class ProcessorTable;
00208 
00209 //class asdm::ReceiverTable;
00210 class ReceiverTable;
00211 
00212 //class asdm::SBSummaryTable;
00213 class SBSummaryTable;
00214 
00215 //class asdm::ScanTable;
00216 class ScanTable;
00217 
00218 //class asdm::SeeingTable;
00219 class SeeingTable;
00220 
00221 //class asdm::SourceTable;
00222 class SourceTable;
00223 
00224 //class asdm::SpectralWindowTable;
00225 class SpectralWindowTable;
00226 
00227 //class asdm::SquareLawDetectorTable;
00228 class SquareLawDetectorTable;
00229 
00230 //class asdm::StateTable;
00231 class StateTable;
00232 
00233 //class asdm::StationTable;
00234 class StationTable;
00235 
00236 //class asdm::SubscanTable;
00237 class SubscanTable;
00238 
00239 //class asdm::SwitchCycleTable;
00240 class SwitchCycleTable;
00241 
00242 //class asdm::SysCalTable;
00243 class SysCalTable;
00244 
00245 //class asdm::TotalPowerTable;
00246 class TotalPowerTable;
00247 
00248 //class asdm::WVMCalTable;
00249 class WVMCalTable;
00250 
00251 //class asdm::WeatherTable;
00252 class WeatherTable;
00253 
00254 
00262 //class ASDM : public Representable {
00263 class ASDM {
00264 
00265 public:
00269         ASDM ();
00270         
00271         virtual ~ASDM ();
00272         
00273 
00278         MainTable & getMain () const;
00279 
00284         AlmaRadiometerTable & getAlmaRadiometer () const;
00285 
00290         AnnotationTable & getAnnotation () const;
00291 
00296         AntennaTable & getAntenna () const;
00297 
00302         BeamTable & getBeam () const;
00303 
00308         CalAmpliTable & getCalAmpli () const;
00309 
00314         CalAtmosphereTable & getCalAtmosphere () const;
00315 
00320         CalBandpassTable & getCalBandpass () const;
00321 
00326         CalCurveTable & getCalCurve () const;
00327 
00332         CalDataTable & getCalData () const;
00333 
00338         CalDelayTable & getCalDelay () const;
00339 
00344         CalDeviceTable & getCalDevice () const;
00345 
00350         CalFluxTable & getCalFlux () const;
00351 
00356         CalFocusTable & getCalFocus () const;
00357 
00362         CalFocusModelTable & getCalFocusModel () const;
00363 
00368         CalGainTable & getCalGain () const;
00369 
00374         CalHolographyTable & getCalHolography () const;
00375 
00380         CalPhaseTable & getCalPhase () const;
00381 
00386         CalPointingTable & getCalPointing () const;
00387 
00392         CalPointingModelTable & getCalPointingModel () const;
00393 
00398         CalPositionTable & getCalPosition () const;
00399 
00404         CalPrimaryBeamTable & getCalPrimaryBeam () const;
00405 
00410         CalReductionTable & getCalReduction () const;
00411 
00416         CalSeeingTable & getCalSeeing () const;
00417 
00422         CalWVRTable & getCalWVR () const;
00423 
00428         ConfigDescriptionTable & getConfigDescription () const;
00429 
00434         CorrelatorModeTable & getCorrelatorMode () const;
00435 
00440         DataDescriptionTable & getDataDescription () const;
00441 
00446         DelayModelTable & getDelayModel () const;
00447 
00452         DopplerTable & getDoppler () const;
00453 
00458         EphemerisTable & getEphemeris () const;
00459 
00464         ExecBlockTable & getExecBlock () const;
00465 
00470         FeedTable & getFeed () const;
00471 
00476         FieldTable & getField () const;
00477 
00482         FlagTable & getFlag () const;
00483 
00488         FlagCmdTable & getFlagCmd () const;
00489 
00494         FocusTable & getFocus () const;
00495 
00500         FocusModelTable & getFocusModel () const;
00501 
00506         FreqOffsetTable & getFreqOffset () const;
00507 
00512         GainTrackingTable & getGainTracking () const;
00513 
00518         HistoryTable & getHistory () const;
00519 
00524         HolographyTable & getHolography () const;
00525 
00530         ObservationTable & getObservation () const;
00531 
00536         PointingTable & getPointing () const;
00537 
00542         PointingModelTable & getPointingModel () const;
00543 
00548         PolarizationTable & getPolarization () const;
00549 
00554         ProcessorTable & getProcessor () const;
00555 
00560         ReceiverTable & getReceiver () const;
00561 
00566         SBSummaryTable & getSBSummary () const;
00567 
00572         ScanTable & getScan () const;
00573 
00578         SeeingTable & getSeeing () const;
00579 
00584         SourceTable & getSource () const;
00585 
00590         SpectralWindowTable & getSpectralWindow () const;
00591 
00596         SquareLawDetectorTable & getSquareLawDetector () const;
00597 
00602         StateTable & getState () const;
00603 
00608         StationTable & getStation () const;
00609 
00614         SubscanTable & getSubscan () const;
00615 
00620         SwitchCycleTable & getSwitchCycle () const;
00621 
00626         SysCalTable & getSysCal () const;
00627 
00632         TotalPowerTable & getTotalPower () const;
00633 
00638         WVMCalTable & getWVMCal () const;
00639 
00644         WeatherTable & getWeather () const;
00645 
00651         virtual string toXML();
00652         
00662         void toXML(string directory) ;
00663         
00674         virtual void fromXML(string xml) ;
00675                 
00688         static ASDM *getFromXML(string xmlDirectory) ;
00689         
00695         string toMIME();
00696         
00703          void setFromMIME(const string & mimeMsg);      
00704 
00719         void toFile(string directory);
00720 
00729          void setFromFile(string directory);
00730         
00731         #ifndef WITHOUT_ACS
00732 
00736         virtual ASDMDataSetIDL* toIDL();  
00737         
00746         virtual void fromIDL(ASDMDataSetIDL* x); 
00747         #endif
00748                 
00749         virtual Entity getEntity() const;
00750 
00751         virtual void setEntity(Entity e);
00752         
00756         virtual string getName() const;
00757         
00761         virtual unsigned int size() ;
00762         
00763 #ifndef WITHOUT_ACS
00764 
00770         static ASDM *fromArchive(EntityId datasetId) ;
00771 #endif
00772 
00773 #ifndef WITHOUT_ACS
00774 
00778         void updateArchive() const ;
00779 #endif
00780         
00786         Representable &getTable(string tableName) ;
00787 
00788         
00789         
00790         // ===> Attribute timeOfCreation
00791         
00792         
00793         
00794 
00795         
00800         ArrayTime getTimeOfCreation() const;
00801         
00802  
00803         
00804         
00812         void setTimeOfCreation (ArrayTime timeOfCreation);
00813                 
00814         
00815         
00816         
00817 
00818 
00819         
00820         // ===> Attribute version
00821         
00822         
00823         
00824 
00825         
00830         int getVersion() const;
00831         
00832  
00833         
00834         
00842         void setVersion (int version);
00843                 
00844         
00845         
00846         
00847 
00848 
00849         
00850         // ===> Attribute xmlnsPrefix
00851         
00852         
00853         
00854 
00855         
00860         string getXmlnsPrefix() const;
00861         
00862  
00863         
00864         
00872         void setXmlnsPrefix (string xmlnsPrefix);
00873                 
00874         
00875         
00876         
00877 
00878 
00879 
00880 private:
00881 
00882         bool archiveAsBin; // If true archive binary else archive XML
00883         bool fileAsBin ; // If true file binary else file XML           
00884         bool hasBeenAdded;
00885         
00886 
00890         MainTable * main;
00891 
00895         AlmaRadiometerTable * almaRadiometer;
00896 
00900         AnnotationTable * annotation;
00901 
00905         AntennaTable * antenna;
00906 
00910         BeamTable * beam;
00911 
00915         CalAmpliTable * calAmpli;
00916 
00920         CalAtmosphereTable * calAtmosphere;
00921 
00925         CalBandpassTable * calBandpass;
00926 
00930         CalCurveTable * calCurve;
00931 
00935         CalDataTable * calData;
00936 
00940         CalDelayTable * calDelay;
00941 
00945         CalDeviceTable * calDevice;
00946 
00950         CalFluxTable * calFlux;
00951 
00955         CalFocusTable * calFocus;
00956 
00960         CalFocusModelTable * calFocusModel;
00961 
00965         CalGainTable * calGain;
00966 
00970         CalHolographyTable * calHolography;
00971 
00975         CalPhaseTable * calPhase;
00976 
00980         CalPointingTable * calPointing;
00981 
00985         CalPointingModelTable * calPointingModel;
00986 
00990         CalPositionTable * calPosition;
00991 
00995         CalPrimaryBeamTable * calPrimaryBeam;
00996 
01000         CalReductionTable * calReduction;
01001 
01005         CalSeeingTable * calSeeing;
01006 
01010         CalWVRTable * calWVR;
01011 
01015         ConfigDescriptionTable * configDescription;
01016 
01020         CorrelatorModeTable * correlatorMode;
01021 
01025         DataDescriptionTable * dataDescription;
01026 
01030         DelayModelTable * delayModel;
01031 
01035         DopplerTable * doppler;
01036 
01040         EphemerisTable * ephemeris;
01041 
01045         ExecBlockTable * execBlock;
01046 
01050         FeedTable * feed;
01051 
01055         FieldTable * field;
01056 
01060         FlagTable * flag;
01061 
01065         FlagCmdTable * flagCmd;
01066 
01070         FocusTable * focus;
01071 
01075         FocusModelTable * focusModel;
01076 
01080         FreqOffsetTable * freqOffset;
01081 
01085         GainTrackingTable * gainTracking;
01086 
01090         HistoryTable * history;
01091 
01095         HolographyTable * holography;
01096 
01100         ObservationTable * observation;
01101 
01105         PointingTable * pointing;
01106 
01110         PointingModelTable * pointingModel;
01111 
01115         PolarizationTable * polarization;
01116 
01120         ProcessorTable * processor;
01121 
01125         ReceiverTable * receiver;
01126 
01130         SBSummaryTable * sBSummary;
01131 
01135         ScanTable * scan;
01136 
01140         SeeingTable * seeing;
01141 
01145         SourceTable * source;
01146 
01150         SpectralWindowTable * spectralWindow;
01151 
01155         SquareLawDetectorTable * squareLawDetector;
01156 
01160         StateTable * state;
01161 
01165         StationTable * station;
01166 
01170         SubscanTable * subscan;
01171 
01175         SwitchCycleTable * switchCycle;
01176 
01180         SysCalTable * sysCal;
01181 
01185         TotalPowerTable * totalPower;
01186 
01190         WVMCalTable * wVMCal;
01191 
01195         WeatherTable * weather;
01196 
01200         vector<Representable *> table;
01201         
01205         //vector<Entity *> tableEntity;
01206         map<string, Entity> tableEntity;
01207         
01211         Entity entity;
01212 
01213         
01214         
01215         // ===> Attribute timeOfCreation
01216         
01217         
01218 
01219         ArrayTime timeOfCreation;
01220 
01221         
01222         
01223         
01224 
01225         
01226         // ===> Attribute version
01227         
01228         
01229 
01230         int version;
01231 
01232         
01233         
01234         
01235 
01236         
01237         // ===> Attribute xmlnsPrefix
01238         
01239         
01240 
01241         string xmlnsPrefix;
01242 
01243         
01244         
01245         
01246 
01247         
01248         void error() ; // throw(ConversionException);
01249         static string getXMLEntity(EntityId id); // throw(ConversionException);
01250         static void putXMLEntity(string xml); // throw(ConversionException);
01251         
01252 };
01253 
01254 } // End namespace asdm
01255 
01256 #endif /* ASDM_CLASS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines