casa
5.7.0-16
|
The ScanRow class is a row of a ScanTable. More...
#include <ScanRow.h>
Public Member Functions | |
virtual | ~ScanRow () |
friend class asdm::TableStreamReader<ScanTable, ScanRow>; More... | |
ScanTable & | getTable () const |
Return the table to which this row belongs. More... | |
bool | isAdded () const |
Has this row been added to its table ? More... | |
void | setScanNumber (int scanNumber) |
Set scanNumber with the specified int. More... | |
ArrayTime | getStartTime () const |
===> Attribute startTime More... | |
void | setStartTime (ArrayTime startTime) |
Set startTime with the specified ArrayTime. More... | |
ArrayTime | getEndTime () const |
===> Attribute endTime More... | |
void | setEndTime (ArrayTime endTime) |
Set endTime with the specified ArrayTime. More... | |
int | getNumIntent () const |
===> Attribute numIntent More... | |
void | setNumIntent (int numIntent) |
Set numIntent with the specified int. More... | |
int | getNumSubscan () const |
===> Attribute numSubscan More... | |
void | setNumSubscan (int numSubscan) |
Set numSubscan with the specified int. More... | |
std::vector < ScanIntentMod::ScanIntent > | getScanIntent () const |
===> Attribute scanIntent More... | |
void | setScanIntent (std::vector< ScanIntentMod::ScanIntent > scanIntent) |
Set scanIntent with the specified std::vector<ScanIntentMod::ScanIntent >. More... | |
std::vector < CalDataOriginMod::CalDataOrigin > | getCalDataType () const |
===> Attribute calDataType More... | |
void | setCalDataType (std::vector< CalDataOriginMod::CalDataOrigin > calDataType) |
Set calDataType with the specified std::vector<CalDataOriginMod::CalDataOrigin >. More... | |
std::vector< bool > | getCalibrationOnLine () const |
===> Attribute calibrationOnLine More... | |
void | setCalibrationOnLine (std::vector< bool > calibrationOnLine) |
Set calibrationOnLine with the specified std::vector<bool >. More... | |
bool | isCalibrationFunctionExists () const |
===> Attribute calibrationFunction, which is optional More... | |
std::vector < CalibrationFunctionMod::CalibrationFunction > | getCalibrationFunction () const |
Get calibrationFunction, which is optional. More... | |
void | setCalibrationFunction (std::vector< CalibrationFunctionMod::CalibrationFunction > calibrationFunction) |
Set calibrationFunction with the specified std::vector<CalibrationFunctionMod::CalibrationFunction >. More... | |
void | clearCalibrationFunction () |
Mark calibrationFunction, which is an optional field, as non-existent. More... | |
bool | isCalibrationSetExists () const |
===> Attribute calibrationSet, which is optional More... | |
std::vector < CalibrationSetMod::CalibrationSet > | getCalibrationSet () const |
Get calibrationSet, which is optional. More... | |
void | setCalibrationSet (std::vector< CalibrationSetMod::CalibrationSet > calibrationSet) |
Set calibrationSet with the specified std::vector<CalibrationSetMod::CalibrationSet >. More... | |
void | clearCalibrationSet () |
Mark calibrationSet, which is an optional field, as non-existent. More... | |
bool | isCalPatternExists () const |
===> Attribute calPattern, which is optional More... | |
std::vector < AntennaMotionPatternMod::AntennaMotionPattern > | getCalPattern () const |
Get calPattern, which is optional. More... | |
void | setCalPattern (std::vector< AntennaMotionPatternMod::AntennaMotionPattern > calPattern) |
Set calPattern with the specified std::vector<AntennaMotionPatternMod::AntennaMotionPattern >. More... | |
void | clearCalPattern () |
Mark calPattern, which is an optional field, as non-existent. More... | |
bool | isNumFieldExists () const |
===> Attribute numField, which is optional More... | |
int | getNumField () const |
Get numField, which is optional. More... | |
void | setNumField (int numField) |
Set numField with the specified int. More... | |
void | clearNumField () |
Mark numField, which is an optional field, as non-existent. More... | |
bool | isFieldNameExists () const |
===> Attribute fieldName, which is optional More... | |
std::vector< std::string > | getFieldName () const |
Get fieldName, which is optional. More... | |
void | setFieldName (std::vector< std::string > fieldName) |
Set fieldName with the specified std::vector<std::string >. More... | |
void | clearFieldName () |
Mark fieldName, which is an optional field, as non-existent. More... | |
bool | isSourceNameExists () const |
===> Attribute sourceName, which is optional More... | |
std::string | getSourceName () const |
Get sourceName, which is optional. More... | |
void | setSourceName (std::string sourceName) |
Set sourceName with the specified std::string. More... | |
void | clearSourceName () |
Mark sourceName, which is an optional field, as non-existent. More... | |
void | setExecBlockId (Tag execBlockId) |
Set execBlockId with the specified Tag. More... | |
Links *ExecBlockRow * | getExecBlockUsingExecBlockId () |
execBlockId pointer to the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId More... | |
bool | compareNoAutoInc (Tag execBlockId, int scanNumber, ArrayTime startTime, ArrayTime endTime, int numIntent, int numSubscan, std::vector< ScanIntentMod::ScanIntent > scanIntent, std::vector< CalDataOriginMod::CalDataOrigin > calDataType, std::vector< bool > calibrationOnLine) |
Compare each mandatory attribute except the autoincrementable one of this ScanRow with the corresponding parameters and return true if there is a match and false otherwise. More... | |
bool | compareRequiredValue (ArrayTime startTime, ArrayTime endTime, int numIntent, int numSubscan, std::vector< ScanIntentMod::ScanIntent > scanIntent, std::vector< CalDataOriginMod::CalDataOrigin > calDataType, std::vector< bool > calibrationOnLine) |
Compare each mandatory value (i.e. More... | |
bool | equalByRequiredValue (ScanRow *x) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More... | |
asdmIDL::ScanRowIDL * | toIDL () const |
Return this row in the form of an IDL struct. More... | |
void | toIDL (asdmIDL::ScanRowIDL &x) const |
Define the content of a ScanRowIDL struct from the values found in this row. More... | |
void | setFromIDL (asdmIDL::ScanRowIDL x) |
Fill the values of this row from the IDL struct ScanRowIDL. More... | |
std::string | toXML () const |
Return this row in the form of an XML string. More... | |
void | setFromXML (std::string rowDoc) |
Fill the values of this row from an XML string that was produced by the toXML() method. More... | |
Public Attributes | |
Intrinsic Table | Attributes |
Extrinsic Table | Attributes |
Private Member Functions | |
void | isAdded (bool added) |
This method is used by the Table class when this row is added to the table. More... | |
ScanRow (ScanTable &table) | |
Create a ScanRow. More... | |
ScanRow (ScanTable &table, ScanRow *row) | |
Create a ScanRow using a copy constructor mechanism. More... | |
void | execBlockIdFromBin (EndianIStream &eis) |
void | scanNumberFromBin (EndianIStream &eis) |
void | startTimeFromBin (EndianIStream &eis) |
void | endTimeFromBin (EndianIStream &eis) |
void | numIntentFromBin (EndianIStream &eis) |
void | numSubscanFromBin (EndianIStream &eis) |
void | scanIntentFromBin (EndianIStream &eis) |
void | calDataTypeFromBin (EndianIStream &eis) |
void | calibrationOnLineFromBin (EndianIStream &eis) |
void | calibrationFunctionFromBin (EndianIStream &eis) |
void | calibrationSetFromBin (EndianIStream &eis) |
void | calPatternFromBin (EndianIStream &eis) |
void | numFieldFromBin (EndianIStream &eis) |
void | fieldNameFromBin (EndianIStream &eis) |
void | sourceNameFromBin (EndianIStream &eis) |
void | execBlockIdFromText (const std::string &s) |
void | scanNumberFromText (const std::string &s) |
void | startTimeFromText (const std::string &s) |
void | endTimeFromText (const std::string &s) |
void | numIntentFromText (const std::string &s) |
void | numSubscanFromText (const std::string &s) |
void | scanIntentFromText (const std::string &s) |
void | calDataTypeFromText (const std::string &s) |
void | calibrationOnLineFromText (const std::string &s) |
void | calibrationFunctionFromText (const std::string &s) |
void | calibrationSetFromText (const std::string &s) |
void | calPatternFromText (const std::string &s) |
void | numFieldFromText (const std::string &s) |
void | fieldNameFromText (const std::string &s) |
void | sourceNameFromText (const std::string &s) |
void | toBin (EndianOSStream &eoss) |
Serialize this into a stream of bytes written to an EndianOSStream. More... | |
Private Attributes | |
ScanTable & | table |
The table to which this row belongs. More... | |
bool | hasBeenAdded |
Whether this row has been added to the table or not. More... | |
ArrayTime | startTime |
===> Attribute startTime More... | |
ArrayTime | endTime |
===> Attribute endTime More... | |
int | numIntent |
===> Attribute numIntent More... | |
int | numSubscan |
===> Attribute numSubscan More... | |
std::vector < ScanIntentMod::ScanIntent > | scanIntent |
===> Attribute scanIntent More... | |
std::vector < CalDataOriginMod::CalDataOrigin > | calDataType |
===> Attribute calDataType More... | |
std::vector< bool > | calibrationOnLine |
===> Attribute calibrationOnLine More... | |
bool | calibrationFunctionExists |
===> Attribute calibrationFunction, which is optional More... | |
std::vector < CalibrationFunctionMod::CalibrationFunction > | calibrationFunction |
bool | calibrationSetExists |
===> Attribute calibrationSet, which is optional More... | |
std::vector < CalibrationSetMod::CalibrationSet > | calibrationSet |
bool | calPatternExists |
===> Attribute calPattern, which is optional More... | |
std::vector < AntennaMotionPatternMod::AntennaMotionPattern > | calPattern |
bool | numFieldExists |
===> Attribute numField, which is optional More... | |
int | numField |
bool | fieldNameExists |
===> Attribute fieldName, which is optional More... | |
std::vector< std::string > | fieldName |
bool | sourceNameExists |
===> Attribute sourceName, which is optional More... | |
std::string | sourceName |
Links *binary deserialization material from an EndianIStream std::map< std::string, ScanAttributeFromBin > | fromBinMethods |
*text deserialization material std::map< std::string, ScanAttributeFromText > | fromTextMethods |
Friends | |
class | asdm::ScanTable |
class | asdm::RowTransformer< ScanRow > |
|
virtual |
friend class asdm::TableStreamReader<ScanTable, ScanRow>;
|
private |
Create a ScanRow.
This constructor is private because only the table can create rows. All rows know the table to which they belong.
table | The table to which this row belongs. |
Create a ScanRow using a copy constructor mechanism.
Given a ScanRow row and a ScanTable table, the method creates a new ScanRow owned by table. Each attribute of the created row is a copy (deep) of the corresponding attribute of row. The method does not add the created row to its table, its simply parents it to table, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a row with default values for its attributes.
This constructor is private because only the table can create rows. All rows know the table to which they belong.
table | The table to which this row belongs. |
row | The row which is to be copied. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void asdm::ScanRow::clearCalibrationFunction | ( | ) |
Mark calibrationFunction, which is an optional field, as non-existent.
void asdm::ScanRow::clearCalibrationSet | ( | ) |
Mark calibrationSet, which is an optional field, as non-existent.
void asdm::ScanRow::clearCalPattern | ( | ) |
Mark calPattern, which is an optional field, as non-existent.
void asdm::ScanRow::clearFieldName | ( | ) |
Mark fieldName, which is an optional field, as non-existent.
void asdm::ScanRow::clearNumField | ( | ) |
Mark numField, which is an optional field, as non-existent.
void asdm::ScanRow::clearSourceName | ( | ) |
Mark sourceName, which is an optional field, as non-existent.
bool asdm::ScanRow::compareNoAutoInc | ( | Tag | execBlockId, |
int | scanNumber, | ||
ArrayTime | startTime, | ||
ArrayTime | endTime, | ||
int | numIntent, | ||
int | numSubscan, | ||
std::vector< ScanIntentMod::ScanIntent > | scanIntent, | ||
std::vector< CalDataOriginMod::CalDataOrigin > | calDataType, | ||
std::vector< bool > | calibrationOnLine | ||
) |
Compare each mandatory attribute except the autoincrementable one of this ScanRow with the corresponding parameters and return true if there is a match and false otherwise.
execBlockId | |
scanNumber | |
startTime | |
endTime | |
numIntent | |
numSubscan | |
scanIntent | |
calDataType | |
calibrationOnLine |
bool asdm::ScanRow::compareRequiredValue | ( | ArrayTime | startTime, |
ArrayTime | endTime, | ||
int | numIntent, | ||
int | numSubscan, | ||
std::vector< ScanIntentMod::ScanIntent > | scanIntent, | ||
std::vector< CalDataOriginMod::CalDataOrigin > | calDataType, | ||
std::vector< bool > | calibrationOnLine | ||
) |
Compare each mandatory value (i.e.
not in the key) attribute with the corresponding parameters and return true if there is a match and false otherwise.
startTime | |
endTime | |
numIntent | |
numSubscan | |
scanIntent | |
calDataType | |
calibrationOnLine |
|
private |
|
private |
bool asdm::ScanRow::equalByRequiredValue | ( | ScanRow * | x | ) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
x | a pointer on the ScanRow whose required attributes of the value part will be compared with those of this. |
|
private |
|
private |
|
private |
|
private |
std::vector<CalDataOriginMod::CalDataOrigin > asdm::ScanRow::getCalDataType | ( | ) | const |
===> Attribute calDataType
Get calDataType.
std::vector<CalibrationFunctionMod::CalibrationFunction > asdm::ScanRow::getCalibrationFunction | ( | ) | const |
Get calibrationFunction, which is optional.
IllegalAccessException | If calibrationFunction does not exist. |
std::vector<bool > asdm::ScanRow::getCalibrationOnLine | ( | ) | const |
===> Attribute calibrationOnLine
Get calibrationOnLine.
std::vector<CalibrationSetMod::CalibrationSet > asdm::ScanRow::getCalibrationSet | ( | ) | const |
Get calibrationSet, which is optional.
IllegalAccessException | If calibrationSet does not exist. |
std::vector<AntennaMotionPatternMod::AntennaMotionPattern > asdm::ScanRow::getCalPattern | ( | ) | const |
Get calPattern, which is optional.
IllegalAccessException | If calPattern does not exist. |
ArrayTime asdm::ScanRow::getEndTime | ( | ) | const |
Links* ExecBlockRow* asdm::ScanRow::getExecBlockUsingExecBlockId | ( | ) |
execBlockId pointer to the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
std::vector<std::string > asdm::ScanRow::getFieldName | ( | ) | const |
Get fieldName, which is optional.
IllegalAccessException | If fieldName does not exist. |
int asdm::ScanRow::getNumField | ( | ) | const |
Get numField, which is optional.
IllegalAccessException | If numField does not exist. |
int asdm::ScanRow::getNumIntent | ( | ) | const |
===> Attribute numIntent
Get numIntent.
int asdm::ScanRow::getNumSubscan | ( | ) | const |
===> Attribute numSubscan
Get numSubscan.
std::vector<ScanIntentMod::ScanIntent > asdm::ScanRow::getScanIntent | ( | ) | const |
===> Attribute scanIntent
Get scanIntent.
std::string asdm::ScanRow::getSourceName | ( | ) | const |
Get sourceName, which is optional.
IllegalAccessException | If sourceName does not exist. |
ArrayTime asdm::ScanRow::getStartTime | ( | ) | const |
ScanTable& asdm::ScanRow::getTable | ( | ) | const |
Return the table to which this row belongs.
bool asdm::ScanRow::isAdded | ( | ) | const |
Has this row been added to its table ?
|
private |
This method is used by the Table class when this row is added to the table.
bool asdm::ScanRow::isCalibrationFunctionExists | ( | ) | const |
===> Attribute calibrationFunction, which is optional
The attribute calibrationFunction is optional. Return true if this attribute exists.
bool asdm::ScanRow::isCalibrationSetExists | ( | ) | const |
===> Attribute calibrationSet, which is optional
The attribute calibrationSet is optional. Return true if this attribute exists.
bool asdm::ScanRow::isCalPatternExists | ( | ) | const |
===> Attribute calPattern, which is optional
The attribute calPattern is optional. Return true if this attribute exists.
bool asdm::ScanRow::isFieldNameExists | ( | ) | const |
===> Attribute fieldName, which is optional
The attribute fieldName is optional. Return true if this attribute exists.
bool asdm::ScanRow::isNumFieldExists | ( | ) | const |
===> Attribute numField, which is optional
The attribute numField is optional. Return true if this attribute exists.
bool asdm::ScanRow::isSourceNameExists | ( | ) | const |
===> Attribute sourceName, which is optional
The attribute sourceName is optional. Return true if this attribute exists.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void asdm::ScanRow::setCalDataType | ( | std::vector< CalDataOriginMod::CalDataOrigin > | calDataType | ) |
Set calDataType with the specified std::vector<CalDataOriginMod::CalDataOrigin >.
calDataType | The std::vector<CalDataOriginMod::CalDataOrigin > value to which calDataType is to be set. |
void asdm::ScanRow::setCalibrationFunction | ( | std::vector< CalibrationFunctionMod::CalibrationFunction > | calibrationFunction | ) |
Set calibrationFunction with the specified std::vector<CalibrationFunctionMod::CalibrationFunction >.
calibrationFunction | The std::vector<CalibrationFunctionMod::CalibrationFunction > value to which calibrationFunction is to be set. |
void asdm::ScanRow::setCalibrationOnLine | ( | std::vector< bool > | calibrationOnLine | ) |
Set calibrationOnLine with the specified std::vector<bool >.
calibrationOnLine | The std::vector<bool > value to which calibrationOnLine is to be set. |
void asdm::ScanRow::setCalibrationSet | ( | std::vector< CalibrationSetMod::CalibrationSet > | calibrationSet | ) |
Set calibrationSet with the specified std::vector<CalibrationSetMod::CalibrationSet >.
calibrationSet | The std::vector<CalibrationSetMod::CalibrationSet > value to which calibrationSet is to be set. |
void asdm::ScanRow::setCalPattern | ( | std::vector< AntennaMotionPatternMod::AntennaMotionPattern > | calPattern | ) |
Set calPattern with the specified std::vector<AntennaMotionPatternMod::AntennaMotionPattern >.
calPattern | The std::vector<AntennaMotionPatternMod::AntennaMotionPattern > value to which calPattern is to be set. |
void asdm::ScanRow::setEndTime | ( | ArrayTime | endTime | ) |
void asdm::ScanRow::setExecBlockId | ( | Tag | execBlockId | ) |
Set execBlockId with the specified Tag.
execBlockId | The Tag value to which execBlockId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::ScanRow::setFieldName | ( | std::vector< std::string > | fieldName | ) |
Set fieldName with the specified std::vector<std::string >.
fieldName | The std::vector<std::string > value to which fieldName is to be set. |
void asdm::ScanRow::setFromIDL | ( | asdmIDL::ScanRowIDL | x | ) |
Fill the values of this row from the IDL struct ScanRowIDL.
x | The IDL struct containing the values used to fill this row. |
ConversionException |
void asdm::ScanRow::setFromXML | ( | std::string | rowDoc | ) |
Fill the values of this row from an XML string that was produced by the toXML() method.
rowDoc | the XML string being used to set the values of this row. |
ConversionException |
void asdm::ScanRow::setNumField | ( | int | numField | ) |
Set numField with the specified int.
numField | The int value to which numField is to be set. |
void asdm::ScanRow::setNumIntent | ( | int | numIntent | ) |
Set numIntent with the specified int.
numIntent | The int value to which numIntent is to be set. |
void asdm::ScanRow::setNumSubscan | ( | int | numSubscan | ) |
Set numSubscan with the specified int.
numSubscan | The int value to which numSubscan is to be set. |
void asdm::ScanRow::setScanIntent | ( | std::vector< ScanIntentMod::ScanIntent > | scanIntent | ) |
Set scanIntent with the specified std::vector<ScanIntentMod::ScanIntent >.
scanIntent | The std::vector<ScanIntentMod::ScanIntent > value to which scanIntent is to be set. |
void asdm::ScanRow::setScanNumber | ( | int | scanNumber | ) |
Set scanNumber with the specified int.
scanNumber | The int value to which scanNumber is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::ScanRow::setSourceName | ( | std::string | sourceName | ) |
Set sourceName with the specified std::string.
sourceName | The std::string value to which sourceName is to be set. |
void asdm::ScanRow::setStartTime | ( | ArrayTime | startTime | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
Serialize this into a stream of bytes written to an EndianOSStream.
eoss | the EndianOSStream to be written to |
asdmIDL::ScanRowIDL* asdm::ScanRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::ScanRow::toIDL | ( | asdmIDL::ScanRowIDL & | x | ) | const |
Define the content of a ScanRowIDL struct from the values found in this row.
x | a reference to the ScanRowIDL struct to be set. |
std::string asdm::ScanRow::toXML | ( | ) | const |
Return this row in the form of an XML string.
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |