casa
5.7.0-16
|
The MainRow class is a row of a MainTable. More...
#include <MainRow.h>
Public Member Functions | |
virtual | ~MainRow () |
friend class asdm::TableStreamReader<MainTable, MainRow>; More... | |
MainTable & | getTable () const |
Return the table to which this row belongs. More... | |
bool | isAdded () const |
Has this row been added to its table ? More... | |
void | setTime (ArrayTime time) |
Set time with the specified ArrayTime. More... | |
int | getNumAntenna () const |
===> Attribute numAntenna More... | |
void | setNumAntenna (int numAntenna) |
Set numAntenna with the specified int. More... | |
TimeSamplingMod::TimeSampling | getTimeSampling () const |
===> Attribute timeSampling More... | |
void | setTimeSampling (TimeSamplingMod::TimeSampling timeSampling) |
Set timeSampling with the specified TimeSamplingMod::TimeSampling. More... | |
Interval | getInterval () const |
===> Attribute interval More... | |
void | setInterval (Interval interval) |
Set interval with the specified Interval. More... | |
int | getNumIntegration () const |
===> Attribute numIntegration More... | |
void | setNumIntegration (int numIntegration) |
Set numIntegration with the specified int. More... | |
int | getScanNumber () const |
===> Attribute scanNumber More... | |
void | setScanNumber (int scanNumber) |
Set scanNumber with the specified int. More... | |
int | getSubscanNumber () const |
===> Attribute subscanNumber More... | |
void | setSubscanNumber (int subscanNumber) |
Set subscanNumber with the specified int. More... | |
int64_t | getDataSize () const |
===> Attribute dataSize More... | |
void | setDataSize (int64_t dataSize) |
Set dataSize with the specified int64_t. More... | |
EntityRef | getDataUID () const |
===> Attribute dataUID More... | |
void | setDataUID (EntityRef dataUID) |
Set dataUID with the specified EntityRef. More... | |
void | setConfigDescriptionId (Tag configDescriptionId) |
Set configDescriptionId with the specified Tag. More... | |
Tag | getExecBlockId () const |
===> Attribute execBlockId More... | |
void | setExecBlockId (Tag execBlockId) |
Set execBlockId with the specified Tag. More... | |
Tag | getFieldId () const |
===> Attribute fieldId More... | |
void | setFieldId (Tag fieldId) |
Set fieldId with the specified Tag. More... | |
std::vector< Tag > | getStateId () const |
===> Attribute stateId More... | |
void | setStateId (std::vector< Tag > stateId) |
Set stateId with the specified std::vector<Tag> . More... | |
Links *ConfigDescriptionRow * | getConfigDescriptionUsingConfigDescriptionId () |
configDescriptionId pointer to the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId More... | |
FieldRow * | getFieldUsingFieldId () |
fieldId pointer to the row in the Field table having Field.fieldId == fieldId More... | |
void | setStateId (int i, Tag stateId) |
Set stateId[i] with the specified Tag. More... | |
void | addStateId (Tag id) |
Append a Tag to stateId. More... | |
void | addStateId (const std::vector< Tag > &id) |
Append a vector of Tag to stateId. More... | |
const Tag | getStateId (int i) |
Returns the Tag stored in stateId at position i. More... | |
StateRow * | getStateUsingStateId (int i) |
Returns the StateRow linked to this row via the tag stored in stateId at position i. More... | |
std::vector< StateRow * > | getStatesUsingStateId () |
Returns the vector of StateRow* linked to this row via the Tags stored in stateId. More... | |
ExecBlockRow * | getExecBlockUsingExecBlockId () |
execBlockId pointer to the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId More... | |
bool | compareNoAutoInc (ArrayTime time, Tag configDescriptionId, Tag fieldId, int numAntenna, TimeSamplingMod::TimeSampling timeSampling, Interval interval, int numIntegration, int scanNumber, int subscanNumber, int64_t dataSize, EntityRef dataUID, std::vector< Tag > stateId, Tag execBlockId) |
Compare each mandatory attribute except the autoincrementable one of this MainRow with the corresponding parameters and return true if there is a match and false otherwise. More... | |
bool | compareRequiredValue (int numAntenna, TimeSamplingMod::TimeSampling timeSampling, Interval interval, int numIntegration, int scanNumber, int subscanNumber, int64_t dataSize, EntityRef dataUID, std::vector< Tag > stateId, Tag execBlockId) |
Compare each mandatory value (i.e. More... | |
bool | equalByRequiredValue (MainRow *x) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More... | |
asdmIDL::MainRowIDL * | toIDL () const |
Return this row in the form of an IDL struct. More... | |
void | toIDL (asdmIDL::MainRowIDL &x) const |
Define the content of a MainRowIDL struct from the values found in this row. More... | |
void | setFromIDL (asdmIDL::MainRowIDL x) |
Fill the values of this row from the IDL struct MainRowIDL. 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... | |
MainRow (MainTable &table) | |
Create a MainRow. More... | |
MainRow (MainTable &table, MainRow *row) | |
Create a MainRow using a copy constructor mechanism. More... | |
void | timeFromBin (EndianIStream &eis) |
void | configDescriptionIdFromBin (EndianIStream &eis) |
void | fieldIdFromBin (EndianIStream &eis) |
void | numAntennaFromBin (EndianIStream &eis) |
void | timeSamplingFromBin (EndianIStream &eis) |
void | intervalFromBin (EndianIStream &eis) |
void | numIntegrationFromBin (EndianIStream &eis) |
void | scanNumberFromBin (EndianIStream &eis) |
void | subscanNumberFromBin (EndianIStream &eis) |
void | dataSizeFromBin (EndianIStream &eis) |
void | dataUIDFromBin (EndianIStream &eis) |
void | stateIdFromBin (EndianIStream &eis) |
void | execBlockIdFromBin (EndianIStream &eis) |
void | timeFromText (const std::string &s) |
void | configDescriptionIdFromText (const std::string &s) |
void | fieldIdFromText (const std::string &s) |
void | numAntennaFromText (const std::string &s) |
void | timeSamplingFromText (const std::string &s) |
void | intervalFromText (const std::string &s) |
void | numIntegrationFromText (const std::string &s) |
void | scanNumberFromText (const std::string &s) |
void | subscanNumberFromText (const std::string &s) |
void | dataSizeFromText (const std::string &s) |
void | stateIdFromText (const std::string &s) |
void | execBlockIdFromText (const std::string &s) |
void | toBin (EndianOSStream &eoss) |
Serialize this into a stream of bytes written to an EndianOSStream. More... | |
Private Attributes | |
MainTable & | table |
The table to which this row belongs. More... | |
bool | hasBeenAdded |
Whether this row has been added to the table or not. More... | |
int | numAntenna |
===> Attribute numAntenna More... | |
TimeSamplingMod::TimeSampling | timeSampling |
===> Attribute timeSampling More... | |
Interval | interval |
===> Attribute interval More... | |
int | numIntegration |
===> Attribute numIntegration More... | |
int | scanNumber |
===> Attribute scanNumber More... | |
int | subscanNumber |
===> Attribute subscanNumber More... | |
int64_t | dataSize |
===> Attribute dataSize More... | |
EntityRef | dataUID |
===> Attribute dataUID More... | |
Tag | execBlockId |
===> Attribute execBlockId More... | |
Tag | fieldId |
===> Attribute fieldId More... | |
std::vector< Tag > | stateId |
===> Attribute stateId More... | |
Links *binary deserialization material from an EndianIStream std::map< std::string, MainAttributeFromBin > | fromBinMethods |
*text deserialization material std::map< std::string, MainAttributeFromText > | fromTextMethods |
Friends | |
class | asdm::MainTable |
class | asdm::RowTransformer< MainRow > |
|
virtual |
friend class asdm::TableStreamReader<MainTable, MainRow>;
|
private |
Create a MainRow.
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 MainRow using a copy constructor mechanism.
Given a MainRow row and a MainTable table, the method creates a new MainRow 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::MainRow::addStateId | ( | Tag | id | ) |
void asdm::MainRow::addStateId | ( | const std::vector< Tag > & | id | ) |
bool asdm::MainRow::compareNoAutoInc | ( | ArrayTime | time, |
Tag | configDescriptionId, | ||
Tag | fieldId, | ||
int | numAntenna, | ||
TimeSamplingMod::TimeSampling | timeSampling, | ||
Interval | interval, | ||
int | numIntegration, | ||
int | scanNumber, | ||
int | subscanNumber, | ||
int64_t | dataSize, | ||
EntityRef | dataUID, | ||
std::vector< Tag > | stateId, | ||
Tag | execBlockId | ||
) |
Compare each mandatory attribute except the autoincrementable one of this MainRow with the corresponding parameters and return true if there is a match and false otherwise.
time | |
configDescriptionId | |
fieldId | |
numAntenna | |
timeSampling | |
interval | |
numIntegration | |
scanNumber | |
subscanNumber | |
dataSize | |
dataUID | |
stateId | |
execBlockId |
bool asdm::MainRow::compareRequiredValue | ( | int | numAntenna, |
TimeSamplingMod::TimeSampling | timeSampling, | ||
Interval | interval, | ||
int | numIntegration, | ||
int | scanNumber, | ||
int | subscanNumber, | ||
int64_t | dataSize, | ||
EntityRef | dataUID, | ||
std::vector< Tag > | stateId, | ||
Tag | execBlockId | ||
) |
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.
numAntenna | |
timeSampling | |
interval | |
numIntegration | |
scanNumber | |
subscanNumber | |
dataSize | |
dataUID | |
stateId | |
execBlockId |
|
private |
|
private |
|
private |
|
private |
|
private |
bool asdm::MainRow::equalByRequiredValue | ( | MainRow * | 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 MainRow whose required attributes of the value part will be compared with those of this. |
|
private |
|
private |
|
private |
|
private |
Links* ConfigDescriptionRow* asdm::MainRow::getConfigDescriptionUsingConfigDescriptionId | ( | ) |
configDescriptionId pointer to the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId
int64_t asdm::MainRow::getDataSize | ( | ) | const |
===> Attribute dataSize
Get dataSize.
EntityRef asdm::MainRow::getDataUID | ( | ) | const |
Tag asdm::MainRow::getExecBlockId | ( | ) | const |
ExecBlockRow* asdm::MainRow::getExecBlockUsingExecBlockId | ( | ) |
execBlockId pointer to the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId
FieldRow* asdm::MainRow::getFieldUsingFieldId | ( | ) |
fieldId pointer to the row in the Field table having Field.fieldId == fieldId
Interval asdm::MainRow::getInterval | ( | ) | const |
int asdm::MainRow::getNumAntenna | ( | ) | const |
===> Attribute numAntenna
Get numAntenna.
int asdm::MainRow::getNumIntegration | ( | ) | const |
===> Attribute numIntegration
Get numIntegration.
int asdm::MainRow::getScanNumber | ( | ) | const |
===> Attribute scanNumber
Get scanNumber.
std::vector<Tag> asdm::MainRow::getStateId | ( | ) | const |
===> Attribute stateId
Get stateId.
const Tag asdm::MainRow::getStateId | ( | int | i | ) |
std::vector<StateRow *> asdm::MainRow::getStatesUsingStateId | ( | ) |
Returns the vector of StateRow* linked to this row via the Tags stored in stateId.
StateRow* asdm::MainRow::getStateUsingStateId | ( | int | i | ) |
int asdm::MainRow::getSubscanNumber | ( | ) | const |
===> Attribute subscanNumber
Get subscanNumber.
MainTable& asdm::MainRow::getTable | ( | ) | const |
Return the table to which this row belongs.
TimeSamplingMod::TimeSampling asdm::MainRow::getTimeSampling | ( | ) | const |
===> Attribute timeSampling
Get timeSampling.
|
private |
|
private |
bool asdm::MainRow::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 |
|
private |
void asdm::MainRow::setConfigDescriptionId | ( | Tag | configDescriptionId | ) |
Set configDescriptionId with the specified Tag.
configDescriptionId | The Tag value to which configDescriptionId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::MainRow::setDataSize | ( | int64_t | dataSize | ) |
Set dataSize with the specified int64_t.
dataSize | The int64_t value to which dataSize is to be set. |
void asdm::MainRow::setDataUID | ( | EntityRef | dataUID | ) |
void asdm::MainRow::setExecBlockId | ( | Tag | execBlockId | ) |
void asdm::MainRow::setFieldId | ( | Tag | fieldId | ) |
Set fieldId with the specified Tag.
fieldId | The Tag value to which fieldId is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::MainRow::setFromIDL | ( | asdmIDL::MainRowIDL | x | ) |
Fill the values of this row from the IDL struct MainRowIDL.
x | The IDL struct containing the values used to fill this row. |
ConversionException |
void asdm::MainRow::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::MainRow::setInterval | ( | Interval | interval | ) |
void asdm::MainRow::setNumAntenna | ( | int | numAntenna | ) |
Set numAntenna with the specified int.
numAntenna | The int value to which numAntenna is to be set. |
void asdm::MainRow::setNumIntegration | ( | int | numIntegration | ) |
Set numIntegration with the specified int.
numIntegration | The int value to which numIntegration is to be set. |
void asdm::MainRow::setScanNumber | ( | int | scanNumber | ) |
Set scanNumber with the specified int.
scanNumber | The int value to which scanNumber is to be set. |
void asdm::MainRow::setStateId | ( | std::vector< Tag > | stateId | ) |
Set stateId with the specified std::vector<Tag> .
stateId | The std::vector<Tag> value to which stateId is to be set. |
void asdm::MainRow::setStateId | ( | int | i, |
Tag | stateId | ||
) |
void asdm::MainRow::setSubscanNumber | ( | int | subscanNumber | ) |
Set subscanNumber with the specified int.
subscanNumber | The int value to which subscanNumber is to be set. |
void asdm::MainRow::setTime | ( | ArrayTime | time | ) |
Set time with the specified ArrayTime.
time | The ArrayTime value to which time is to be set. |
IllegalAccessException | If an attempt is made to change this field after is has been added to the table. |
void asdm::MainRow::setTimeSampling | ( | TimeSamplingMod::TimeSampling | timeSampling | ) |
Set timeSampling with the specified TimeSamplingMod::TimeSampling.
timeSampling | The TimeSamplingMod::TimeSampling value to which timeSampling is to be set. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Serialize this into a stream of bytes written to an EndianOSStream.
eoss | the EndianOSStream to be written to |
asdmIDL::MainRowIDL* asdm::MainRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::MainRow::toIDL | ( | asdmIDL::MainRowIDL & | x | ) | const |
Define the content of a MainRowIDL struct from the values found in this row.
x | a reference to the MainRowIDL struct to be set. |
std::string asdm::MainRow::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 |