34 #ifndef CalDeviceRow_CLASS
35 #define CalDeviceRow_CLASS
105 class SpectralWindowRow;
218 std::vector<CalibrationDeviceMod::CalibrationDevice >
getCalLoadNames()
const;
296 std::vector<std::vector<float > >
getCalEff()
const;
457 Tag getAntennaId()
const;
645 asdmIDL::CalDeviceRowIDL *
toIDL()
const;
654 void toIDL(asdmIDL::CalDeviceRowIDL& x)
const;
663 void setFromIDL (asdmIDL::CalDeviceRowIDL x) ;
670 std::string
toXML()
const;
715 void fromText(
const std::string& attributeName,
const std::string& t);
818 std::vector<std::vector<float > >
calEff;
virtual ~CalDeviceRow()
friend class asdm::TableStreamReader<CalDeviceTable, CalDeviceRow>;
The CalDeviceRow class is a row of a CalDeviceTable.
Links *binary deserialization material from an EndianIStream std::map< std::string, CalDeviceAttributeFromBin > fromBinMethods
int getNumCalload() const
===> Attribute numCalload
void numReceptorFromText(const std::string &s)
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
std::string toXML() const
Return this row in the form of an XML string.
std::vector< std::vector< float > > calEff
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
void calEffFromBin(EndianIStream &eis)
void numReceptorFromBin(EndianIStream &eis)
*text deserialization material std::map< std::string, CalDeviceAttributeFromText > fromTextMethods
bool isAdded() const
Has this row been added to its table ?
void clearCoupledNoiseCal()
Mark coupledNoiseCal, which is an optional field, as non-existent.
void setCoupledNoiseCal(std::vector< std::vector< float > > coupledNoiseCal)
Set coupledNoiseCal with the specified std::vector<std::vector<float > >.
bool compareNoAutoInc(Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numCalload, std::vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames)
Compare each mandatory attribute except the autoincrementable one of this CalDeviceRow with the corre...
CalDeviceTable & getTable() const
Return the table to which this row belongs.
std::vector< double > getNoiseCal() const
Get noiseCal, which is optional.
bool isCalEffExists() const
===> Attribute calEff, which is optional
void antennaIdFromText(const std::string &s)
void spectralWindowIdFromText(const std::string &s)
void setCalEff(std::vector< std::vector< float > > calEff)
Set calEff with the specified std::vector<std::vector<float > >.
bool coupledNoiseCalExists
===> Attribute coupledNoiseCal, which is optional
bool equalByRequiredValue(CalDeviceRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void feedIdFromBin(EndianIStream &eis)
bool compareRequiredValue(int numCalload, std::vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames)
Compare each mandatory value (i.e.
void coupledNoiseCalFromBin(EndianIStream &eis)
void spectralWindowIdFromBin(EndianIStream &eis)
bool isTemperatureLoadExists() const
===> Attribute temperatureLoad, which is optional
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void setTemperatureLoad(std::vector< Temperature > temperatureLoad)
Set temperatureLoad with the specified std::vector<Temperature >.
std::vector< std::vector< float > > coupledNoiseCal
std::vector< double > noiseCal
void setFromIDL(asdmIDL::CalDeviceRowIDL x)
Fill the values of this row from the IDL struct CalDeviceRowIDL.
Tag getSpectralWindowId() const
===> Attribute spectralWindowId
int getFeedId() const
===> Attribute feedId
void setNumReceptor(int numReceptor)
Set numReceptor with the specified int.
void timeIntervalFromText(const std::string &s)
Links *AntennaRow * getAntennaUsingAntennaId()
antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId ...
void setTimeInterval(ArrayTimeInterval timeInterval)
Set timeInterval with the specified ArrayTimeInterval.
std::vector< FeedRow * > getFeeds()
===> Slice link from a row of CalDevice table to a collection of row of Feed table.
CalDeviceTable & table
The table to which this row belongs.
void setSpectralWindowId(Tag spectralWindowId)
Set spectralWindowId with the specified Tag.
bool hasBeenAdded
Whether this row has been added to the table or not.
void timeIntervalFromBin(EndianIStream &eis)
int getNumReceptor() const
Get numReceptor, which is optional.
std::vector< Temperature > temperatureLoad
The AntennaRow class is a row of a AntennaTable.
bool isCoupledNoiseCalExists() const
===> Attribute coupledNoiseCal, which is optional
void noiseCalFromBin(EndianIStream &eis)
bool noiseCalExists
===> Attribute noiseCal, which is optional
void calEffFromText(const std::string &s)
void setNoiseCal(std::vector< double > noiseCal)
Set noiseCal with the specified std::vector<double >.
std::vector< std::vector< float > > getCoupledNoiseCal() const
Get coupledNoiseCal, which is optional.
void(CalDeviceRow::* CalDeviceAttributeFromText)(const std::string &s)
bool temperatureLoadExists
===> Attribute temperatureLoad, which is optional
int numCalload
===> Attribute numCalload
void setCalLoadNames(std::vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames)
Set calLoadNames with the specified std::vector<CalibrationDeviceMod::CalibrationDevice >...
std::vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames
===> Attribute calLoadNames
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
The CalDeviceTable class is an Alma table.
void noiseCalFromText(const std::string &s)
void antennaIdFromBin(EndianIStream &eis)
int feedId
===> Attribute feedId
bool isNumReceptorExists() const
===> Attribute numReceptor, which is optional
void temperatureLoadFromBin(EndianIStream &eis)
std::vector< Temperature > getTemperatureLoad() const
Get temperatureLoad, which is optional.
void calLoadNamesFromBin(EndianIStream &eis)
Tag spectralWindowId
===> Attribute spectralWindowId
void clearTemperatureLoad()
Mark temperatureLoad, which is an optional field, as non-existent.
void clearCalEff()
Mark calEff, which is an optional field, as non-existent.
void(CalDeviceRow::* CalDeviceAttributeFromBin)(EndianIStream &eis)
std::vector< std::vector< float > > getCalEff() const
Get calEff, which is optional.
std::vector< CalibrationDeviceMod::CalibrationDevice > getCalLoadNames() const
===> Attribute calLoadNames
SpectralWindowRow * getSpectralWindowUsingSpectralWindowId()
spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
void calLoadNamesFromText(const std::string &s)
CalDeviceRow(CalDeviceTable &table)
Create a CalDeviceRow.
The SpectralWindowRow class is a row of a SpectralWindowTable.
void numCalloadFromBin(EndianIStream &eis)
void clearNoiseCal()
Mark noiseCal, which is an optional field, as non-existent.
bool isNoiseCalExists() const
===> Attribute noiseCal, which is optional
bool calEffExists
===> Attribute calEff, which is optional
void setFeedId(int feedId)
Set feedId with the specified int.
void temperatureLoadFromText(const std::string &s)
void feedIdFromText(const std::string &s)
void setAntennaId(Tag antennaId)
Set antennaId with the specified Tag.
bool numReceptorExists
===> Attribute numReceptor, which is optional
asdmIDL::CalDeviceRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void clearNumReceptor()
Mark numReceptor, which is an optional field, as non-existent.
void setNumCalload(int numCalload)
Set numCalload with the specified int.
void coupledNoiseCalFromText(const std::string &s)
void numCalloadFromText(const std::string &s)