casa
5.7.0-16
|
The FieldRow class is a row of a FieldTable. More...
#include <FieldRow.h>
Public Member Functions | |
virtual | ~FieldRow () |
friend class asdm::TableStreamReader<FieldTable, FieldRow>; More... | |
FieldTable & | getTable () const |
Return the table to which this row belongs. More... | |
bool | isAdded () const |
Has this row been added to its table ? More... | |
std::string | getFieldName () const |
===> Attribute fieldName More... | |
void | setFieldName (std::string fieldName) |
Set fieldName with the specified std::string. More... | |
int | getNumPoly () const |
===> Attribute numPoly More... | |
void | setNumPoly (int numPoly) |
Set numPoly with the specified int. More... | |
std::vector< std::vector< Angle > > | getDelayDir () const |
===> Attribute delayDir More... | |
void | setDelayDir (std::vector< std::vector< Angle > > delayDir) |
Set delayDir with the specified std::vector<std::vector<Angle > >. More... | |
std::vector< std::vector< Angle > > | getPhaseDir () const |
===> Attribute phaseDir More... | |
void | setPhaseDir (std::vector< std::vector< Angle > > phaseDir) |
Set phaseDir with the specified std::vector<std::vector<Angle > >. More... | |
std::vector< std::vector< Angle > > | getReferenceDir () const |
===> Attribute referenceDir More... | |
void | setReferenceDir (std::vector< std::vector< Angle > > referenceDir) |
Set referenceDir with the specified std::vector<std::vector<Angle > >. More... | |
bool | isTimeExists () const |
===> Attribute time, which is optional More... | |
ArrayTime | getTime () const |
Get time, which is optional. More... | |
void | setTime (ArrayTime time) |
Set time with the specified ArrayTime. More... | |
void | clearTime () |
Mark time, which is an optional field, as non-existent. More... | |
bool | isCodeExists () const |
===> Attribute code, which is optional More... | |
std::string | getCode () const |
Get code, which is optional. More... | |
void | setCode (std::string code) |
Set code with the specified std::string. More... | |
void | clearCode () |
Mark code, which is an optional field, as non-existent. More... | |
bool | isDirectionCodeExists () const |
===> Attribute directionCode, which is optional More... | |
DirectionReferenceCodeMod::DirectionReferenceCode | getDirectionCode () const |
Get directionCode, which is optional. More... | |
void | setDirectionCode (DirectionReferenceCodeMod::DirectionReferenceCode directionCode) |
Set directionCode with the specified DirectionReferenceCodeMod::DirectionReferenceCode. More... | |
void | clearDirectionCode () |
Mark directionCode, which is an optional field, as non-existent. More... | |
bool | isDirectionEquinoxExists () const |
===> Attribute directionEquinox, which is optional More... | |
ArrayTime | getDirectionEquinox () const |
Get directionEquinox, which is optional. More... | |
void | setDirectionEquinox (ArrayTime directionEquinox) |
Set directionEquinox with the specified ArrayTime. More... | |
void | clearDirectionEquinox () |
Mark directionEquinox, which is an optional field, as non-existent. More... | |
bool | isAssocNatureExists () const |
===> Attribute assocNature, which is optional More... | |
std::string | getAssocNature () const |
Get assocNature, which is optional. More... | |
void | setAssocNature (std::string assocNature) |
Set assocNature with the specified std::string. More... | |
void | clearAssocNature () |
Mark assocNature, which is an optional field, as non-existent. More... | |
Tag | getAssocFieldId () const |
Get assocFieldId, which is optional. More... | |
void | setAssocFieldId (Tag assocFieldId) |
Set assocFieldId with the specified Tag. More... | |
void | clearAssocFieldId () |
Mark assocFieldId, which is an optional field, as non-existent. More... | |
bool | isEphemerisIdExists () const |
===> Attribute ephemerisId, which is optional More... | |
int | getEphemerisId () const |
Get ephemerisId, which is optional. More... | |
void | setEphemerisId (int ephemerisId) |
Set ephemerisId with the specified int. More... | |
void | clearEphemerisId () |
Mark ephemerisId, which is an optional field, as non-existent. More... | |
bool | isSourceIdExists () const |
===> Attribute sourceId, which is optional More... | |
int | getSourceId () const |
Get sourceId, which is optional. More... | |
void | setSourceId (int sourceId) |
Set sourceId with the specified int. More... | |
void | clearSourceId () |
Mark sourceId, which is an optional field, as non-existent. More... | |
std::vector< SourceRow * > | getSources () |
===> Slice link from a row of Field table to a collection of row of Source table. More... | |
FieldRow * | getFieldUsingAssocFieldId () |
assocFieldId pointer to the row in the Field table having Field.assocFieldId == assocFieldId More... | |
bool | compareNoAutoInc (std::string fieldName, int numPoly, std::vector< std::vector< Angle > > delayDir, std::vector< std::vector< Angle > > phaseDir, std::vector< std::vector< Angle > > referenceDir) |
Compare each mandatory attribute except the autoincrementable one of this FieldRow with the corresponding parameters and return true if there is a match and false otherwise. More... | |
bool | compareRequiredValue (std::string fieldName, int numPoly, std::vector< std::vector< Angle > > delayDir, std::vector< std::vector< Angle > > phaseDir, std::vector< std::vector< Angle > > referenceDir) |
Compare each mandatory value (i.e. More... | |
bool | equalByRequiredValue (FieldRow *x) |
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More... | |
asdmIDL::FieldRowIDL * | toIDL () const |
Return this row in the form of an IDL struct. More... | |
void | toIDL (asdmIDL::FieldRowIDL &x) const |
Define the content of a FieldRowIDL struct from the values found in this row. More... | |
void | setFromIDL (asdmIDL::FieldRowIDL x) |
Fill the values of this row from the IDL struct FieldRowIDL. 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 |
Links | |
Private Member Functions | |
void | isAdded (bool added) |
This method is used by the Table class when this row is added to the table. More... | |
FieldRow (FieldTable &table) | |
Create a FieldRow. More... | |
FieldRow (FieldTable &table, FieldRow *row) | |
Create a FieldRow using a copy constructor mechanism. More... | |
void | setFieldId (Tag fieldId) |
Set fieldId with the specified Tag value. More... | |
void | fieldIdFromBin (EndianIStream &eis) |
void | fieldNameFromBin (EndianIStream &eis) |
void | numPolyFromBin (EndianIStream &eis) |
void | delayDirFromBin (EndianIStream &eis) |
void | phaseDirFromBin (EndianIStream &eis) |
void | referenceDirFromBin (EndianIStream &eis) |
void | timeFromBin (EndianIStream &eis) |
void | codeFromBin (EndianIStream &eis) |
void | directionCodeFromBin (EndianIStream &eis) |
void | directionEquinoxFromBin (EndianIStream &eis) |
void | assocNatureFromBin (EndianIStream &eis) |
void | ephemerisIdFromBin (EndianIStream &eis) |
void | sourceIdFromBin (EndianIStream &eis) |
void | assocFieldIdFromBin (EndianIStream &eis) |
void | fieldIdFromText (const std::string &s) |
void | fieldNameFromText (const std::string &s) |
void | numPolyFromText (const std::string &s) |
void | delayDirFromText (const std::string &s) |
void | phaseDirFromText (const std::string &s) |
void | referenceDirFromText (const std::string &s) |
void | timeFromText (const std::string &s) |
void | codeFromText (const std::string &s) |
void | directionCodeFromText (const std::string &s) |
void | directionEquinoxFromText (const std::string &s) |
void | assocNatureFromText (const std::string &s) |
void | ephemerisIdFromText (const std::string &s) |
void | sourceIdFromText (const std::string &s) |
void | assocFieldIdFromText (const std::string &s) |
void | toBin (EndianOSStream &eoss) |
Serialize this into a stream of bytes written to an EndianOSStream. More... | |
Private Attributes | |
FieldTable & | table |
The table to which this row belongs. More... | |
bool | hasBeenAdded |
Whether this row has been added to the table or not. More... | |
std::string | fieldName |
===> Attribute fieldName More... | |
int | numPoly |
===> Attribute numPoly More... | |
std::vector< std::vector< Angle > > | delayDir |
===> Attribute delayDir More... | |
std::vector< std::vector< Angle > > | phaseDir |
===> Attribute phaseDir More... | |
std::vector< std::vector< Angle > > | referenceDir |
===> Attribute referenceDir More... | |
bool | timeExists |
===> Attribute time, which is optional More... | |
ArrayTime | time |
bool | codeExists |
===> Attribute code, which is optional More... | |
std::string | code |
bool | directionCodeExists |
===> Attribute directionCode, which is optional More... | |
DirectionReferenceCodeMod::DirectionReferenceCode | directionCode |
bool | directionEquinoxExists |
===> Attribute directionEquinox, which is optional More... | |
ArrayTime | directionEquinox |
bool | assocNatureExists |
===> Attribute assocNature, which is optional More... | |
std::string | assocNature |
Tag | assocFieldId |
bool | ephemerisIdExists |
===> Attribute ephemerisId, which is optional More... | |
int | ephemerisId |
bool | sourceIdExists |
===> Attribute sourceId, which is optional More... | |
int | sourceId |
Links *binary deserialization material from an EndianIStream std::map< std::string, FieldAttributeFromBin > | fromBinMethods |
*text deserialization material std::map< std::string, FieldAttributeFromText > | fromTextMethods |
Friends | |
class | asdm::FieldTable |
class | asdm::RowTransformer< FieldRow > |
The FieldRow class is a row of a FieldTable.
Generated from model's revision "-1", branch ""
Definition at line 127 of file FieldRow.h.
|
virtual |
friend class asdm::TableStreamReader<FieldTable, FieldRow>;
|
private |
Create a FieldRow.
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 FieldRow using a copy constructor mechanism.
Given a FieldRow row and a FieldTable table, the method creates a new FieldRow 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 |
void asdm::FieldRow::clearAssocFieldId | ( | ) |
Mark assocFieldId, which is an optional field, as non-existent.
void asdm::FieldRow::clearAssocNature | ( | ) |
Mark assocNature, which is an optional field, as non-existent.
void asdm::FieldRow::clearCode | ( | ) |
Mark code, which is an optional field, as non-existent.
void asdm::FieldRow::clearDirectionCode | ( | ) |
Mark directionCode, which is an optional field, as non-existent.
void asdm::FieldRow::clearDirectionEquinox | ( | ) |
Mark directionEquinox, which is an optional field, as non-existent.
void asdm::FieldRow::clearEphemerisId | ( | ) |
Mark ephemerisId, which is an optional field, as non-existent.
void asdm::FieldRow::clearSourceId | ( | ) |
Mark sourceId, which is an optional field, as non-existent.
void asdm::FieldRow::clearTime | ( | ) |
Mark time, which is an optional field, as non-existent.
|
private |
|
private |
bool asdm::FieldRow::compareNoAutoInc | ( | std::string | fieldName, |
int | numPoly, | ||
std::vector< std::vector< Angle > > | delayDir, | ||
std::vector< std::vector< Angle > > | phaseDir, | ||
std::vector< std::vector< Angle > > | referenceDir | ||
) |
Compare each mandatory attribute except the autoincrementable one of this FieldRow with the corresponding parameters and return true if there is a match and false otherwise.
fieldName | |
numPoly | |
delayDir | |
phaseDir | |
referenceDir |
bool asdm::FieldRow::compareRequiredValue | ( | std::string | fieldName, |
int | numPoly, | ||
std::vector< std::vector< Angle > > | delayDir, | ||
std::vector< std::vector< Angle > > | phaseDir, | ||
std::vector< std::vector< Angle > > | referenceDir | ||
) |
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.
fieldName | |
numPoly | |
delayDir | |
phaseDir | |
referenceDir |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
bool asdm::FieldRow::equalByRequiredValue | ( | FieldRow * | 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 FieldRow whose required attributes of the value part will be compared with those of this. |
|
private |
|
private |
|
private |
|
private |
Tag asdm::FieldRow::getAssocFieldId | ( | ) | const |
Get assocFieldId, which is optional.
IllegalAccessException | If assocFieldId does not exist. |
std::string asdm::FieldRow::getAssocNature | ( | ) | const |
Get assocNature, which is optional.
IllegalAccessException | If assocNature does not exist. |
std::string asdm::FieldRow::getCode | ( | ) | const |
Get code, which is optional.
IllegalAccessException | If code does not exist. |
std::vector<std::vector<Angle > > asdm::FieldRow::getDelayDir | ( | ) | const |
===> Attribute delayDir
Get delayDir.
DirectionReferenceCodeMod::DirectionReferenceCode asdm::FieldRow::getDirectionCode | ( | ) | const |
Get directionCode, which is optional.
IllegalAccessException | If directionCode does not exist. |
ArrayTime asdm::FieldRow::getDirectionEquinox | ( | ) | const |
Get directionEquinox, which is optional.
IllegalAccessException | If directionEquinox does not exist. |
int asdm::FieldRow::getEphemerisId | ( | ) | const |
Get ephemerisId, which is optional.
IllegalAccessException | If ephemerisId does not exist. |
std::string asdm::FieldRow::getFieldName | ( | ) | const |
===> Attribute fieldName
Get fieldName.
FieldRow* asdm::FieldRow::getFieldUsingAssocFieldId | ( | ) |
assocFieldId pointer to the row in the Field table having Field.assocFieldId == assocFieldId
throws IllegalAccessException
int asdm::FieldRow::getNumPoly | ( | ) | const |
===> Attribute numPoly
Get numPoly.
std::vector<std::vector<Angle > > asdm::FieldRow::getPhaseDir | ( | ) | const |
===> Attribute phaseDir
Get phaseDir.
std::vector<std::vector<Angle > > asdm::FieldRow::getReferenceDir | ( | ) | const |
===> Attribute referenceDir
Get referenceDir.
int asdm::FieldRow::getSourceId | ( | ) | const |
Get sourceId, which is optional.
IllegalAccessException | If sourceId does not exist. |
std::vector<SourceRow *> asdm::FieldRow::getSources | ( | ) |
===> Slice link from a row of Field table to a collection of row of Source table.
Get the collection of row in the Source table having sourceId == this.sourceId
FieldTable& asdm::FieldRow::getTable | ( | ) | const |
Return the table to which this row belongs.
ArrayTime asdm::FieldRow::getTime | ( | ) | const |
Get time, which is optional.
IllegalAccessException | If time does not exist. |
bool asdm::FieldRow::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::FieldRow::isAssocNatureExists | ( | ) | const |
===> Attribute assocNature, which is optional
The attribute assocNature is optional. Return true if this attribute exists.
bool asdm::FieldRow::isCodeExists | ( | ) | const |
===> Attribute code, which is optional
The attribute code is optional. Return true if this attribute exists.
bool asdm::FieldRow::isDirectionCodeExists | ( | ) | const |
===> Attribute directionCode, which is optional
The attribute directionCode is optional. Return true if this attribute exists.
bool asdm::FieldRow::isDirectionEquinoxExists | ( | ) | const |
===> Attribute directionEquinox, which is optional
The attribute directionEquinox is optional. Return true if this attribute exists.
bool asdm::FieldRow::isEphemerisIdExists | ( | ) | const |
===> Attribute ephemerisId, which is optional
The attribute ephemerisId is optional. Return true if this attribute exists.
bool asdm::FieldRow::isSourceIdExists | ( | ) | const |
===> Attribute sourceId, which is optional
The attribute sourceId is optional. Return true if this attribute exists.
bool asdm::FieldRow::isTimeExists | ( | ) | const |
===> Attribute time, which is optional
The attribute time is optional. Return true if this attribute exists.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void asdm::FieldRow::setAssocFieldId | ( | Tag | assocFieldId | ) |
void asdm::FieldRow::setAssocNature | ( | std::string | assocNature | ) |
Set assocNature with the specified std::string.
assocNature | The std::string value to which assocNature is to be set. |
void asdm::FieldRow::setCode | ( | std::string | code | ) |
Set code with the specified std::string.
code | The std::string value to which code is to be set. |
void asdm::FieldRow::setDelayDir | ( | std::vector< std::vector< Angle > > | delayDir | ) |
Set delayDir with the specified std::vector<std::vector<Angle > >.
delayDir | The std::vector<std::vector<Angle > > value to which delayDir is to be set. |
void asdm::FieldRow::setDirectionCode | ( | DirectionReferenceCodeMod::DirectionReferenceCode | directionCode | ) |
Set directionCode with the specified DirectionReferenceCodeMod::DirectionReferenceCode.
directionCode | The DirectionReferenceCodeMod::DirectionReferenceCode value to which directionCode is to be set. |
void asdm::FieldRow::setDirectionEquinox | ( | ArrayTime | directionEquinox | ) |
void asdm::FieldRow::setEphemerisId | ( | int | ephemerisId | ) |
Set ephemerisId with the specified int.
ephemerisId | The int value to which ephemerisId is to be set. |
|
private |
Set fieldId with the specified Tag value.
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::FieldRow::setFieldName | ( | std::string | fieldName | ) |
Set fieldName with the specified std::string.
fieldName | The std::string value to which fieldName is to be set. |
void asdm::FieldRow::setFromIDL | ( | asdmIDL::FieldRowIDL | x | ) |
Fill the values of this row from the IDL struct FieldRowIDL.
x | The IDL struct containing the values used to fill this row. |
ConversionException |
void asdm::FieldRow::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::FieldRow::setNumPoly | ( | int | numPoly | ) |
Set numPoly with the specified int.
numPoly | The int value to which numPoly is to be set. |
void asdm::FieldRow::setPhaseDir | ( | std::vector< std::vector< Angle > > | phaseDir | ) |
Set phaseDir with the specified std::vector<std::vector<Angle > >.
phaseDir | The std::vector<std::vector<Angle > > value to which phaseDir is to be set. |
void asdm::FieldRow::setReferenceDir | ( | std::vector< std::vector< Angle > > | referenceDir | ) |
Set referenceDir with the specified std::vector<std::vector<Angle > >.
referenceDir | The std::vector<std::vector<Angle > > value to which referenceDir is to be set. |
void asdm::FieldRow::setSourceId | ( | int | sourceId | ) |
Set sourceId with the specified int.
sourceId | The int value to which sourceId is to be set. |
void asdm::FieldRow::setTime | ( | ArrayTime | time | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
Serialize this into a stream of bytes written to an EndianOSStream.
eoss | the EndianOSStream to be written to |
asdmIDL::FieldRowIDL* asdm::FieldRow::toIDL | ( | ) | const |
Return this row in the form of an IDL struct.
void asdm::FieldRow::toIDL | ( | asdmIDL::FieldRowIDL & | x | ) | const |
Define the content of a FieldRowIDL struct from the values found in this row.
x | a reference to the FieldRowIDL struct to be set. |
std::string asdm::FieldRow::toXML | ( | ) | const |
Return this row in the form of an XML string.
|
friend |
Definition at line 128 of file FieldRow.h.
|
friend |
Definition at line 129 of file FieldRow.h.
|
private |
Definition at line 1041 of file FieldRow.h.
|
private |
Definition at line 1024 of file FieldRow.h.
|
private |
===> Attribute assocNature, which is optional
Definition at line 1021 of file FieldRow.h.
Extrinsic Table asdm::FieldRow::Attributes |
Definition at line 152 of file FieldRow.h.
Extrinsic Table asdm::FieldRow::Attributes |
Definition at line 531 of file FieldRow.h.
|
private |
Definition at line 985 of file FieldRow.h.
|
private |
===> Attribute code, which is optional
Definition at line 982 of file FieldRow.h.
|
private |
===> Attribute delayDir
Definition at line 937 of file FieldRow.h.
|
private |
Definition at line 998 of file FieldRow.h.
|
private |
===> Attribute directionCode, which is optional
Definition at line 995 of file FieldRow.h.
|
private |
Definition at line 1011 of file FieldRow.h.
|
private |
===> Attribute directionEquinox, which is optional
Definition at line 1008 of file FieldRow.h.
|
private |
Definition at line 1054 of file FieldRow.h.
|
private |
===> Attribute ephemerisId, which is optional
Definition at line 1051 of file FieldRow.h.
|
private |
===> Attribute fieldName
Definition at line 915 of file FieldRow.h.
|
private |
Definition at line 1101 of file FieldRow.h.
|
private |
Definition at line 1123 of file FieldRow.h.
|
private |
Whether this row has been added to the table or not.
Definition at line 848 of file FieldRow.h.
asdm::FieldRow::Links |
Definition at line 661 of file FieldRow.h.
|
private |
===> Attribute numPoly
Definition at line 926 of file FieldRow.h.
|
private |
===> Attribute phaseDir
Definition at line 948 of file FieldRow.h.
|
private |
===> Attribute referenceDir
Definition at line 959 of file FieldRow.h.
|
private |
Definition at line 1067 of file FieldRow.h.
|
private |
===> Attribute sourceId, which is optional
Definition at line 1064 of file FieldRow.h.
|
private |
The table to which this row belongs.
Definition at line 844 of file FieldRow.h.
|
private |
Definition at line 972 of file FieldRow.h.
|
private |
===> Attribute time, which is optional
Definition at line 969 of file FieldRow.h.