34 #ifndef CalDataRow_CLASS
35 #define CalDataRow_CLASS
165 Tag getCalDataId()
const;
607 std::vector<ScanIntentMod::ScanIntent >
getScanIntent()
const;
702 asdmIDL::CalDataRowIDL *
toIDL()
const;
711 void toIDL(asdmIDL::CalDataRowIDL& x)
const;
727 std::string
toXML()
const;
775 void fromText(
const std::string& attributeName,
const std::string& t);
bool isScanIntentExists() const
===> Attribute scanIntent, which is optional
void(CalDataRow::* CalDataAttributeFromBin)(EndianIStream &eis)
CalTypeMod::CalType calType
===> Attribute calType
bool sourceCodeExists
===> Attribute sourceCode, which is optional
void endTimeObservedFromText(const std::string &s)
bool equalByRequiredValue(CalDataRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
bool scanIntentExists
===> Attribute scanIntent, which is optional
void endTimeObservedFromBin(EndianIStream &eis)
std::vector< int > getScanSet() const
===> Attribute scanSet
void scanIntentFromBin(EndianIStream &eis)
std::vector< std::string > getFieldName() const
Get fieldName, which is optional.
void(CalDataRow::* CalDataAttributeFromText)(const std::string &s)
bool assocCalDataIdExists
===> Attribute assocCalDataId, which is optional
virtual ~CalDataRow()
friend class asdm::TableStreamReader<CalDataTable, CalDataRow>;
void clearAssocCalDataId()
Mark assocCalDataId, which is an optional field, as non-existent.
void fieldNameFromBin(EndianIStream &eis)
std::vector< ScanIntentMod::ScanIntent > getScanIntent() const
Get scanIntent, which is optional.
Extrinsic Table Attributes Links *bool compareNoAutoInc(ArrayTime startTimeObserved, ArrayTime endTimeObserved, EntityRef execBlockUID, CalDataOriginMod::CalDataOrigin calDataType, CalTypeMod::CalType calType, int numScan, std::vector< int > scanSet)
Compare each mandatory attribute except the autoincrementable one of this CalDataRow with the corresp...
void clearScanIntent()
Mark scanIntent, which is an optional field, as non-existent.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
CalDataOriginMod::CalDataOrigin calDataType
===> Attribute calDataType
std::vector< std::string > getSourceName() const
Get sourceName, which is optional.
bool isAdded() const
Has this row been added to its table ?
void sourceCodeFromText(const std::string &s)
void setStartTimeObserved(ArrayTime startTimeObserved)
Set startTimeObserved with the specified ArrayTime.
void calTypeFromText(const std::string &s)
bool sourceNameExists
===> Attribute sourceName, which is optional
void numScanFromText(const std::string &s)
bool fieldNameExists
===> Attribute fieldName, which is optional
void setFieldName(std::vector< std::string > fieldName)
Set fieldName with the specified std::vector<std::string >.
void calDataTypeFromBin(EndianIStream &eis)
bool compareRequiredValue(ArrayTime startTimeObserved, ArrayTime endTimeObserved, EntityRef execBlockUID, CalDataOriginMod::CalDataOrigin calDataType, CalTypeMod::CalType calType, int numScan, std::vector< int > scanSet)
Compare each mandatory value (i.e.
void fieldNameFromText(const std::string &s)
void setCalType(CalTypeMod::CalType calType)
Set calType with the specified CalTypeMod::CalType.
void setAssocCalDataId(Tag assocCalDataId)
Set assocCalDataId with the specified Tag.
void startTimeObservedFromBin(EndianIStream &eis)
void clearFieldName()
Mark fieldName, which is an optional field, as non-existent.
bool hasBeenAdded
Whether this row has been added to the table or not.
void clearSourceCode()
Mark sourceCode, 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.
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, CalDataAttributeFromBin > fromBinMethods
void sourceNameFromBin(EndianIStream &eis)
void assocCalNatureFromText(const std::string &s)
The EntityRef class is an identification of a persistant entity in the ALMA archive.
void assocCalNatureFromBin(EndianIStream &eis)
void setEndTimeObserved(ArrayTime endTimeObserved)
Set endTimeObserved with the specified ArrayTime.
AssociatedCalNatureMod::AssociatedCalNature getAssocCalNature() const
Get assocCalNature, which is optional.
CalDataTable & table
The table to which this row belongs.
void setScanIntent(std::vector< ScanIntentMod::ScanIntent > scanIntent)
Set scanIntent with the specified std::vector<ScanIntentMod::ScanIntent >.
void setExecBlockUID(EntityRef execBlockUID)
Set execBlockUID with the specified EntityRef.
CalDataRow(CalDataTable &table)
Create a CalDataRow.
ArrayTime endTimeObserved
===> Attribute endTimeObserved
void setScanSet(std::vector< int > scanSet)
Set scanSet with the specified std::vector<int >.
void calDataTypeFromText(const std::string &s)
std::vector< std::string > getSourceCode() const
Get sourceCode, which is optional.
bool assocCalNatureExists
===> Attribute assocCalNature, which is optional
void startTimeObservedFromText(const std::string &s)
CalDataOriginMod::CalDataOrigin getCalDataType() const
===> Attribute calDataType
AssociatedCalNatureMod::AssociatedCalNature assocCalNature
void scanSetFromText(const std::string &s)
void calTypeFromBin(EndianIStream &eis)
void setFromIDL(asdmIDL::CalDataRowIDL x)
Fill the values of this row from the IDL struct CalDataRowIDL.
ArrayTime getStartTimeObserved() const
===> Attribute startTimeObserved
void numScanFromBin(EndianIStream &eis)
void clearAssocCalNature()
Mark assocCalNature, which is an optional field, as non-existent.
ArrayTime getEndTimeObserved() const
===> Attribute endTimeObserved
bool isSourceNameExists() const
===> Attribute sourceName, which is optional
void scanSetFromBin(EndianIStream &eis)
void setSourceCode(std::vector< std::string > sourceCode)
Set sourceCode with the specified std::vector<std::string >.
bool isSourceCodeExists() const
===> Attribute sourceCode, which is optional
bool isAssocCalDataIdExists() const
===> Attribute assocCalDataId, which is optional
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
std::vector< ScanIntentMod::ScanIntent > scanIntent
void clearSourceName()
Mark sourceName, which is an optional field, as non-existent.
std::vector< int > scanSet
===> Attribute scanSet
void calDataIdFromText(const std::string &s)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void setAssocCalNature(AssociatedCalNatureMod::AssociatedCalNature assocCalNature)
Set assocCalNature with the specified AssociatedCalNatureMod::AssociatedCalNature.
bool isAssocCalNatureExists() const
===> Attribute assocCalNature, which is optional
void setSourceName(std::vector< std::string > sourceName)
Set sourceName with the specified std::vector<std::string >.
bool isFieldNameExists() const
===> Attribute fieldName, which is optional
void sourceCodeFromBin(EndianIStream &eis)
EntityRef execBlockUID
===> Attribute execBlockUID
CalTypeMod::CalType getCalType() const
===> Attribute calType
void assocCalDataIdFromBin(EndianIStream &eis)
void assocCalDataIdFromText(const std::string &s)
CalDataTable & getTable() const
Return the table to which this row belongs.
ArrayTime startTimeObserved
===> Attribute startTimeObserved
std::vector< std::string > fieldName
int numScan
===> Attribute numScan
asdmIDL::CalDataRowIDL * toIDL() const
Return this row in the form of an IDL struct.
The CalDataTable class is an Alma table.
The CalDataRow class is a row of a CalDataTable.
*text deserialization material std::map< std::string, CalDataAttributeFromText > fromTextMethods
void setCalDataId(Tag calDataId)
Set calDataId with the specified Tag value.
EntityRef getExecBlockUID() const
===> Attribute execBlockUID
void calDataIdFromBin(EndianIStream &eis)
void setNumScan(int numScan)
Set numScan with the specified int.
std::vector< std::string > sourceCode
std::vector< std::string > sourceName
void sourceNameFromText(const std::string &s)
Tag getAssocCalDataId() const
Get assocCalDataId, which is optional.
std::string toXML() const
Return this row in the form of an XML string.
int getNumScan() const
===> Attribute numScan
void setCalDataType(CalDataOriginMod::CalDataOrigin calDataType)
Set calDataType with the specified CalDataOriginMod::CalDataOrigin.
void scanIntentFromText(const std::string &s)
void execBlockUIDFromBin(EndianIStream &eis)