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 CalFocusModelTable_CLASS
00035 #define CalFocusModelTable_CLASS
00036
00037 #include <string>
00038 #include <vector>
00039 #include <map>
00040 #include <set>
00041 using std::string;
00042 using std::vector;
00043 using std::map;
00044
00045
00046
00047 #include <ArrayTime.h>
00048 using asdm::ArrayTime;
00049
00050 #include <Tag.h>
00051 using asdm::Tag;
00052
00053 #include <Length.h>
00054 using asdm::Length;
00055
00056
00057
00058
00059
00060
00061
00062 #include "CReceiverBand.h"
00063 using namespace ReceiverBandMod;
00064
00065
00066
00067 #include "CPolarizationType.h"
00068 using namespace PolarizationTypeMod;
00069
00070
00071
00072
00073
00074
00075
00076 #include "CAntennaMake.h"
00077 using namespace AntennaMakeMod;
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102 #include <ConversionException.h>
00103 #include <DuplicateKey.h>
00104 #include <UniquenessViolationException.h>
00105 #include <NoSuchRow.h>
00106 #include <DuplicateKey.h>
00107 using asdm::DuplicateKey;
00108 using asdm::ConversionException;
00109 using asdm::NoSuchRow;
00110 using asdm::DuplicateKey;
00111
00112 #ifndef WITHOUT_ACS
00113 #include <asdmIDLC.h>
00114 using asdmIDL::CalFocusModelTableIDL;
00115 #endif
00116
00117 #include <Representable.h>
00118
00119 namespace asdm {
00120
00121
00122
00123
00124 class ASDM;
00125 class CalFocusModelRow;
00286 class CalFocusModelTable : public Representable {
00287 friend class ASDM;
00288
00289 public:
00290
00291
00297 static vector<string> getKeyName();
00298
00299
00300 virtual ~CalFocusModelTable();
00301
00307 ASDM &getContainer() const;
00308
00314 unsigned int size() ;
00315
00321 string getName() const;
00322
00328 static const vector<string>& getAttributesNames();
00329
00333 Entity getEntity() const;
00334
00339 void setEntity(Entity e);
00340
00348 string toXML() ;
00349
00350 #ifndef WITHOUT_ACS
00351
00357 CalFocusModelTableIDL *toIDL() ;
00358 #endif
00359
00360 #ifndef WITHOUT_ACS
00361
00367 void fromIDL(CalFocusModelTableIDL x) ;
00368 #endif
00369
00370
00371
00372
00373
00378 CalFocusModelRow *newRow();
00379
00380
00422 CalFocusModelRow *newRow(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffValue, vector<float > coeffError, vector<bool > coeffFixed, string focusModel, vector<Length > focusRMS, double reducedChiSquared);
00423
00424
00425
00438 CalFocusModelRow *newRow(CalFocusModelRow *row);
00439
00440
00441
00442
00443
00444
00457 CalFocusModelRow* add(CalFocusModelRow* x) ;
00458
00459
00460
00461
00462
00463
00464
00465
00466
00472 vector<CalFocusModelRow *> get() ;
00473
00474
00475
00476
00477
00495 CalFocusModelRow* getRowByKey(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId);
00496
00497
00498
00499
00500
00544 CalFocusModelRow* lookup(string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, vector<string > coeffName, vector<string > coeffFormula, vector<float > coeffValue, vector<float > coeffError, vector<bool > coeffFixed, string focusModel, vector<Length > focusRMS, double reducedChiSquared);
00545
00546
00547 private:
00548
00557 CalFocusModelTable (ASDM & container);
00558
00559 ASDM & container;
00560
00561 bool archiveAsBin;
00562 bool fileAsBin ;
00563
00564 Entity entity;
00565
00566
00567
00571 static string tableName;
00572
00576 static const vector<string> attributesNames;
00577
00581 static vector<string> initAttributesNames();
00582
00583
00587 static vector<string> key;
00588
00589
00597 CalFocusModelRow* checkAndAdd(CalFocusModelRow* x) ;
00598
00599
00600
00601
00602
00603
00604 vector<CalFocusModelRow * > privateRows;
00605
00606
00607
00608 vector<CalFocusModelRow *> row;
00609
00610
00611 void error() ;
00612
00613
00620 void fromXML(string xmlDoc) ;
00621
00626 void setFromMIMEFile(const string& directory);
00627 void setFromXMLFile(const string& directory);
00628
00636 string toMIME(const asdm::ByteOrder* byteOrder=asdm::ByteOrder::Machine_Endianity);
00637
00638
00645 void setFromMIME(const string & mimeMsg);
00646
00650 string MIMEXMLPart(const asdm::ByteOrder* byteOrder=asdm::ByteOrder::Machine_Endianity);
00651
00661 void toFile(string directory);
00662
00671 void setFromFile(const string& directory);
00672
00673 };
00674
00675 }
00676
00677 #endif