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::AlmaRadiometerRow Class Reference

The AlmaRadiometerRow class is a row of a AlmaRadiometerTable. More...

#include <AlmaRadiometerRow.h>

Public Member Functions

virtual ~AlmaRadiometerRow ()
 friend class asdm::TableStreamReader<AlmaRadiometerTable, AlmaRadiometerRow>; More...
 
AlmaRadiometerTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
bool isNumAntennaExists () const
 ===> Attribute numAntenna, which is optional More...
 
int getNumAntenna () const
 Get numAntenna, which is optional. More...
 
void setNumAntenna (int numAntenna)
 Set numAntenna with the specified int. More...
 
void clearNumAntenna ()
 Mark numAntenna, which is an optional field, as non-existent. More...
 
std::vector< TaggetSpectralWindowId () const
 Get spectralWindowId, which is optional. More...
 
void setSpectralWindowId (std::vector< Tag > spectralWindowId)
 Set spectralWindowId with the specified std::vector<Tag> . More...
 
void clearSpectralWindowId ()
 Mark spectralWindowId, which is an optional field, as non-existent. More...
 
Links *void setSpectralWindowId (int i, Tag spectralWindowId)
 Set spectralWindowId[i] with the specified Tag. More...
 
void addSpectralWindowId (Tag id)
 Append a Tag to spectralWindowId. More...
 
void addSpectralWindowId (const std::vector< Tag > &id)
 Append a vector of Tag to spectralWindowId. More...
 
const Tag getSpectralWindowId (int i)
 Returns the Tag stored in spectralWindowId at position i. More...
 
SpectralWindowRowgetSpectralWindowUsingSpectralWindowId (int i)
 Returns the SpectralWindowRow linked to this row via the tag stored in spectralWindowId at position i. More...
 
std::vector< SpectralWindowRow * > getSpectralWindowsUsingSpectralWindowId ()
 Returns the vector of SpectralWindowRow* linked to this row via the Tags stored in spectralWindowId. More...
 
bool equalByRequiredValue (AlmaRadiometerRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::AlmaRadiometerRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::AlmaRadiometerRowIDL &x) const
 Define the content of a AlmaRadiometerRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::AlmaRadiometerRowIDL x)
 Fill the values of this row from the IDL struct AlmaRadiometerRowIDL. 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...
 
 AlmaRadiometerRow (AlmaRadiometerTable &table)
 Create a AlmaRadiometerRow. More...
 
 AlmaRadiometerRow (AlmaRadiometerTable &table, AlmaRadiometerRow *row)
 Create a AlmaRadiometerRow using a copy constructor mechanism. More...
 
void setAlmaRadiometerId (Tag almaRadiometerId)
 Set almaRadiometerId with the specified Tag value. More...
 
void almaRadiometerIdFromBin (EndianIStream &eis)
 
void numAntennaFromBin (EndianIStream &eis)
 
void spectralWindowIdFromBin (EndianIStream &eis)
 
void almaRadiometerIdFromText (const std::string &s)
 
void numAntennaFromText (const std::string &s)
 
void spectralWindowIdFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

AlmaRadiometerTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
bool numAntennaExists
 ===> Attribute numAntenna, which is optional More...
 
int numAntenna
 
std::vector< TagspectralWindowId
 
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
AlmaRadiometerAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
AlmaRadiometerAttributeFromText
fromTextMethods
 

Friends

class asdm::AlmaRadiometerTable
 
class asdm::RowTransformer< AlmaRadiometerRow >
 

Detailed Description

The AlmaRadiometerRow class is a row of a AlmaRadiometerTable.

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

Definition at line 93 of file AlmaRadiometerRow.h.

Constructor & Destructor Documentation

virtual asdm::AlmaRadiometerRow::~AlmaRadiometerRow ( )
virtual

friend class asdm::TableStreamReader<AlmaRadiometerTable, AlmaRadiometerRow>;

asdm::AlmaRadiometerRow::AlmaRadiometerRow ( AlmaRadiometerTable table)
private

Create a AlmaRadiometerRow.

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::AlmaRadiometerRow::AlmaRadiometerRow ( AlmaRadiometerTable table,
AlmaRadiometerRow row 
)
private

Create a AlmaRadiometerRow using a copy constructor mechanism.

Given a AlmaRadiometerRow row and a AlmaRadiometerTable table, the method creates a new AlmaRadiometerRow 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::AlmaRadiometerRow::addSpectralWindowId ( Tag  id)

Append a Tag to spectralWindowId.

Parameters
idthe Tag to be appended to spectralWindowId
void asdm::AlmaRadiometerRow::addSpectralWindowId ( const std::vector< Tag > &  id)

Append a vector of Tag to spectralWindowId.

Parameters
idan array of Tag to be appended to spectralWindowId
void asdm::AlmaRadiometerRow::almaRadiometerIdFromBin ( EndianIStream eis)
private
void asdm::AlmaRadiometerRow::almaRadiometerIdFromText ( const std::string &  s)
private
void asdm::AlmaRadiometerRow::clearNumAntenna ( )

Mark numAntenna, which is an optional field, as non-existent.

void asdm::AlmaRadiometerRow::clearSpectralWindowId ( )

Mark spectralWindowId, which is an optional field, as non-existent.

bool asdm::AlmaRadiometerRow::equalByRequiredValue ( AlmaRadiometerRow 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 AlmaRadiometerRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
int asdm::AlmaRadiometerRow::getNumAntenna ( ) const

Get numAntenna, which is optional.

Returns
numAntenna as int
Exceptions
IllegalAccessExceptionIf numAntenna does not exist.
std::vector<Tag> asdm::AlmaRadiometerRow::getSpectralWindowId ( ) const

Get spectralWindowId, which is optional.

Returns
spectralWindowId as std::vector<Tag>
Exceptions
IllegalAccessExceptionIf spectralWindowId does not exist.
const Tag asdm::AlmaRadiometerRow::getSpectralWindowId ( int  i)

Returns the Tag stored in spectralWindowId at position i.

Parameters
ithe position in spectralWindowId where the Tag is retrieved.
Returns
the Tag stored at position i in spectralWindowId.
std::vector<SpectralWindowRow *> asdm::AlmaRadiometerRow::getSpectralWindowsUsingSpectralWindowId ( )

Returns the vector of SpectralWindowRow* linked to this row via the Tags stored in spectralWindowId.

Returns
an array of pointers on SpectralWindowRow.
SpectralWindowRow* asdm::AlmaRadiometerRow::getSpectralWindowUsingSpectralWindowId ( int  i)

Returns the SpectralWindowRow linked to this row via the tag stored in spectralWindowId at position i.

Parameters
ithe position in spectralWindowId.
Returns
a pointer on a SpectralWindowRow whose key (a Tag) is equal to the Tag stored at position i in the spectralWindowId.
AlmaRadiometerTable& asdm::AlmaRadiometerRow::getTable ( ) const

Return the table to which this row belongs.

bool asdm::AlmaRadiometerRow::isAdded ( ) const

Has this row been added to its table ?

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

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

bool asdm::AlmaRadiometerRow::isNumAntennaExists ( ) const

===> Attribute numAntenna, which is optional

The attribute numAntenna is optional. Return true if this attribute exists.

Returns
true if and only if the numAntenna attribute exists.
void asdm::AlmaRadiometerRow::numAntennaFromBin ( EndianIStream eis)
private
void asdm::AlmaRadiometerRow::numAntennaFromText ( const std::string &  s)
private
void asdm::AlmaRadiometerRow::setAlmaRadiometerId ( Tag  almaRadiometerId)
private

Set almaRadiometerId with the specified Tag value.

Parameters
almaRadiometerIdThe Tag value to which almaRadiometerId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::AlmaRadiometerRow::setFromIDL ( asdmIDL::AlmaRadiometerRowIDL  x)

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

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
void asdm::AlmaRadiometerRow::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::AlmaRadiometerRow::setNumAntenna ( int  numAntenna)

Set numAntenna with the specified int.

Parameters
numAntennaThe int value to which numAntenna is to be set.
void asdm::AlmaRadiometerRow::setSpectralWindowId ( std::vector< Tag spectralWindowId)

Set spectralWindowId with the specified std::vector<Tag> .

Parameters
spectralWindowIdThe std::vector<Tag> value to which spectralWindowId is to be set.
Links* void asdm::AlmaRadiometerRow::setSpectralWindowId ( int  i,
Tag  spectralWindowId 
)

Set spectralWindowId[i] with the specified Tag.

Parameters
iThe index in spectralWindowId where to set the Tag value.
spectralWindowIdThe Tag value to which spectralWindowId[i] is to be set.
Exceptions
OutOfBoundsException
void asdm::AlmaRadiometerRow::spectralWindowIdFromBin ( EndianIStream eis)
private
void asdm::AlmaRadiometerRow::spectralWindowIdFromText ( const std::string &  s)
private
void asdm::AlmaRadiometerRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::AlmaRadiometerRowIDL* asdm::AlmaRadiometerRow::toIDL ( ) const

Return this row in the form of an IDL struct.

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

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

Parameters
xa reference to the AlmaRadiometerRowIDL struct to be set.
std::string asdm::AlmaRadiometerRow::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::AlmaRadiometerTable
friend

Definition at line 94 of file AlmaRadiometerRow.h.

friend class asdm::RowTransformer< AlmaRadiometerRow >
friend

Definition at line 95 of file AlmaRadiometerRow.h.

Member Data Documentation

Extrinsic Table asdm::AlmaRadiometerRow::Attributes

Definition at line 118 of file AlmaRadiometerRow.h.

Extrinsic Table asdm::AlmaRadiometerRow::Attributes

Definition at line 183 of file AlmaRadiometerRow.h.

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

Definition at line 480 of file AlmaRadiometerRow.h.

* text deserialization material std::map<std::string, AlmaRadiometerAttributeFromText> asdm::AlmaRadiometerRow::fromTextMethods
private

Definition at line 491 of file AlmaRadiometerRow.h.

bool asdm::AlmaRadiometerRow::hasBeenAdded
private

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

Definition at line 373 of file AlmaRadiometerRow.h.

int asdm::AlmaRadiometerRow::numAntenna
private

Definition at line 442 of file AlmaRadiometerRow.h.

bool asdm::AlmaRadiometerRow::numAntennaExists
private

===> Attribute numAntenna, which is optional

Definition at line 439 of file AlmaRadiometerRow.h.

std::vector<Tag> asdm::AlmaRadiometerRow::spectralWindowId
private

Definition at line 459 of file AlmaRadiometerRow.h.

AlmaRadiometerTable& asdm::AlmaRadiometerRow::table
private

The table to which this row belongs.

Definition at line 369 of file AlmaRadiometerRow.h.


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