34 #ifndef SBSummaryRow_CLASS
35 #define SBSummaryRow_CLASS
179 Tag getSBSummaryId()
const;
775 bool compareNoAutoInc(
EntityRef sbSummaryUID,
EntityRef projectUID,
EntityRef obsUnitSetUID,
double frequency, ReceiverBandMod::ReceiverBand
frequencyBand, SBTypeMod::SBType
sbType,
Interval sbDuration,
int numObservingMode, std::vector<std::string >
observingMode,
int numberRepeats,
int numScienceGoal, std::vector<std::string >
scienceGoal,
int numWeatherConstraint, std::vector<std::string >
weatherConstraint);
813 bool compareRequiredValue(
EntityRef sbSummaryUID,
EntityRef projectUID,
EntityRef obsUnitSetUID,
double frequency, ReceiverBandMod::ReceiverBand
frequencyBand, SBTypeMod::SBType
sbType,
Interval sbDuration,
int numObservingMode, std::vector<std::string >
observingMode,
int numberRepeats,
int numScienceGoal, std::vector<std::string >
scienceGoal,
int numWeatherConstraint, std::vector<std::string >
weatherConstraint);
831 asdmIDL::SBSummaryRowIDL *
toIDL()
const;
840 void toIDL(asdmIDL::SBSummaryRowIDL& x)
const;
849 void setFromIDL (asdmIDL::SBSummaryRowIDL x) ;
856 std::string
toXML()
const;
908 void fromText(
const std::string& attributeName,
const std::string& t);
int numberRepeats
===> Attribute numberRepeats
std::vector< std::string > weatherConstraint
===> Attribute weatherConstraint
void setObservingMode(std::vector< std::string > observingMode)
Set observingMode with the specified std::vector<std::string >.
void numberRepeatsFromBin(EndianIStream &eis)
void setSBSummaryId(Tag sBSummaryId)
Set sBSummaryId with the specified Tag value.
The Interval class implements an interval of time in units of nanoseconds.
double frequency
===> Attribute frequency
void(SBSummaryRow::* SBSummaryAttributeFromText)(const std::string &s)
void observingModeFromBin(EndianIStream &eis)
int numWeatherConstraint
===> Attribute numWeatherConstraint
Extrinsic Table Attributes Links *bool compareNoAutoInc(EntityRef sbSummaryUID, EntityRef projectUID, EntityRef obsUnitSetUID, double frequency, ReceiverBandMod::ReceiverBand frequencyBand, SBTypeMod::SBType sbType, Interval sbDuration, int numObservingMode, std::vector< std::string > observingMode, int numberRepeats, int numScienceGoal, std::vector< std::string > scienceGoal, int numWeatherConstraint, std::vector< std::string > weatherConstraint)
Compare each mandatory attribute except the autoincrementable one of this SBSummaryRow with the corre...
std::vector< std::string > scienceGoal
===> Attribute scienceGoal
EntityRef projectUID
===> Attribute projectUID
Interval getSbDuration() const
===> Attribute sbDuration
void setSbDuration(Interval sbDuration)
Set sbDuration with the specified Interval.
void centerDirectionFromBin(EndianIStream &eis)
SBSummaryTable & table
The table to which this row belongs.
double getFrequency() const
===> Attribute frequency
DirectionReferenceCodeMod::DirectionReferenceCode centerDirectionCode
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
EntityRef obsUnitSetUID
===> Attribute obsUnitSetUID
void sbTypeFromText(const std::string &s)
void obsUnitSetUIDFromBin(EndianIStream &eis)
void scienceGoalFromText(const std::string &s)
void centerDirectionEquinoxFromBin(EndianIStream &eis)
void numWeatherConstraintFromText(const std::string &s)
DirectionReferenceCodeMod::DirectionReferenceCode getCenterDirectionCode() const
Get centerDirectionCode, which is optional.
void setNumberRepeats(int numberRepeats)
Set numberRepeats with the specified int.
Interval sbDuration
===> Attribute sbDuration
void centerDirectionCodeFromText(const std::string &s)
int getNumObservingMode() const
===> Attribute numObservingMode
SBSummaryRow(SBSummaryTable &table)
Create a SBSummaryRow.
void numWeatherConstraintFromBin(EndianIStream &eis)
int getNumWeatherConstraint() const
===> Attribute numWeatherConstraint
bool hasBeenAdded
Whether this row has been added to the table or not.
SBTypeMod::SBType sbType
===> Attribute sbType
bool isCenterDirectionCodeExists() const
===> Attribute centerDirectionCode, which is optional
bool isAdded() const
Has this row been added to its table ?
void centerDirectionCodeFromBin(EndianIStream &eis)
void setProjectUID(EntityRef projectUID)
Set projectUID with the specified EntityRef.
bool centerDirectionCodeExists
===> Attribute centerDirectionCode, which is optional
ArrayTime centerDirectionEquinox
void clearCenterDirection()
Mark centerDirection, which is an optional field, as non-existent.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void setCenterDirection(std::vector< Angle > centerDirection)
Set centerDirection with the specified std::vector<Angle >.
void setWeatherConstraint(std::vector< std::string > weatherConstraint)
Set weatherConstraint with the specified std::vector<std::string >.
ReceiverBandMod::ReceiverBand getFrequencyBand() const
===> Attribute frequencyBand
std::vector< Angle > getCenterDirection() const
Get centerDirection, which is optional.
void(SBSummaryRow::* SBSummaryAttributeFromBin)(EndianIStream &eis)
bool compareRequiredValue(EntityRef sbSummaryUID, EntityRef projectUID, EntityRef obsUnitSetUID, double frequency, ReceiverBandMod::ReceiverBand frequencyBand, SBTypeMod::SBType sbType, Interval sbDuration, int numObservingMode, std::vector< std::string > observingMode, int numberRepeats, int numScienceGoal, std::vector< std::string > scienceGoal, int numWeatherConstraint, std::vector< std::string > weatherConstraint)
Compare each mandatory value (i.e.
void setNumWeatherConstraint(int numWeatherConstraint)
Set numWeatherConstraint with the specified int.
The EntityRef class is an identification of a persistant entity in the ALMA archive.
void frequencyFromBin(EndianIStream &eis)
void setFrequency(double frequency)
Set frequency with the specified double.
void numberRepeatsFromText(const std::string &s)
void setNumObservingMode(int numObservingMode)
Set numObservingMode with the specified int.
void numScienceGoalFromText(const std::string &s)
EntityRef getSbSummaryUID() const
===> Attribute sbSummaryUID
virtual ~SBSummaryRow()
friend class asdm::TableStreamReader<SBSummaryTable, SBSummaryRow>;
void centerDirectionFromText(const std::string &s)
SBSummaryTable & getTable() const
Return the table to which this row belongs.
EntityRef getObsUnitSetUID() const
===> Attribute obsUnitSetUID
std::vector< std::string > getWeatherConstraint() const
===> Attribute weatherConstraint
void numObservingModeFromText(const std::string &s)
*text deserialization material std::map< std::string, SBSummaryAttributeFromText > fromTextMethods
void setNumScienceGoal(int numScienceGoal)
Set numScienceGoal with the specified int.
bool equalByRequiredValue(SBSummaryRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
std::string toXML() const
Return this row in the form of an XML string.
void scienceGoalFromBin(EndianIStream &eis)
std::vector< Angle > centerDirection
void projectUIDFromBin(EndianIStream &eis)
void sbTypeFromBin(EndianIStream &eis)
void setFrequencyBand(ReceiverBandMod::ReceiverBand frequencyBand)
Set frequencyBand with the specified ReceiverBandMod::ReceiverBand.
void numObservingModeFromBin(EndianIStream &eis)
void frequencyBandFromBin(EndianIStream &eis)
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void clearCenterDirectionCode()
Mark centerDirectionCode, which is an optional field, as non-existent.
void weatherConstraintFromText(const std::string &s)
void setCenterDirectionCode(DirectionReferenceCodeMod::DirectionReferenceCode centerDirectionCode)
Set centerDirectionCode with the specified DirectionReferenceCodeMod::DirectionReferenceCode.
void setObsUnitSetUID(EntityRef obsUnitSetUID)
Set obsUnitSetUID with the specified EntityRef.
void setScienceGoal(std::vector< std::string > scienceGoal)
Set scienceGoal with the specified std::vector<std::string >.
void setSbSummaryUID(EntityRef sbSummaryUID)
Set sbSummaryUID with the specified EntityRef.
void observingModeFromText(const std::string &s)
void sbDurationFromBin(EndianIStream &eis)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void centerDirectionEquinoxFromText(const std::string &s)
ReceiverBandMod::ReceiverBand frequencyBand
===> Attribute frequencyBand
asdmIDL::SBSummaryRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void sbSummaryUIDFromBin(EndianIStream &eis)
bool centerDirectionEquinoxExists
===> Attribute centerDirectionEquinox, which is optional
EntityRef sbSummaryUID
===> Attribute sbSummaryUID
void sBSummaryIdFromText(const std::string &s)
int getNumScienceGoal() const
===> Attribute numScienceGoal
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, SBSummaryAttributeFromBin > fromBinMethods
void setSbType(SBTypeMod::SBType sbType)
Set sbType with the specified SBTypeMod::SBType.
The SBSummaryTable class is an Alma table.
void weatherConstraintFromBin(EndianIStream &eis)
int numObservingMode
===> Attribute numObservingMode
std::vector< std::string > observingMode
===> Attribute observingMode
void frequencyBandFromText(const std::string &s)
void setFromIDL(asdmIDL::SBSummaryRowIDL x)
Fill the values of this row from the IDL struct SBSummaryRowIDL.
void sbDurationFromText(const std::string &s)
std::vector< std::string > getScienceGoal() const
===> Attribute scienceGoal
void frequencyFromText(const std::string &s)
ArrayTime getCenterDirectionEquinox() const
Get centerDirectionEquinox, which is optional.
void sBSummaryIdFromBin(EndianIStream &eis)
The SBSummaryRow class is a row of a SBSummaryTable.
void numScienceGoalFromBin(EndianIStream &eis)
std::vector< std::string > getObservingMode() const
===> Attribute observingMode
bool isCenterDirectionEquinoxExists() const
===> Attribute centerDirectionEquinox, which is optional
void clearCenterDirectionEquinox()
Mark centerDirectionEquinox, which is an optional field, as non-existent.
EntityRef getProjectUID() const
===> Attribute projectUID
int getNumberRepeats() const
===> Attribute numberRepeats
bool centerDirectionExists
===> Attribute centerDirection, which is optional
SBTypeMod::SBType getSbType() const
===> Attribute sbType
void setCenterDirectionEquinox(ArrayTime centerDirectionEquinox)
Set centerDirectionEquinox with the specified ArrayTime.
bool isCenterDirectionExists() const
===> Attribute centerDirection, which is optional
int numScienceGoal
===> Attribute numScienceGoal