casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
asdm::MainRow Class Reference

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...
 
MainTablegetTable () 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< TaggetStateId () const
 ===> Attribute stateId More...
 
void setStateId (std::vector< Tag > stateId)
 Set stateId with the specified std::vector<Tag> . More...
 
Links *ConfigDescriptionRowgetConfigDescriptionUsingConfigDescriptionId ()
 configDescriptionId pointer to the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId More...
 
FieldRowgetFieldUsingFieldId ()
 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...
 
StateRowgetStateUsingStateId (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...
 
ExecBlockRowgetExecBlockUsingExecBlockId ()
 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

MainTabletable
 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< TagstateId
 ===> 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 >
 

Detailed Description

The MainRow class is a row of a MainTable.

Generated from model's revision "-1", branch ""

Definition at line 132 of file MainRow.h.

Constructor & Destructor Documentation

virtual asdm::MainRow::~MainRow ( )
virtual

friend class asdm::TableStreamReader<MainTable, MainRow>;

asdm::MainRow::MainRow ( MainTable table)
private

Create a MainRow.

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

Parameters
tableThe table to which this row belongs.
asdm::MainRow::MainRow ( MainTable table,
MainRow row 
)
private

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.

Parameters
tableThe table to which this row belongs.
rowThe row which is to be copied.

Member Function Documentation

void asdm::MainRow::addStateId ( Tag  id)

Append a Tag to stateId.

Parameters
idthe Tag to be appended to stateId
void asdm::MainRow::addStateId ( const std::vector< Tag > &  id)

Append a vector of Tag to stateId.

Parameters
idan array of Tag to be appended to stateId
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.

Parameters
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.

Parameters
numAntenna
timeSampling
interval
numIntegration
scanNumber
subscanNumber
dataSize
dataUID
stateId
execBlockId
void asdm::MainRow::configDescriptionIdFromBin ( EndianIStream eis)
private
void asdm::MainRow::configDescriptionIdFromText ( const std::string &  s)
private
void asdm::MainRow::dataSizeFromBin ( EndianIStream eis)
private
void asdm::MainRow::dataSizeFromText ( const std::string &  s)
private
void asdm::MainRow::dataUIDFromBin ( EndianIStream eis)
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.

Parameters
xa pointer on the MainRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
void asdm::MainRow::execBlockIdFromBin ( EndianIStream eis)
private
void asdm::MainRow::execBlockIdFromText ( const std::string &  s)
private
void asdm::MainRow::fieldIdFromBin ( EndianIStream eis)
private
void asdm::MainRow::fieldIdFromText ( const std::string &  s)
private
Links* ConfigDescriptionRow* asdm::MainRow::getConfigDescriptionUsingConfigDescriptionId ( )

configDescriptionId pointer to the row in the ConfigDescription table having ConfigDescription.configDescriptionId == configDescriptionId

Returns
a ConfigDescriptionRow*
int64_t asdm::MainRow::getDataSize ( ) const

===> Attribute dataSize

Get dataSize.

Returns
dataSize as int64_t
EntityRef asdm::MainRow::getDataUID ( ) const

===> Attribute dataUID

Get dataUID.

Returns
dataUID as EntityRef
Tag asdm::MainRow::getExecBlockId ( ) const

===> Attribute execBlockId

Get execBlockId.

Returns
execBlockId as Tag
ExecBlockRow* asdm::MainRow::getExecBlockUsingExecBlockId ( )

execBlockId pointer to the row in the ExecBlock table having ExecBlock.execBlockId == execBlockId

Returns
a ExecBlockRow*
Tag asdm::MainRow::getFieldId ( ) const

===> Attribute fieldId

Get fieldId.

Returns
fieldId as Tag
FieldRow* asdm::MainRow::getFieldUsingFieldId ( )

fieldId pointer to the row in the Field table having Field.fieldId == fieldId

Returns
a FieldRow*
Interval asdm::MainRow::getInterval ( ) const

===> Attribute interval

Get interval.

Returns
interval as Interval
int asdm::MainRow::getNumAntenna ( ) const

===> Attribute numAntenna

Get numAntenna.

Returns
numAntenna as int
int asdm::MainRow::getNumIntegration ( ) const

===> Attribute numIntegration

Get numIntegration.

Returns
numIntegration as int
int asdm::MainRow::getScanNumber ( ) const

===> Attribute scanNumber

Get scanNumber.

Returns
scanNumber as int
std::vector<Tag> asdm::MainRow::getStateId ( ) const

===> Attribute stateId

Get stateId.

Returns
stateId as std::vector<Tag>
const Tag asdm::MainRow::getStateId ( int  i)

Returns the Tag stored in stateId at position i.

Parameters
ithe position in stateId where the Tag is retrieved.
Returns
the Tag stored at position i in stateId.
std::vector<StateRow *> asdm::MainRow::getStatesUsingStateId ( )

Returns the vector of StateRow* linked to this row via the Tags stored in stateId.

Returns
an array of pointers on StateRow.
StateRow* asdm::MainRow::getStateUsingStateId ( int  i)

Returns the StateRow linked to this row via the tag stored in stateId at position i.

Parameters
ithe position in stateId.
Returns
a pointer on a StateRow whose key (a Tag) is equal to the Tag stored at position i in the stateId.
int asdm::MainRow::getSubscanNumber ( ) const

===> Attribute subscanNumber

Get subscanNumber.

Returns
subscanNumber as int
MainTable& asdm::MainRow::getTable ( ) const

Return the table to which this row belongs.

TimeSamplingMod::TimeSampling asdm::MainRow::getTimeSampling ( ) const

===> Attribute timeSampling

Get timeSampling.

Returns
timeSampling as TimeSamplingMod::TimeSampling
void asdm::MainRow::intervalFromBin ( EndianIStream eis)
private
void asdm::MainRow::intervalFromText ( const std::string &  s)
private
bool asdm::MainRow::isAdded ( ) const

Has this row been added to its table ?

Returns
true if and only if it has been added.
void asdm::MainRow::isAdded ( bool  added)
private

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

void asdm::MainRow::numAntennaFromBin ( EndianIStream eis)
private
void asdm::MainRow::numAntennaFromText ( const std::string &  s)
private
void asdm::MainRow::numIntegrationFromBin ( EndianIStream eis)
private
void asdm::MainRow::numIntegrationFromText ( const std::string &  s)
private
void asdm::MainRow::scanNumberFromBin ( EndianIStream eis)
private
void asdm::MainRow::scanNumberFromText ( const std::string &  s)
private
void asdm::MainRow::setConfigDescriptionId ( Tag  configDescriptionId)

Set configDescriptionId with the specified Tag.

Parameters
configDescriptionIdThe Tag value to which configDescriptionId is to be set.
Exceptions
IllegalAccessExceptionIf 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.

Parameters
dataSizeThe int64_t value to which dataSize is to be set.
void asdm::MainRow::setDataUID ( EntityRef  dataUID)

Set dataUID with the specified EntityRef.

Parameters
dataUIDThe EntityRef value to which dataUID is to be set.
void asdm::MainRow::setExecBlockId ( Tag  execBlockId)

Set execBlockId with the specified Tag.

Parameters
execBlockIdThe Tag value to which execBlockId is to be set.
void asdm::MainRow::setFieldId ( Tag  fieldId)

Set fieldId with the specified Tag.

Parameters
fieldIdThe Tag value to which fieldId is to be set.
Exceptions
IllegalAccessExceptionIf 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.

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
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.

Parameters
rowDocthe XML string being used to set the values of this row.
Exceptions
ConversionException
void asdm::MainRow::setInterval ( Interval  interval)

Set interval with the specified Interval.

Parameters
intervalThe Interval value to which interval is to be set.
void asdm::MainRow::setNumAntenna ( int  numAntenna)

Set numAntenna with the specified int.

Parameters
numAntennaThe int value to which numAntenna is to be set.
void asdm::MainRow::setNumIntegration ( int  numIntegration)

Set numIntegration with the specified int.

Parameters
numIntegrationThe int value to which numIntegration is to be set.
void asdm::MainRow::setScanNumber ( int  scanNumber)

Set scanNumber with the specified int.

Parameters
scanNumberThe 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> .

Parameters
stateIdThe std::vector<Tag> value to which stateId is to be set.
void asdm::MainRow::setStateId ( int  i,
Tag  stateId 
)

Set stateId[i] with the specified Tag.

Parameters
iThe index in stateId where to set the Tag value.
stateIdThe Tag value to which stateId[i] is to be set.
Exceptions
IndexOutOfBoundsException
void asdm::MainRow::setSubscanNumber ( int  subscanNumber)

Set subscanNumber with the specified int.

Parameters
subscanNumberThe int value to which subscanNumber is to be set.
void asdm::MainRow::setTime ( ArrayTime  time)

Set time with the specified ArrayTime.

Parameters
timeThe ArrayTime value to which time is to be set.
Exceptions
IllegalAccessExceptionIf 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.

Parameters
timeSamplingThe TimeSamplingMod::TimeSampling value to which timeSampling is to be set.
void asdm::MainRow::stateIdFromBin ( EndianIStream eis)
private
void asdm::MainRow::stateIdFromText ( const std::string &  s)
private
void asdm::MainRow::subscanNumberFromBin ( EndianIStream eis)
private
void asdm::MainRow::subscanNumberFromText ( const std::string &  s)
private
void asdm::MainRow::timeFromBin ( EndianIStream eis)
private
void asdm::MainRow::timeFromText ( const std::string &  s)
private
void asdm::MainRow::timeSamplingFromBin ( EndianIStream eis)
private
void asdm::MainRow::timeSamplingFromText ( const std::string &  s)
private
void asdm::MainRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::MainRowIDL* asdm::MainRow::toIDL ( ) const

Return this row in the form of an IDL struct.

Returns
The values of this row as a MainRowIDL struct.
void asdm::MainRow::toIDL ( asdmIDL::MainRowIDL &  x) const

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

Parameters
xa reference to the MainRowIDL struct to be set.
std::string asdm::MainRow::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::MainTable
friend

Definition at line 133 of file MainRow.h.

friend class asdm::RowTransformer< MainRow >
friend

Definition at line 134 of file MainRow.h.

Member Data Documentation

Extrinsic Table asdm::MainRow::Attributes

Definition at line 157 of file MainRow.h.

Extrinsic Table asdm::MainRow::Attributes

Definition at line 433 of file MainRow.h.

int64_t asdm::MainRow::dataSize
private

===> Attribute dataSize

Definition at line 944 of file MainRow.h.

EntityRef asdm::MainRow::dataUID
private

===> Attribute dataUID

Definition at line 955 of file MainRow.h.

Tag asdm::MainRow::execBlockId
private

===> Attribute execBlockId

Definition at line 981 of file MainRow.h.

Tag asdm::MainRow::fieldId
private

===> Attribute fieldId

Definition at line 992 of file MainRow.h.

Links* binary deserialization material from an EndianIStream std::map<std::string, MainAttributeFromBin> asdm::MainRow::fromBinMethods
private

Definition at line 1045 of file MainRow.h.

* text deserialization material std::map<std::string, MainAttributeFromText> asdm::MainRow::fromTextMethods
private

Definition at line 1066 of file MainRow.h.

bool asdm::MainRow::hasBeenAdded
private

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

Definition at line 823 of file MainRow.h.

Interval asdm::MainRow::interval
private

===> Attribute interval

Definition at line 900 of file MainRow.h.

int asdm::MainRow::numAntenna
private

===> Attribute numAntenna

Definition at line 878 of file MainRow.h.

int asdm::MainRow::numIntegration
private

===> Attribute numIntegration

Definition at line 911 of file MainRow.h.

int asdm::MainRow::scanNumber
private

===> Attribute scanNumber

Definition at line 922 of file MainRow.h.

std::vector<Tag> asdm::MainRow::stateId
private

===> Attribute stateId

Definition at line 1003 of file MainRow.h.

int asdm::MainRow::subscanNumber
private

===> Attribute subscanNumber

Definition at line 933 of file MainRow.h.

MainTable& asdm::MainRow::table
private

The table to which this row belongs.

Definition at line 819 of file MainRow.h.

TimeSamplingMod::TimeSampling asdm::MainRow::timeSampling
private

===> Attribute timeSampling

Definition at line 889 of file MainRow.h.


The documentation for this class was generated from the following file: