casa
5.7.0-16
|
The DataDescriptionRow class is a row of a DataDescriptionTable. More...
#include <DataDescriptionRow.h>
Public Member Functions | |
virtual | ~DataDescriptionRow () |
friend class asdm::TableStreamReader<DataDescriptionTable, DataDescriptionRow>; More... | |
DataDescriptionTable & | getTable () const |
Return the table to which this row belongs. More... | |
bool | isAdded () const |
Has this row been added to its table ? More... | |
void | setPolOrHoloId (Tag polOrHoloId) |
Set polOrHoloId with the specified Tag. More... | |
Tag | getSpectralWindowId () const |
===> Attribute spectralWindowId More... | |
void | setSpectralWindowId (Tag spectralWindowId) |
Set spectralWindowId with the specified Tag. More... | |
Tag | getPulsarId () const |
Get pulsarId, which is optional. More... | |
void | setPulsarId (Tag pulsarId) |
Set pulsarId with the specified Tag. More... | |
void | clearPulsarId () |
Mark pulsarId, which is an optional field, as non-existent. More... | |
Links *PolarizationRow * | getPolarizationUsingPolOrHoloId () |
Returns pointer to the row in the Polarization table having Polarization.polarizationId == polOrHoloId. More... | |
HolographyRow * | getHolographyUsingPolOrHoloId () |
Returns pointer to the row in the Holograpy table having Holography.holographyId == polOrHoloId. More... | |
SpectralWindowRow * | getSpectralWindowUsingSpectralWindowId () |
spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId More... | |
PulsarRow * | getPulsarUsingPulsarId () |
pulsarId pointer to the row in the Pulsar table having Pulsar.pulsarId == pulsarId More... | |
bool | compareNoAutoInc (Tag polOrHoloId, Tag spectralWindowId) |
Compare each mandatory attribute except the autoincrementable one of this DataDescriptionRow with the corresponding parameters and return true if there is a match and false otherwise. More... | |
bool | compareRequiredValue (Tag polOrHoloId, Tag spectralWindowId) |
Compare each mandatory value (i.e. More... | |
bool | equalByRequiredValue (DataDescriptionRow *x) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More... | |
asdmIDL::DataDescriptionRowIDL * | toIDL () const |
Return this row in the form of an IDL struct. More... | |
void | toIDL (asdmIDL::DataDescriptionRowIDL &x) const |
Define the content of a DataDescriptionRowIDL struct from the values found in this row. More... | |
void | setFromIDL (asdmIDL::DataDescriptionRowIDL x) |
Fill the values of this row from the IDL struct DataDescriptionRowIDL. 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... | |
DataDescriptionRow (DataDescriptionTable &table) | |
Create a DataDescriptionRow. More... | |
DataDescriptionRow (DataDescriptionTable &table, DataDescriptionRow *row) | |
Create a DataDescriptionRow using a copy constructor mechanism. More... | |
void | setDataDescriptionId (Tag dataDescriptionId) |
Set dataDescriptionId with the specified Tag value. More... | |
void | dataDescriptionIdFromBin (EndianIStream &eis) |
void | polOrHoloIdFromBin (EndianIStream &eis) |
void | spectralWindowIdFromBin (EndianIStream &eis) |
void | pulsarIdFromBin (EndianIStream &eis) |
void | dataDescriptionIdFromText (const std::string &s) |
void | polOrHoloIdFromText (const std::string &s) |
void | spectralWindowIdFromText (const std::string &s) |
void | pulsarIdFromText (const std::string &s) |
void | toBin (EndianOSStream &eoss) |
Serialize this into a stream of bytes written to an EndianOSStream. More... | |
Private Attributes | |
DataDescriptionTable & | table |
The table to which this row belongs. More... | |
bool | hasBeenAdded |
Whether this row has been added to the table or not. More... | |
Tag | spectralWindowId |
===> Attribute spectralWindowId More... | |
bool | pulsarIdExists |
===> Attribute pulsarId, which is optional More... | |
Tag | pulsarId |
Links *binary deserialization material from an EndianIStream std::map< std::string, DataDescriptionAttributeFromBin > | fromBinMethods |
*text deserialization material std::map< std::string, DataDescriptionAttributeFromText > | fromTextMethods |
Friends | |
class | asdm::DataDescriptionTable |
class | asdm::RowTransformer< DataDescriptionRow > |
The DataDescriptionRow class is a row of a DataDescriptionTable.
Generated from model's revision "1.62", branch "HEAD"
Definition at line 99 of file DataDescriptionRow.h.
|
virtual |
friend class asdm::TableStreamReader<DataDescriptionTable, DataDescriptionRow>;
|
private |
Create a DataDescriptionRow.
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. |
|
private |
Create a DataDescriptionRow using a copy constructor mechanism.
Given a DataDescriptionRow row and a DataDescriptionTable table, the method creates a new DataDescriptionRow 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. |
void asdm::DataDescriptionRow::clearPulsarId | ( | ) |
Mark pulsarId, which is an optional field, as non-existent.
Compare each mandatory attribute except the autoincrementable one of this DataDescriptionRow with the corresponding parameters and return true if there is a match and false otherwise.
polOrHoloId | |
spectralWindowId |
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.
polOrHoloId | |
spectralWindowId |
|
private |
|
private |
bool asdm::DataDescriptionRow::equalByRequiredValue | ( | DataDescriptionRow * | 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 DataDescriptionRow whose required attributes of the value part will be compared with those of this. |
HolographyRow* asdm::DataDescriptionRow::getHolographyUsingPolOrHoloId | ( | ) |
Returns pointer to the row in the Holograpy table having Holography.holographyId == polOrHoloId.
Links* PolarizationRow* asdm::DataDescriptionRow::getPolarizationUsingPolOrHoloId | ( | ) |
Returns pointer to the row in the Polarization table having Polarization.polarizationId == polOrHoloId.
Tag asdm::DataDescriptionRow::getPulsarId | ( | ) | const |
Get pulsarId, which is optional.
IllegalAccessException | If pulsarId does not exist. |
PulsarRow* asdm::DataDescriptionRow::getPulsarUsingPulsarId | ( | ) |
pulsarId pointer to the row in the Pulsar table having Pulsar.pulsarId == pulsarId
throws IllegalAccessException
Tag asdm::DataDescriptionRow::getSpectralWindowId | ( | ) | const |
SpectralWindowRow* asdm::DataDescriptionRow::getSpectralWindowUsingSpectralWindowId | ( | ) |
spectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.spectralWindowId == spectralWindowId
DataDescriptionTable& asdm::DataDescriptionRow::getTable | ( | ) | const |
Return the table to which this row belongs.
bool asdm::DataDescriptionRow::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.
|
private |
|
private |
|
private |
|
private |
|
private |
Set dataDescriptionId with the specified Tag value.
dataDescriptionId | The Tag value to which dataDescriptionId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::DataDescriptionRow::setFromIDL | ( | asdmIDL::DataDescriptionRowIDL | x | ) |
Fill the values of this row from the IDL struct DataDescriptionRowIDL.
x | The IDL struct containing the values used to fill this row. |
ConversionException |
void asdm::DataDescriptionRow::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::DataDescriptionRow::setPolOrHoloId | ( | Tag | polOrHoloId | ) |
void asdm::DataDescriptionRow::setPulsarId | ( | Tag | pulsarId | ) |
void asdm::DataDescriptionRow::setSpectralWindowId | ( | Tag | spectralWindowId | ) |
|
private |
|
private |
|
private |
Serialize this into a stream of bytes written to an EndianOSStream.
eoss | the EndianOSStream to be written to |
asdmIDL::DataDescriptionRowIDL* asdm::DataDescriptionRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::DataDescriptionRow::toIDL | ( | asdmIDL::DataDescriptionRowIDL & | x | ) | const |
Define the content of a DataDescriptionRowIDL struct from the values found in this row.
x | a reference to the DataDescriptionRowIDL struct to be set. |
std::string asdm::DataDescriptionRow::toXML | ( | ) | const |
Return this row in the form of an XML string.
|
friend |
Definition at line 100 of file DataDescriptionRow.h.
|
friend |
Definition at line 101 of file DataDescriptionRow.h.
Extrinsic Table asdm::DataDescriptionRow::Attributes |
Definition at line 124 of file DataDescriptionRow.h.
Extrinsic Table asdm::DataDescriptionRow::Attributes |
Definition at line 148 of file DataDescriptionRow.h.
|
private |
Definition at line 510 of file DataDescriptionRow.h.
|
private |
Definition at line 522 of file DataDescriptionRow.h.
|
private |
Whether this row has been added to the table or not.
Definition at line 392 of file DataDescriptionRow.h.
|
private |
Definition at line 484 of file DataDescriptionRow.h.
|
private |
===> Attribute pulsarId, which is optional
Definition at line 482 of file DataDescriptionRow.h.
|
private |
===> Attribute spectralWindowId
Definition at line 474 of file DataDescriptionRow.h.
|
private |
The table to which this row belongs.
Definition at line 388 of file DataDescriptionRow.h.