34 #ifndef PointingRow_CLASS
35 #define PointingRow_CLASS
122 class PointingModelRow;
235 std::vector<std::vector<Angle > >
getEncoder()
const;
415 std::vector<std::vector<Angle > >
getTarget()
const;
445 std::vector<std::vector<Angle > >
getOffset()
const;
725 Tag getAntennaId()
const;
791 std::vector <PointingModelRow *> getPointingModels();
844 bool compareNoAutoInc(
Tag antennaId,
ArrayTimeInterval timeInterval,
int numSample, std::vector<std::vector<Angle > >
encoder,
bool pointingTracking,
bool usePolynomials,
ArrayTime timeOrigin,
int numTerm, std::vector<std::vector<Angle > >
pointingDirection, std::vector<std::vector<Angle > >
target, std::vector<std::vector<Angle > >
offset,
int pointingModelId);
892 asdmIDL::PointingRowIDL *
toIDL()
const;
901 void toIDL(asdmIDL::PointingRowIDL& x)
const;
917 std::string
toXML()
const;
969 void fromText(
const std::string& attributeName,
const std::string& t);
void overTheTopFromBin(EndianIStream &eis)
PointingTable & getTable() const
Return the table to which this row belongs.
std::vector< std::vector< Angle > > getTarget() const
===> Attribute target
std::vector< std::vector< Angle > > getEncoder() const
===> Attribute encoder
void clearSampledTimeInterval()
Mark sampledTimeInterval, which is an optional field, as non-existent.
DirectionReferenceCodeMod::DirectionReferenceCode getSourceOffsetReferenceCode() const
Get sourceOffsetReferenceCode, which is optional.
void targetFromText(const std::string &s)
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
int getNumTerm() const
===> Attribute numTerm
void clearSourceOffset()
Mark sourceOffset, which is an optional field, as non-existent.
The PointingTable class is an Alma table.
bool compareRequiredValue(int numSample, std::vector< std::vector< Angle > > encoder, bool pointingTracking, bool usePolynomials, ArrayTime timeOrigin, int numTerm, std::vector< std::vector< Angle > > pointingDirection, std::vector< std::vector< Angle > > target, std::vector< std::vector< Angle > > offset, int pointingModelId)
Compare each mandatory value (i.e.
void setOffset(std::vector< std::vector< Angle > > offset)
Set offset with the specified std::vector<std::vector<Angle > >.
void pointingModelIdFromText(const std::string &s)
std::vector< std::vector< Angle > > getAtmosphericCorrection() const
Get atmosphericCorrection, which is optional.
*text deserialization material std::map< std::string, PointingAttributeFromText > fromTextMethods
void setSourceOffset(std::vector< std::vector< Angle > > sourceOffset)
Set sourceOffset with the specified std::vector<std::vector<Angle > >.
void encoderFromBin(EndianIStream &eis)
The ArrayTimeInterval class aggregates an instance of ArrayTime and an instance of Interval...
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
std::vector< std::vector< Angle > > getPointingDirection() const
===> Attribute pointingDirection
bool isAdded() const
Has this row been added to its table ?
void timeOriginFromText(const std::string &s)
bool isAtmosphericCorrectionExists() const
===> Attribute atmosphericCorrection, which is optional
void setTimeOrigin(ArrayTime timeOrigin)
Set timeOrigin with the specified ArrayTime.
void setOverTheTop(bool overTheTop)
Set overTheTop with the specified bool.
bool overTheTopExists
===> Attribute overTheTop, which is optional
int getNumSample() const
===> Attribute numSample
bool sourceOffsetExists
===> Attribute sourceOffset, which is optional
void setTarget(std::vector< std::vector< Angle > > target)
Set target with the specified std::vector<std::vector<Angle > >.
bool getUsePolynomials() const
===> Attribute usePolynomials
std::vector< std::vector< Angle > > getSourceOffset() const
Get sourceOffset, which is optional.
The PointingRow class is a row of a PointingTable.
void(PointingRow::* PointingAttributeFromText)(const std::string &s)
std::vector< ArrayTimeInterval > sampledTimeInterval
std::vector< std::vector< Angle > > offset
===> Attribute offset
void setPointingTracking(bool pointingTracking)
Set pointingTracking with the specified bool.
bool hasBeenAdded
Whether this row has been added to the table or not.
bool atmosphericCorrectionExists
===> Attribute atmosphericCorrection, which is optional
AntennaRow * getAntennaUsingAntennaId()
antennaId pointer to the row in the Antenna table having Antenna.antennaId == antennaId ...
bool isOverTheTopExists() const
===> Attribute overTheTop, which is optional
void pointingModelIdFromBin(EndianIStream &eis)
void antennaIdFromBin(EndianIStream &eis)
bool getOverTheTop() const
Get overTheTop, which is optional.
void clearSourceOffsetReferenceCode()
Mark sourceOffsetReferenceCode, which is an optional field, as non-existent.
void sourceOffsetEquinoxFromBin(EndianIStream &eis)
Links *binary deserialization material from an EndianIStream std::map< std::string, PointingAttributeFromBin > fromBinMethods
void pointingTrackingFromBin(EndianIStream &eis)
bool pointingTracking
===> Attribute pointingTracking
ArrayTime sourceOffsetEquinox
void numSampleFromText(const std::string &s)
void atmosphericCorrectionFromText(const std::string &s)
void sourceOffsetEquinoxFromText(const std::string &s)
void sampledTimeIntervalFromBin(EndianIStream &eis)
bool usePolynomials
===> Attribute usePolynomials
void setPointingModelId(int pointingModelId)
Set pointingModelId with the specified int.
void sourceOffsetReferenceCodeFromBin(EndianIStream &eis)
void setFromIDL(asdmIDL::PointingRowIDL x)
Fill the values of this row from the IDL struct PointingRowIDL.
asdmIDL::PointingRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void overTheTopFromText(const std::string &s)
int getPointingModelId() const
===> Attribute pointingModelId
bool isSourceOffsetEquinoxExists() const
===> Attribute sourceOffsetEquinox, which is optional
void encoderFromText(const std::string &s)
void setPointingDirection(std::vector< std::vector< Angle > > pointingDirection)
Set pointingDirection with the specified std::vector<std::vector<Angle > >.
void targetFromBin(EndianIStream &eis)
PointingRow(PointingTable &table)
Create a PointingRow.
void setEncoder(std::vector< std::vector< Angle > > encoder)
Set encoder with the specified std::vector<std::vector<Angle > >.
void timeIntervalFromBin(EndianIStream &eis)
std::vector< ArrayTimeInterval > getSampledTimeInterval() const
Get sampledTimeInterval, which is optional.
bool sourceOffsetReferenceCodeExists
===> Attribute sourceOffsetReferenceCode, which is optional
The AntennaRow class is a row of a AntennaTable.
void setTimeInterval(ArrayTimeInterval timeInterval)
Set timeInterval with the specified ArrayTimeInterval.
void numTermFromBin(EndianIStream &eis)
void atmosphericCorrectionFromBin(EndianIStream &eis)
void timeOriginFromBin(EndianIStream &eis)
void setSampledTimeInterval(std::vector< ArrayTimeInterval > sampledTimeInterval)
Set sampledTimeInterval with the specified std::vector<ArrayTimeInterval >.
void setSourceOffsetEquinox(ArrayTime sourceOffsetEquinox)
Set sourceOffsetEquinox with the specified ArrayTime.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
bool getPointingTracking() const
===> Attribute pointingTracking
void setNumSample(int numSample)
Set numSample with the specified int.
virtual ~PointingRow()
friend class asdm::TableStreamReader<PointingTable, PointingRow>;
void setSourceOffsetReferenceCode(DirectionReferenceCodeMod::DirectionReferenceCode sourceOffsetReferenceCode)
Set sourceOffsetReferenceCode with the specified DirectionReferenceCodeMod::DirectionReferenceCode.
void clearSourceOffsetEquinox()
Mark sourceOffsetEquinox, which is an optional field, as non-existent.
void usePolynomialsFromText(const std::string &s)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
bool sampledTimeIntervalExists
===> Attribute sampledTimeInterval, which is optional
bool isSourceOffsetReferenceCodeExists() const
===> Attribute sourceOffsetReferenceCode, which is optional
void sourceOffsetFromText(const std::string &s)
void sourceOffsetFromBin(EndianIStream &eis)
void clearAtmosphericCorrection()
Mark atmosphericCorrection, which is an optional field, as non-existent.
void setUsePolynomials(bool usePolynomials)
Set usePolynomials with the specified bool.
int pointingModelId
===> Attribute pointingModelId
void offsetFromText(const std::string &s)
void setAtmosphericCorrection(std::vector< std::vector< Angle > > atmosphericCorrection)
Set atmosphericCorrection with the specified std::vector<std::vector<Angle > >.
bool isSourceOffsetExists() const
===> Attribute sourceOffset, which is optional
DirectionReferenceCodeMod::DirectionReferenceCode sourceOffsetReferenceCode
void clearOverTheTop()
Mark overTheTop, which is an optional field, as non-existent.
ArrayTime getSourceOffsetEquinox() const
Get sourceOffsetEquinox, which is optional.
void sourceOffsetReferenceCodeFromText(const std::string &s)
bool compareNoAutoInc(Tag antennaId, ArrayTimeInterval timeInterval, int numSample, std::vector< std::vector< Angle > > encoder, bool pointingTracking, bool usePolynomials, ArrayTime timeOrigin, int numTerm, std::vector< std::vector< Angle > > pointingDirection, std::vector< std::vector< Angle > > target, std::vector< std::vector< Angle > > offset, int pointingModelId)
Compare each mandatory attribute except the autoincrementable one of this PointingRow with the corres...
std::vector< std::vector< Angle > > pointingDirection
===> Attribute pointingDirection
void numTermFromText(const std::string &s)
void pointingDirectionFromText(const std::string &s)
ArrayTime timeOrigin
===> Attribute timeOrigin
bool sourceOffsetEquinoxExists
===> Attribute sourceOffsetEquinox, which is optional
std::vector< std::vector< Angle > > encoder
===> Attribute encoder
void usePolynomialsFromBin(EndianIStream &eis)
std::vector< std::vector< Angle > > getOffset() const
===> Attribute offset
std::vector< std::vector< Angle > > atmosphericCorrection
ArrayTime getTimeOrigin() const
===> Attribute timeOrigin
void numSampleFromBin(EndianIStream &eis)
std::string toXML() const
Return this row in the form of an XML string.
int numSample
===> Attribute numSample
void antennaIdFromText(const std::string &s)
void offsetFromBin(EndianIStream &eis)
std::vector< std::vector< Angle > > sourceOffset
void sampledTimeIntervalFromText(const std::string &s)
int numTerm
===> Attribute numTerm
void pointingDirectionFromBin(EndianIStream &eis)
bool equalByRequiredValue(PointingRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void setNumTerm(int numTerm)
Set numTerm with the specified int.
void setAntennaId(Tag antennaId)
Set antennaId with the specified Tag.
std::vector< std::vector< Angle > > target
===> Attribute target
void(PointingRow::* PointingAttributeFromBin)(EndianIStream &eis)
void timeIntervalFromText(const std::string &s)
void pointingTrackingFromText(const std::string &s)
PointingTable & table
The table to which this row belongs.
bool isSampledTimeIntervalExists() const
===> Attribute sampledTimeInterval, which is optional