Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef FocusModelRow_CLASS
00035 #define FocusModelRow_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::FocusModelRowIDL;
00047 #endif
00048
00049
00050
00051
00052
00053
00054 #include <Tag.h>
00055 using asdm::Tag;
00056
00057
00058
00059
00060
00061
00062
00063 #include "CPolarizationType.h"
00064 using namespace PolarizationTypeMod;
00065
00066
00067
00068 #include "CReceiverBand.h"
00069 using namespace ReceiverBandMod;
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084 #include <ConversionException.h>
00085 #include <NoSuchRow.h>
00086 #include <IllegalAccessException.h>
00087
00088
00089
00090
00091
00092
00093 namespace asdm {
00094
00095
00096
00097
00098
00099 class AntennaRow;
00100
00101
00102 class FocusModelRow;
00103
00104
00105 class FocusModelRow;
00106 typedef void (FocusModelRow::*FocusModelAttributeFromBin) (EndianISStream& eiss);
00107
00114 class FocusModelRow {
00115 friend class asdm::FocusModelTable;
00116
00117 public:
00118
00119 virtual ~FocusModelRow();
00120
00124 FocusModelTable &getTable() const;
00125
00130 bool isAdded() const;
00131
00133
00135
00136
00137
00138
00139
00140
00141
00142
00147 int getFocusModelId() const;
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00167 PolarizationTypeMod::PolarizationType getPolarizationType() const;
00168
00169
00170
00171
00179 void setPolarizationType (PolarizationTypeMod::PolarizationType polarizationType);
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00197 ReceiverBandMod::ReceiverBand getReceiverBand() const;
00198
00199
00200
00201
00209 void setReceiverBand (ReceiverBandMod::ReceiverBand receiverBand);
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00227 int getNumCoeff() const;
00228
00229
00230
00231
00239 void setNumCoeff (int numCoeff);
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00257 vector<string > getCoeffName() const;
00258
00259
00260
00261
00269 void setCoeffName (vector<string > coeffName);
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
00280
00281
00282
00287 vector<string > getCoeffFormula() const;
00288
00289
00290
00291
00299 void setCoeffFormula (vector<string > coeffFormula);
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00317 vector<float > getCoeffVal() const;
00318
00319
00320
00321
00329 void setCoeffVal (vector<float > coeffVal);
00330
00331
00332
00333
00334
00335
00336
00337
00338
00339
00340
00341
00342
00347 string getAssocNature() const;
00348
00349
00350
00351
00359 void setAssocNature (string assocNature);
00360
00361
00362
00363
00364
00365
00367
00369
00370
00371
00372
00373
00374
00375
00376
00381 Tag getAntennaId() const;
00382
00383
00384
00385
00395 void setAntennaId (Tag antennaId);
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407
00408
00413 int getAssocFocusModelId() const;
00414
00415
00416
00417
00425 void setAssocFocusModelId (int assocFocusModelId);
00426
00427
00428
00429
00430
00431
00433
00435
00436
00437
00438
00439
00446 AntennaRow* getAntennaUsingAntennaId();
00447
00448
00449
00450
00451
00452
00453
00454
00455
00456
00462 vector <FocusModelRow *> getFocusModels();
00463
00464
00465
00466
00467
00468
00469
00470
00494 bool compareNoAutoInc(Tag antennaId, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, int numCoeff, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffVal, string assocNature, int assocFocusModelId);
00495
00496
00497
00498
00520 bool compareRequiredValue(PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, int numCoeff, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffVal, string assocNature, int assocFocusModelId);
00521
00522
00531 bool equalByRequiredValue(FocusModelRow* x) ;
00532
00533 #ifndef WITHOUT_ACS
00534
00538 FocusModelRowIDL *toIDL() const;
00539 #endif
00540
00541 #ifndef WITHOUT_ACS
00542
00547 void setFromIDL (FocusModelRowIDL x) ;
00548 #endif
00549
00554 string toXML() const;
00555
00562 void setFromXML (string rowDoc) ;
00563
00564 private:
00568 FocusModelTable &table;
00572 bool hasBeenAdded;
00573
00574
00575 void isAdded(bool added);
00576
00577
00586 FocusModelRow (FocusModelTable &table);
00587
00605 FocusModelRow (FocusModelTable &table, FocusModelRow &row);
00606
00608
00610
00611
00612
00613
00614
00615
00616 int focusModelId;
00617
00618
00619
00620
00630 void setFocusModelId (int focusModelId);
00631
00632
00633
00634
00635
00636
00637
00638
00639 PolarizationTypeMod::PolarizationType polarizationType;
00640
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650 ReceiverBandMod::ReceiverBand receiverBand;
00651
00652
00653
00654
00655
00656
00657
00658
00659
00660
00661 int numCoeff;
00662
00663
00664
00665
00666
00667
00668
00669
00670
00671
00672 vector<string > coeffName;
00673
00674
00675
00676
00677
00678
00679
00680
00681
00682
00683 vector<string > coeffFormula;
00684
00685
00686
00687
00688
00689
00690
00691
00692
00693
00694 vector<float > coeffVal;
00695
00696
00697
00698
00699
00700
00701
00702
00703
00704
00705 string assocNature;
00706
00707
00708
00709
00710
00712
00714
00715
00716
00717
00718
00719
00720 Tag antennaId;
00721
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731 int assocFocusModelId;
00732
00733
00734
00735
00736
00738
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749
00750
00751
00752
00753
00754
00756
00758 map<string, FocusModelAttributeFromBin> fromBinMethods;
00759 void antennaIdFromBin( EndianISStream& eiss);
00760 void focusModelIdFromBin( EndianISStream& eiss);
00761 void polarizationTypeFromBin( EndianISStream& eiss);
00762 void receiverBandFromBin( EndianISStream& eiss);
00763 void numCoeffFromBin( EndianISStream& eiss);
00764 void coeffNameFromBin( EndianISStream& eiss);
00765 void coeffFormulaFromBin( EndianISStream& eiss);
00766 void coeffValFromBin( EndianISStream& eiss);
00767 void assocNatureFromBin( EndianISStream& eiss);
00768 void assocFocusModelIdFromBin( EndianISStream& eiss);
00769
00770
00771
00776 void toBin(EndianOSStream& eoss);
00777
00785 static FocusModelRow* fromBin(EndianISStream& eiss, FocusModelTable& table, const vector<string>& attributesSeq);
00786
00787 };
00788
00789 }
00790
00791 #endif