StationRow.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 StationRow.h 00032 */ 00033 00034 #ifndef StationRow_CLASS 00035 #define StationRow_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::StationRowIDL; 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 #include "CStationType.h" 00084 using namespace StationTypeMod; 00085 00086 00087 00088 00089 00090 00091 using asdm::Angle; 00092 using asdm::AngularRate; 00093 using asdm::ArrayTime; 00094 using asdm::Complex; 00095 using asdm::Entity; 00096 using asdm::EntityId; 00097 using asdm::EntityRef; 00098 using asdm::Flux; 00099 using asdm::Frequency; 00100 using asdm::Humidity; 00101 using asdm::Interval; 00102 using asdm::Length; 00103 using asdm::Pressure; 00104 using asdm::Speed; 00105 using asdm::Tag; 00106 using asdm::Temperature; 00107 using asdm::ConversionException; 00108 using asdm::NoSuchRow; 00109 using asdm::IllegalAccessException; 00110 00111 /*\file Station.h 00112 \brief Generated from model's revision "1.46", branch "HEAD" 00113 */ 00114 00115 namespace asdm { 00116 00117 //class asdm::StationTable; 00118 00119 00120 00127 class StationRow { 00128 friend class asdm::StationTable; 00129 00130 public: 00131 00132 virtual ~StationRow(); 00133 00137 StationTable &getTable() const; 00138 00139 #ifndef WITHOUT_ACS 00140 00144 StationRowIDL *toIDL() const; 00145 #endif 00146 00147 #ifndef WITHOUT_ACS 00148 00152 void setFromIDL (StationRowIDL x) throw(ConversionException); 00153 #endif 00154 00159 string toXML() const; 00160 00166 void setFromXML (string rowDoc) throw(ConversionException); 00167 00169 // Intrinsic Table Attributes // 00171 00172 00173 // ===> Attribute name 00174 00175 00176 00177 00178 00183 string getName() const; 00184 00185 00186 00187 00195 void setName (string name); 00196 00197 00198 00199 00200 00201 00202 00203 // ===> Attribute position 00204 00205 00206 00207 00208 00213 vector<Length > getPosition() const; 00214 00215 00216 00217 00225 void setPosition (vector<Length > position); 00226 00227 00228 00229 00230 00231 00232 00233 // ===> Attribute type 00234 00235 00236 00237 00238 00243 StationTypeMod::StationType getType() const; 00244 00245 00246 00247 00255 void setType (StationTypeMod::StationType type); 00256 00257 00258 00259 00260 00261 00262 00263 // ===> Attribute stationId 00264 00265 00266 00267 00268 00273 Tag getStationId() const; 00274 00275 00276 00277 00278 00279 00280 00281 00283 // Extrinsic Table Attributes // 00285 00287 // Links // 00289 00290 00291 00292 00297 bool compareNoAutoInc(string name, vector<Length > position, StationTypeMod::StationType type); 00298 00299 00300 00301 00302 bool compareRequiredValue(string name, vector<Length > position, StationTypeMod::StationType type); 00303 00304 00313 bool equalByRequiredValue(StationRow* x) ; 00314 00315 private: 00319 StationTable &table; 00323 bool hasBeenAdded; 00324 00325 // This method is used by the Table class when this row is added to the table. 00326 void isAdded(); 00327 00328 00337 StationRow (StationTable &table); 00338 00356 StationRow (StationTable &table, StationRow &row); 00357 00359 // Intrinsic Table Attributes // 00361 00362 00363 // ===> Attribute name 00364 00365 00366 00367 string name; 00368 00369 00370 00371 00372 00373 00374 // ===> Attribute position 00375 00376 00377 00378 vector<Length > position; 00379 00380 00381 00382 00383 00384 00385 // ===> Attribute type 00386 00387 00388 00389 StationTypeMod::StationType type; 00390 00391 00392 00393 00394 00395 00396 // ===> Attribute stationId 00397 00398 00399 00400 Tag stationId; 00401 00402 00403 00404 00414 void setStationId (Tag stationId); 00415 00416 00417 00419 // Extrinsic Table Attributes // 00421 00423 // Links // 00425 00426 00427 }; 00428 00429 } // End namespace asdm 00430 00431 #endif /* Station_CLASS */

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