34 #ifndef CalPositionRow_CLASS
35 #define CalPositionRow_CLASS
135 class CalReductionRow;
138 class CalPositionRow;
183 std::string getAntennaName()
const;
783 Tag getCalDataId()
const;
916 bool compareNoAutoInc(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection
atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Length >
antennaPosition, std::string
stationName, std::vector<Length >
stationPosition, PositionMethodMod::PositionMethod
positionMethod, ReceiverBandMod::ReceiverBand
receiverBand,
int numAntenna, std::vector<std::string >
refAntennaNames,
Length axesOffset,
Length axesOffsetErr,
bool axesOffsetFixed, std::vector<Length >
positionOffset, std::vector<Length >
positionErr,
double reducedChiSquared);
956 bool compareRequiredValue(
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Length >
antennaPosition, std::string
stationName, std::vector<Length >
stationPosition, PositionMethodMod::PositionMethod
positionMethod, ReceiverBandMod::ReceiverBand
receiverBand,
int numAntenna, std::vector<std::string >
refAntennaNames,
Length axesOffset,
Length axesOffsetErr,
bool axesOffsetFixed, std::vector<Length >
positionOffset, std::vector<Length >
positionErr,
double reducedChiSquared);
974 asdmIDL::CalPositionRowIDL *
toIDL()
const;
983 void toIDL(asdmIDL::CalPositionRowIDL& x)
const;
992 void setFromIDL (asdmIDL::CalPositionRowIDL x) ;
999 std::string
toXML()
const;
1014 std::map<std::string, CalPositionAttributeFromBin>
fromBinMethods;
1054 void fromText(
const std::string& attributeName,
const std::string& t);
1109 std::string antennaName;
void setPhaseRms(Angle phaseRms)
Set phaseRms with the specified Angle.
bool isDelayRmsExists() const
===> Attribute delayRms, which is optional
void antennaNameFromBin(EndianIStream &eis)
void phaseRmsFromBin(EndianIStream &eis)
bool compareRequiredValue(ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Length > antennaPosition, std::string stationName, std::vector< Length > stationPosition, PositionMethodMod::PositionMethod positionMethod, ReceiverBandMod::ReceiverBand receiverBand, int numAntenna, std::vector< std::string > refAntennaNames, Length axesOffset, Length axesOffsetErr, bool axesOffsetFixed, std::vector< Length > positionOffset, std::vector< Length > positionErr, double reducedChiSquared)
Compare each mandatory value (i.e.
void setPositionOffset(std::vector< Length > positionOffset)
Set positionOffset with the specified std::vector<Length >.
void setAntennaName(std::string antennaName)
Set antennaName with the specified std::string.
void startValidTimeFromText(const std::string &s)
CalPositionTable & table
The table to which this row belongs.
AtmPhaseCorrectionMod::AtmPhaseCorrection getAtmPhaseCorrection() const
===> Attribute atmPhaseCorrection
void stationNameFromText(const std::string &s)
void antennaPositionFromBin(EndianIStream &eis)
PositionMethodMod::PositionMethod positionMethod
===> Attribute positionMethod
void(CalPositionRow::* CalPositionAttributeFromBin)(EndianIStream &eis)
void numAntennaFromText(const std::string &s)
void refAntennaNamesFromText(const std::string &s)
void receiverBandFromText(const std::string &s)
std::string getStationName() const
===> Attribute stationName
void stationPositionFromText(const std::string &s)
void axesOffsetFromText(const std::string &s)
void setPositionMethod(PositionMethodMod::PositionMethod positionMethod)
Set positionMethod with the specified PositionMethodMod::PositionMethod.
Length getAxesOffset() const
===> Attribute axesOffset
std::vector< Length > getPositionErr() const
===> Attribute positionErr
std::vector< std::string > refAntennaNames
===> Attribute refAntennaNames
void setNumAntenna(int numAntenna)
Set numAntenna with the specified int.
std::vector< Length > getStationPosition() const
===> Attribute stationPosition
Angle getPhaseRms() const
Get phaseRms, which is optional.
void positionErrFromBin(EndianIStream &eis)
int getNumAntenna() const
===> Attribute numAntenna
bool compareNoAutoInc(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Length > antennaPosition, std::string stationName, std::vector< Length > stationPosition, PositionMethodMod::PositionMethod positionMethod, ReceiverBandMod::ReceiverBand receiverBand, int numAntenna, std::vector< std::string > refAntennaNames, Length axesOffset, Length axesOffsetErr, bool axesOffsetFixed, std::vector< Length > positionOffset, std::vector< Length > positionErr, double reducedChiSquared)
Compare each mandatory attribute except the autoincrementable one of this CalPositionRow with the cor...
void endValidTimeFromBin(EndianIStream &eis)
double reducedChiSquared
===> Attribute reducedChiSquared
*text deserialization material std::map< std::string, CalPositionAttributeFromText > fromTextMethods
ArrayTime startValidTime
===> Attribute startValidTime
ReceiverBandMod::ReceiverBand receiverBand
===> Attribute receiverBand
void setEndValidTime(ArrayTime endValidTime)
Set endValidTime with the specified ArrayTime.
bool phaseRmsExists
===> Attribute phaseRms, which is optional
asdmIDL::CalPositionRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void setAtmPhaseCorrection(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection)
Set atmPhaseCorrection with the specified AtmPhaseCorrectionMod::AtmPhaseCorrection.
The Angle class implements a quantity of angle in radians.
void stationNameFromBin(EndianIStream &eis)
void positionErrFromText(const std::string &s)
void startValidTimeFromBin(EndianIStream &eis)
Tag getCalReductionId() const
===> Attribute calReductionId
void calDataIdFromBin(EndianIStream &eis)
void setAxesOffsetErr(Length axesOffsetErr)
Set axesOffsetErr with the specified Length.
void calDataIdFromText(const std::string &s)
void(CalPositionRow::* CalPositionAttributeFromText)(const std::string &s)
std::vector< std::string > getRefAntennaNames() const
===> Attribute refAntennaNames
void phaseRmsFromText(const std::string &s)
Length getAxesOffsetErr() const
===> Attribute axesOffsetErr
void setPositionErr(std::vector< Length > positionErr)
Set positionErr with the specified std::vector<Length >.
void setFromIDL(asdmIDL::CalPositionRowIDL x)
Fill the values of this row from the IDL struct CalPositionRowIDL.
void axesOffsetFromBin(EndianIStream &eis)
void endValidTimeFromText(const std::string &s)
void axesOffsetErrFromText(const std::string &s)
std::string stationName
===> Attribute stationName
The CalReductionRow class is a row of a CalReductionTable.
ReceiverBandMod::ReceiverBand getReceiverBand() const
===> Attribute receiverBand
void refAntennaNamesFromBin(EndianIStream &eis)
bool hasBeenAdded
Whether this row has been added to the table or not.
void axesOffsetErrFromBin(EndianIStream &eis)
CalPositionTable & getTable() const
Return the table to which this row belongs.
The Length class implements a quantity of length in meters.
void positionMethodFromBin(EndianIStream &eis)
int numAntenna
===> Attribute numAntenna
void atmPhaseCorrectionFromBin(EndianIStream &eis)
ArrayTime endValidTime
===> Attribute endValidTime
std::vector< Length > antennaPosition
===> Attribute antennaPosition
The CalPositionTable class is an Alma table.
void delayRmsFromBin(EndianIStream &eis)
bool delayRmsExists
===> Attribute delayRms, which is optional
void antennaNameFromText(const std::string &s)
ArrayTime getStartValidTime() const
===> Attribute startValidTime
Length axesOffsetErr
===> Attribute axesOffsetErr
void stationPositionFromBin(EndianIStream &eis)
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
bool getAxesOffsetFixed() const
===> Attribute axesOffsetFixed
AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection
===> Attribute atmPhaseCorrection
void setReceiverBand(ReceiverBandMod::ReceiverBand receiverBand)
Set receiverBand with the specified ReceiverBandMod::ReceiverBand.
void antennaPositionFromText(const std::string &s)
void receiverBandFromBin(EndianIStream &eis)
virtual ~CalPositionRow()
friend class asdm::TableStreamReader<CalPositionTable, CalPositionRow>;
void setReducedChiSquared(double reducedChiSquared)
Set reducedChiSquared with the specified double.
void setAxesOffset(Length axesOffset)
Set axesOffset with the specified Length.
void setStationPosition(std::vector< Length > stationPosition)
Set stationPosition with the specified std::vector<Length >.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void reducedChiSquaredFromText(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.
void setStationName(std::string stationName)
Set stationName with the specified std::string.
bool isPhaseRmsExists() const
===> Attribute phaseRms, which is optional
CalPositionRow(CalPositionTable &table)
Create a CalPositionRow.
void positionOffsetFromText(const std::string &s)
void setAntennaPosition(std::vector< Length > antennaPosition)
Set antennaPosition with the specified std::vector<Length >.
bool axesOffsetFixed
===> Attribute axesOffsetFixed
bool isAdded() const
Has this row been added to its table ?
std::vector< Length > stationPosition
===> Attribute stationPosition
void axesOffsetFixedFromText(const std::string &s)
void positionOffsetFromBin(EndianIStream &eis)
Links *CalDataRow * getCalDataUsingCalDataId()
calDataId pointer to the row in the CalData table having CalData.calDataId == calDataId ...
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void setStartValidTime(ArrayTime startValidTime)
Set startValidTime with the specified ArrayTime.
ArrayTime getEndValidTime() const
===> Attribute endValidTime
void setCalReductionId(Tag calReductionId)
Set calReductionId with the specified Tag.
CalReductionRow * getCalReductionUsingCalReductionId()
calReductionId pointer to the row in the CalReduction table having CalReduction.calReductionId == cal...
void calReductionIdFromText(const std::string &s)
void setCalDataId(Tag calDataId)
Set calDataId with the specified Tag.
std::vector< Length > getAntennaPosition() const
===> Attribute antennaPosition
PositionMethodMod::PositionMethod getPositionMethod() const
===> Attribute positionMethod
void setDelayRms(double delayRms)
Set delayRms with the specified double.
void atmPhaseCorrectionFromText(const std::string &s)
void positionMethodFromText(const std::string &s)
The CalDataRow class is a row of a CalDataTable.
Tag calReductionId
===> Attribute calReductionId
void axesOffsetFixedFromBin(EndianIStream &eis)
The CalPositionRow class is a row of a CalPositionTable.
double getDelayRms() const
Get delayRms, which is optional.
std::vector< Length > positionErr
===> Attribute positionErr
std::vector< Length > getPositionOffset() const
===> Attribute positionOffset
void setAxesOffsetFixed(bool axesOffsetFixed)
Set axesOffsetFixed with the specified bool.
void numAntennaFromBin(EndianIStream &eis)
void reducedChiSquaredFromBin(EndianIStream &eis)
void clearPhaseRms()
Mark phaseRms, which is an optional field, as non-existent.
double getReducedChiSquared() const
===> Attribute reducedChiSquared
std::string toXML() const
Return this row in the form of an XML string.
void delayRmsFromText(const std::string &s)
void clearDelayRms()
Mark delayRms, which is an optional field, as non-existent.
void calReductionIdFromBin(EndianIStream &eis)
bool equalByRequiredValue(CalPositionRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
Links *binary deserialization material from an EndianIStream std::map< std::string, CalPositionAttributeFromBin > fromBinMethods
std::vector< Length > positionOffset
===> Attribute positionOffset
Length axesOffset
===> Attribute axesOffset
void setRefAntennaNames(std::vector< std::string > refAntennaNames)
Set refAntennaNames with the specified std::vector<std::string >.