asdm::CalGainRow Class Reference

The CalGainRow class is a row of a CalGainTable. More...

#include <CalGainRow.h>

List of all members.

Public Member Functions

virtual ~CalGainRow ()
 friend class asdm::TableStreamReader<CalGainTable, CalGainRow>;
CalGainTablegetTable () const
 Return the table to which this row belongs.
bool isAdded () const
 Has this row been added to its table ?
void setStartValidTime (ArrayTime startValidTime)
 Set startValidTime with the specified ArrayTime.
ArrayTime getEndValidTime () const
 ===> Attribute endValidTime
void setEndValidTime (ArrayTime endValidTime)
 Set endValidTime with the specified ArrayTime.
float getGain () const
 ===> Attribute gain
void setGain (float gain)
 Set gain with the specified float.
bool getGainValid () const
 ===> Attribute gainValid
void setGainValid (bool gainValid)
 Set gainValid with the specified bool.
float getFit () const
 ===> Attribute fit
void setFit (float fit)
 Set fit with the specified float.
float getFitWeight () const
 ===> Attribute fitWeight
void setFitWeight (float fitWeight)
 Set fitWeight with the specified float.
bool getTotalGainValid () const
 ===> Attribute totalGainValid
void setTotalGainValid (bool totalGainValid)
 Set totalGainValid with the specified bool.
float getTotalFit () const
 ===> Attribute totalFit
void setTotalFit (float totalFit)
 Set totalFit with the specified float.
float getTotalFitWeight () const
 ===> Attribute totalFitWeight
void setTotalFitWeight (float totalFitWeight)
 Set totalFitWeight with the specified float.
void setCalDataId (Tag calDataId)
 Set calDataId with the specified Tag.
Tag getCalReductionId () const
 ===> Attribute calReductionId
void setCalReductionId (Tag calReductionId)
 Set calReductionId with the specified Tag.
Links *CalReductionRowgetCalReductionUsingCalReductionId ()
 calReductionId pointer to the row in the CalReduction table having CalReduction.calReductionId == calReductionId
CalDataRowgetCalDataUsingCalDataId ()
 calDataId pointer to the row in the CalData table having CalData.calDataId == calDataId
bool compareNoAutoInc (Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight)
 Compare each mandatory attribute except the autoincrementable one of this CalGainRow with the corresponding parameters and return true if there is a match and false otherwise.
bool compareRequiredValue (ArrayTime startValidTime, ArrayTime endValidTime, float gain, bool gainValid, float fit, float fitWeight, bool totalGainValid, float totalFit, float totalFitWeight)
 Compare each mandatory value (i.e.
bool equalByRequiredValue (CalGainRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
asdmIDL::CalGainRowIDL * toIDL () const
 Return this row in the form of an IDL struct.
void toIDL (asdmIDL::CalGainRowIDL &x) const
 Define the content of a CalGainRowIDL struct from the values found in this row.
void setFromIDL (asdmIDL::CalGainRowIDL x)
 Fill the values of this row from the IDL struct CalGainRowIDL.
std::string toXML () const
 Return this row in the form of an XML string.
void setFromXML (std::string rowDoc)
 Fill the values of this row from an XML string that was produced by the toXML() method.

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.
 CalGainRow (CalGainTable &table)
 Create a CalGainRow.
 CalGainRow (CalGainTable &table, CalGainRow &row)
 Create a CalGainRow using a copy constructor mechanism.
void calDataIdFromBin (EndianIStream &eis)
void calReductionIdFromBin (EndianIStream &eis)
void startValidTimeFromBin (EndianIStream &eis)
void endValidTimeFromBin (EndianIStream &eis)
void gainFromBin (EndianIStream &eis)
void gainValidFromBin (EndianIStream &eis)
void fitFromBin (EndianIStream &eis)
void fitWeightFromBin (EndianIStream &eis)
void totalGainValidFromBin (EndianIStream &eis)
void totalFitFromBin (EndianIStream &eis)
void totalFitWeightFromBin (EndianIStream &eis)
void calDataIdFromText (const string &s)
void calReductionIdFromText (const string &s)
void startValidTimeFromText (const string &s)
void endValidTimeFromText (const string &s)
void gainFromText (const string &s)
void gainValidFromText (const string &s)
void fitFromText (const string &s)
void fitWeightFromText (const string &s)
void totalGainValidFromText (const string &s)
void totalFitFromText (const string &s)
void totalFitWeightFromText (const string &s)
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream.

Private Attributes

CalGainTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
ArrayTime endValidTime
 ===> Attribute endValidTime
float gain
 ===> Attribute gain
bool gainValid
 ===> Attribute gainValid
float fit
 ===> Attribute fit
float fitWeight
 ===> Attribute fitWeight
bool totalGainValid
 ===> Attribute totalGainValid
float totalFit
 ===> Attribute totalFit
float totalFitWeight
 ===> Attribute totalFitWeight
Tag calReductionId
 ===> Attribute calReductionId
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
CalGainAttributeFromBin
fromBinMethods
*text deserialization material
std::map< std::string,
CalGainAttributeFromText
fromTextMethods

Friends

class asdm::CalGainTable
class asdm::RowTransformer< CalGainRow >

Detailed Description

The CalGainRow class is a row of a CalGainTable.

Generated from model's revision "1.64", branch "HEAD"

Definition at line 114 of file CalGainRow.h.


Constructor & Destructor Documentation

virtual asdm::CalGainRow::~CalGainRow (  )  [virtual]

friend class asdm::TableStreamReader<CalGainTable, CalGainRow>;

asdm::CalGainRow::CalGainRow ( CalGainTable table  )  [private]

Create a CalGainRow.

This constructor is private because only the table can create rows. All rows know the table to which they belong.

Parameters:
table The table to which this row belongs.
asdm::CalGainRow::CalGainRow ( CalGainTable table,
CalGainRow row 
) [private]

Create a CalGainRow using a copy constructor mechanism.

Given a CalGainRow row and a CalGainTable table, the method creates a new CalGainRow 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.

Parameters:
table The table to which this row belongs.
row The row which is to be copied.

Member Function Documentation

void asdm::CalGainRow::calDataIdFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::calDataIdFromText ( const string &  s  )  [private]
void asdm::CalGainRow::calReductionIdFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::calReductionIdFromText ( const string &  s  )  [private]
bool asdm::CalGainRow::compareNoAutoInc ( Tag  calDataId,
Tag  calReductionId,
ArrayTime  startValidTime,
ArrayTime  endValidTime,
float  gain,
bool  gainValid,
float  fit,
float  fitWeight,
bool  totalGainValid,
float  totalFit,
float  totalFitWeight 
)

Compare each mandatory attribute except the autoincrementable one of this CalGainRow with the corresponding parameters and return true if there is a match and false otherwise.

Parameters:
calDataId 
calReductionId 
startValidTime 
endValidTime 
gain 
gainValid 
fit 
fitWeight 
totalGainValid 
totalFit 
totalFitWeight 
bool asdm::CalGainRow::compareRequiredValue ( ArrayTime  startValidTime,
ArrayTime  endValidTime,
float  gain,
bool  gainValid,
float  fit,
float  fitWeight,
bool  totalGainValid,
float  totalFit,
float  totalFitWeight 
)

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.

Parameters:
startValidTime 
endValidTime 
gain 
gainValid 
fit 
fitWeight 
totalGainValid 
totalFit 
totalFitWeight 
void asdm::CalGainRow::endValidTimeFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::endValidTimeFromText ( const string &  s  )  [private]
bool asdm::CalGainRow::equalByRequiredValue ( CalGainRow x  ) 

Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.

Parameters:
x a pointer on the CalGainRow whose required attributes of the value part will be compared with those of this.
Returns:
a boolean.
void asdm::CalGainRow::fitFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::fitFromText ( const string &  s  )  [private]
void asdm::CalGainRow::fitWeightFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::fitWeightFromText ( const string &  s  )  [private]
void asdm::CalGainRow::gainFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::gainFromText ( const string &  s  )  [private]
void asdm::CalGainRow::gainValidFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::gainValidFromText ( const string &  s  )  [private]
CalDataRow* asdm::CalGainRow::getCalDataUsingCalDataId (  ) 

calDataId pointer to the row in the CalData table having CalData.calDataId == calDataId

Returns:
a CalDataRow*
Tag asdm::CalGainRow::getCalReductionId (  )  const

===> Attribute calReductionId

Get calReductionId.

Returns:
calReductionId as Tag
Links* CalReductionRow* asdm::CalGainRow::getCalReductionUsingCalReductionId (  ) 

calReductionId pointer to the row in the CalReduction table having CalReduction.calReductionId == calReductionId

Returns:
a CalReductionRow*
ArrayTime asdm::CalGainRow::getEndValidTime (  )  const

===> Attribute endValidTime

Get endValidTime.

Returns:
endValidTime as ArrayTime
float asdm::CalGainRow::getFit (  )  const

===> Attribute fit

Get fit.

Returns:
fit as float
float asdm::CalGainRow::getFitWeight (  )  const

===> Attribute fitWeight

Get fitWeight.

Returns:
fitWeight as float
float asdm::CalGainRow::getGain (  )  const

===> Attribute gain

Get gain.

Returns:
gain as float
bool asdm::CalGainRow::getGainValid (  )  const

===> Attribute gainValid

Get gainValid.

Returns:
gainValid as bool
CalGainTable& asdm::CalGainRow::getTable (  )  const

Return the table to which this row belongs.

float asdm::CalGainRow::getTotalFit (  )  const

===> Attribute totalFit

Get totalFit.

Returns:
totalFit as float
float asdm::CalGainRow::getTotalFitWeight (  )  const

===> Attribute totalFitWeight

Get totalFitWeight.

Returns:
totalFitWeight as float
bool asdm::CalGainRow::getTotalGainValid (  )  const

===> Attribute totalGainValid

Get totalGainValid.

Returns:
totalGainValid as bool
void asdm::CalGainRow::isAdded ( bool  added  )  [private]

This method is used by the Table class when this row is added to the table.

bool asdm::CalGainRow::isAdded (  )  const

Has this row been added to its table ?

Returns:
true if and only if it has been added.
void asdm::CalGainRow::setCalDataId ( Tag  calDataId  ) 

Set calDataId with the specified Tag.

Parameters:
calDataId The Tag value to which calDataId is to be set.
Exceptions:
IllegalAccessException If an attempt is made to change this field after is has been added to the table.
void asdm::CalGainRow::setCalReductionId ( Tag  calReductionId  ) 

Set calReductionId with the specified Tag.

Parameters:
calReductionId The Tag value to which calReductionId is to be set.
Exceptions:
IllegalAccessException If an attempt is made to change this field after is has been added to the table.
void asdm::CalGainRow::setEndValidTime ( ArrayTime  endValidTime  ) 

Set endValidTime with the specified ArrayTime.

Parameters:
endValidTime The ArrayTime value to which endValidTime is to be set.
void asdm::CalGainRow::setFit ( float  fit  ) 

Set fit with the specified float.

Parameters:
fit The float value to which fit is to be set.
void asdm::CalGainRow::setFitWeight ( float  fitWeight  ) 

Set fitWeight with the specified float.

Parameters:
fitWeight The float value to which fitWeight is to be set.
void asdm::CalGainRow::setFromIDL ( asdmIDL::CalGainRowIDL  x  ) 

Fill the values of this row from the IDL struct CalGainRowIDL.

Parameters:
x The IDL struct containing the values used to fill this row.
Exceptions:
ConversionException 
void asdm::CalGainRow::setFromXML ( std::string  rowDoc  ) 

Fill the values of this row from an XML string that was produced by the toXML() method.

Parameters:
rowDoc the XML string being used to set the values of this row.
Exceptions:
ConversionException 
void asdm::CalGainRow::setGain ( float  gain  ) 

Set gain with the specified float.

Parameters:
gain The float value to which gain is to be set.
void asdm::CalGainRow::setGainValid ( bool  gainValid  ) 

Set gainValid with the specified bool.

Parameters:
gainValid The bool value to which gainValid is to be set.
void asdm::CalGainRow::setStartValidTime ( ArrayTime  startValidTime  ) 

Set startValidTime with the specified ArrayTime.

Parameters:
startValidTime The ArrayTime value to which startValidTime is to be set.
void asdm::CalGainRow::setTotalFit ( float  totalFit  ) 

Set totalFit with the specified float.

Parameters:
totalFit The float value to which totalFit is to be set.
void asdm::CalGainRow::setTotalFitWeight ( float  totalFitWeight  ) 

Set totalFitWeight with the specified float.

Parameters:
totalFitWeight The float value to which totalFitWeight is to be set.
void asdm::CalGainRow::setTotalGainValid ( bool  totalGainValid  ) 

Set totalGainValid with the specified bool.

Parameters:
totalGainValid The bool value to which totalGainValid is to be set.
void asdm::CalGainRow::startValidTimeFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::startValidTimeFromText ( const string &  s  )  [private]
void asdm::CalGainRow::toBin ( EndianOSStream eoss  )  [private]

Serialize this into a stream of bytes written to an EndianOSStream.

Parameters:
eoss the EndianOSStream to be written to
void asdm::CalGainRow::toIDL ( asdmIDL::CalGainRowIDL &  x  )  const

Define the content of a CalGainRowIDL struct from the values found in this row.

Parameters:
x a reference to the CalGainRowIDL struct to be set.
asdmIDL::CalGainRowIDL* asdm::CalGainRow::toIDL (  )  const

Return this row in the form of an IDL struct.

Returns:
The values of this row as a CalGainRowIDL struct.
void asdm::CalGainRow::totalFitFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::totalFitFromText ( const string &  s  )  [private]
void asdm::CalGainRow::totalFitWeightFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::totalFitWeightFromText ( const string &  s  )  [private]
void asdm::CalGainRow::totalGainValidFromBin ( EndianIStream eis  )  [private]
void asdm::CalGainRow::totalGainValidFromText ( const string &  s  )  [private]
std::string asdm::CalGainRow::toXML (  )  const

Return this row in the form of an XML string.

Returns:
The values of this row as an XML string.

Friends And Related Function Documentation

friend class asdm::CalGainTable [friend]

Definition at line 115 of file CalGainRow.h.

friend class asdm::RowTransformer< CalGainRow > [friend]

Definition at line 116 of file CalGainRow.h.


Member Data Documentation

Definition at line 413 of file CalGainRow.h.

Definition at line 139 of file CalGainRow.h.

===> Attribute calReductionId

Definition at line 825 of file CalGainRow.h.

===> Attribute endValidTime

Definition at line 722 of file CalGainRow.h.

float asdm::CalGainRow::fit [private]

===> Attribute fit

Definition at line 755 of file CalGainRow.h.

float asdm::CalGainRow::fitWeight [private]

===> Attribute fitWeight

Definition at line 766 of file CalGainRow.h.

Links* binary deserialization material from an EndianIStream std::map<std::string, CalGainAttributeFromBin> asdm::CalGainRow::fromBinMethods [private]

Definition at line 854 of file CalGainRow.h.

* text deserialization material std::map<std::string, CalGainAttributeFromText> asdm::CalGainRow::fromTextMethods [private]

Definition at line 873 of file CalGainRow.h.

float asdm::CalGainRow::gain [private]

===> Attribute gain

Definition at line 733 of file CalGainRow.h.

===> Attribute gainValid

Definition at line 744 of file CalGainRow.h.

Whether this row has been added to the table or not.

Definition at line 667 of file CalGainRow.h.

The table to which this row belongs.

Definition at line 663 of file CalGainRow.h.

float asdm::CalGainRow::totalFit [private]

===> Attribute totalFit

Definition at line 788 of file CalGainRow.h.

===> Attribute totalFitWeight

Definition at line 799 of file CalGainRow.h.

===> Attribute totalGainValid

Definition at line 777 of file CalGainRow.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1