34 #ifndef SpectralWindowRow_CLASS
35 #define SpectralWindowRow_CLASS
152 class SpectralWindowRow;
155 class SpectralWindowRow;
161 class SpectralWindowRow;
206 Tag getSpectralWindowId()
const;
935 FrequencyReferenceCodeMod::FrequencyReferenceCode
getMeasFreqRef()
const;
1263 std::vector<SpectralResolutionTypeMod::SpectralResolutionType >
getAssocNature()
const;
1299 bool isAssocSpectralWindowIdExists()
const;
1567 asdmIDL::SpectralWindowRowIDL *
toIDL()
const;
1576 void toIDL(asdmIDL::SpectralWindowRowIDL& x)
const;
1585 void setFromIDL (asdmIDL::SpectralWindowRowIDL x) ;
1592 std::string
toXML()
const;
1607 std::map<std::string, SpectralWindowAttributeFromBin>
fromBinMethods;
1658 void fromText(
const std::string& attributeName,
const std::string& t);
1713 Tag spectralWindowId;
2075 std::vector<SpectralResolutionTypeMod::SpectralResolutionType >
assocNature;
2089 bool assocSpectralWindowIdExists;
bool oversamplingExists
===> Attribute oversampling, which is optional
void setRefChan(double refChan)
Set refChan with the specified double.
asdmIDL::SpectralWindowRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void imageSpectralWindowIdFromText(const std::string &s)
void dopplerIdFromBin(EndianIStream &eis)
bool isLineArrayExists() const
===> Attribute lineArray, which is optional
Frequency getEffectiveBw() const
Get effectiveBw, which is optional.
void chanFreqStartFromBin(EndianIStream &eis)
bool isDopplerIdExists() const
===> Attribute dopplerId, which is optional
bool getQuantization() const
Get quantization, which is optional.
Frequency refFreq
===> Attribute refFreq
void setWindowFunction(WindowFunctionMod::WindowFunction windowFunction)
Set windowFunction with the specified WindowFunctionMod::WindowFunction.
void setLineArray(std::vector< bool > lineArray)
Set lineArray with the specified std::vector<bool >.
void windowFunctionFromText(const std::string &s)
void chanFreqStepFromText(const std::string &s)
void setName(std::string name)
Set name with the specified std::string.
void assocNatureFromText(const std::string &s)
void chanFreqStepFromBin(EndianIStream &eis)
bool freqGroupNameExists
===> Attribute freqGroupName, which is optional
void nameFromText(const std::string &s)
bool isChanFreqArrayExists() const
===> Attribute chanFreqArray, which is optional
bool measFreqRefExists
===> Attribute measFreqRef, which is optional
void setSidebandProcessingMode(SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode)
Set sidebandProcessingMode with the specified SidebandProcessingModeMod::SidebandProcessingMode.
bool isFreqGroupExists() const
===> Attribute freqGroup, which is optional
bool isNumBinExists() const
===> Attribute numBin, which is optional
bool isChanFreqStartExists() const
===> Attribute chanFreqStart, which is optional
void clearNumBin()
Mark numBin, which is an optional field, as non-existent.
void setOversampling(bool oversampling)
Set oversampling with the specified bool.
void numChanFromBin(EndianIStream &eis)
void setEffectiveBw(Frequency effectiveBw)
Set effectiveBw with the specified Frequency.
NetSidebandMod::NetSideband getNetSideband() const
===> Attribute netSideband
bool isAdded() const
Has this row been added to its table ?
void basebandNameFromText(const std::string &s)
void totBandwidthFromText(const std::string &s)
bool effectiveBwArrayExists
===> Attribute effectiveBwArray, which is optional
void resolutionArrayFromBin(EndianIStream &eis)
bool resolutionArrayExists
===> Attribute resolutionArray, which is optional
bool chanWidthExists
===> Attribute chanWidth, which is optional
bool isQuantizationExists() const
===> Attribute quantization, which is optional
void setMeasFreqRef(FrequencyReferenceCodeMod::FrequencyReferenceCode measFreqRef)
Set measFreqRef with the specified FrequencyReferenceCodeMod::FrequencyReferenceCode.
Frequency getResolution() const
Get resolution, which is optional.
std::vector< bool > getLineArray() const
Get lineArray, which is optional.
bool correlationBitExists
===> Attribute correlationBit, which is optional
bool imageSpectralWindowIdExists
===> Attribute imageSpectralWindowId, which is optional
void measFreqRefFromText(const std::string &s)
void clearOversampling()
Mark oversampling, which is an optional field, as non-existent.
bool refChanExists
===> Attribute refChan, which is optional
bool freqGroupExists
===> Attribute freqGroup, which is optional
std::vector< Frequency > effectiveBwArray
bool isEffectiveBwExists() const
===> Attribute effectiveBw, which is optional
void effectiveBwFromText(const std::string &s)
int getNumBin() const
Get numBin, which is optional.
bool assocNatureExists
===> Attribute assocNature, which is optional
void setFreqGroupName(std::string freqGroupName)
Set freqGroupName with the specified std::string.
bool isRefChanExists() const
===> Attribute refChan, which is optional
void setFreqGroup(int freqGroup)
Set freqGroup with the specified int.
void setResolution(Frequency resolution)
Set resolution with the specified Frequency.
void dopplerIdFromText(const std::string &s)
bool isChanWidthArrayExists() const
===> Attribute chanWidthArray, which is optional
bool isNumAssocValuesExists() const
===> Attribute numAssocValues, which is optional
bool compareNoAutoInc(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction)
Compare each mandatory attribute except the autoincrementable one of this SpectralWindowRow with the ...
Frequency getChanWidth() const
Get chanWidth, which is optional.
void lineArrayFromText(const std::string &s)
SpectralWindowRow * getSpectralWindowUsingAssocSpectralWindowId(int i)
Returns the SpectralWindowRow linked to this row via the tag stored in assocSpectralWindowId at posit...
void clearChanWidthArray()
Mark chanWidthArray, which is an optional field, as non-existent.
CorrelationBitMod::CorrelationBit getCorrelationBit() const
Get correlationBit, which is optional.
void setChanFreqStep(Frequency chanFreqStep)
Set chanFreqStep with the specified Frequency.
void assocSpectralWindowIdFromBin(EndianIStream &eis)
Frequency getRefFreq() const
===> Attribute refFreq
Frequency getTotBandwidth() const
===> Attribute totBandwidth
std::vector< DopplerRow * > getDopplers()
===> Slice link from a row of SpectralWindow table to a collection of row of Doppler table...
bool isAssocNatureExists() const
===> Attribute assocNature, which is optional
std::string getName() const
Get name, which is optional.
void clearChanFreqArray()
Mark chanFreqArray, which is an optional field, as non-existent.
void clearChanFreqStart()
Mark chanFreqStart, which is an optional field, as non-existent.
void setBasebandName(BasebandNameMod::BasebandName basebandName)
Set basebandName with the specified BasebandNameMod::BasebandName.
void correlationBitFromText(const std::string &s)
void clearResolutionArray()
Mark resolutionArray, which is an optional field, as non-existent.
WindowFunctionMod::WindowFunction getWindowFunction() const
===> Attribute windowFunction
void clearDopplerId()
Mark dopplerId, which is an optional field, as non-existent.
void chanFreqStartFromText(const std::string &s)
FrequencyReferenceCodeMod::FrequencyReferenceCode getMeasFreqRef() const
Get measFreqRef, which is optional.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void numChanFromText(const std::string &s)
void sidebandProcessingModeFromText(const std::string &s)
Frequency totBandwidth
===> Attribute totBandwidth
void setNumChan(int numChan)
Set numChan with the specified int.
BasebandNameMod::BasebandName getBasebandName() const
===> Attribute basebandName
void measFreqRefFromBin(EndianIStream &eis)
SidebandProcessingModeMod::SidebandProcessingMode getSidebandProcessingMode() const
===> Attribute sidebandProcessingMode
bool numAssocValuesExists
===> Attribute numAssocValues, which is optional
void effectiveBwArrayFromText(const std::string &s)
Tag getImageSpectralWindowId() const
Get imageSpectralWindowId, which is optional.
bool isChanFreqStepExists() const
===> Attribute chanFreqStep, which is optional
int getDopplerId() const
Get dopplerId, which is optional.
void clearNumAssocValues()
Mark numAssocValues, which is an optional field, as non-existent.
void setChanWidthArray(std::vector< Frequency > chanWidthArray)
Set chanWidthArray with the specified std::vector<Frequency >.
void spectralWindowIdFromText(const std::string &s)
WindowFunctionMod::WindowFunction windowFunction
===> Attribute windowFunction
void(SpectralWindowRow::* SpectralWindowAttributeFromBin)(EndianIStream &eis)
bool effectiveBwExists
===> Attribute effectiveBw, which is optional
std::vector< Frequency > chanWidthArray
void spectralWindowIdFromBin(EndianIStream &eis)
BasebandNameMod::BasebandName basebandName
===> Attribute basebandName
SpectralWindowRow(SpectralWindowTable &table)
Create a SpectralWindowRow.
void oversamplingFromText(const std::string &s)
bool equalByRequiredValue(SpectralWindowRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void chanWidthArrayFromBin(EndianIStream &eis)
void clearFreqGroupName()
Mark freqGroupName, which is an optional field, as non-existent.
bool compareRequiredValue(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction)
Compare each mandatory value (i.e.
void effectiveBwArrayFromBin(EndianIStream &eis)
bool isImageSpectralWindowIdExists() const
===> Attribute imageSpectralWindowId, which is optional
void setNumAssocValues(int numAssocValues)
Set numAssocValues with the specified int.
void addAssocSpectralWindowId(Tag id)
Append a Tag to assocSpectralWindowId.
void clearMeasFreqRef()
Mark measFreqRef, which is an optional field, as non-existent.
void setAssocNature(std::vector< SpectralResolutionTypeMod::SpectralResolutionType > assocNature)
Set assocNature with the specified std::vector<SpectralResolutionTypeMod::SpectralResolutionType >...
void basebandNameFromBin(EndianIStream &eis)
void refChanFromBin(EndianIStream &eis)
void clearQuantization()
Mark quantization, which is an optional field, as non-existent.
void numBinFromText(const std::string &s)
The SpectralWindowTable class is an Alma table.
void setCorrelationBit(CorrelationBitMod::CorrelationBit correlationBit)
Set correlationBit with the specified CorrelationBitMod::CorrelationBit.
void chanFreqArrayFromText(const std::string &s)
void imageSpectralWindowIdFromBin(EndianIStream &eis)
void numAssocValuesFromBin(EndianIStream &eis)
void clearLineArray()
Mark lineArray, which is an optional field, as non-existent.
void quantizationFromText(const std::string &s)
void quantizationFromBin(EndianIStream &eis)
void setResolutionArray(std::vector< Frequency > resolutionArray)
Set resolutionArray with the specified std::vector<Frequency >.
void clearImageSpectralWindowId()
Mark imageSpectralWindowId, which is an optional field, as non-existent.
void chanWidthFromBin(EndianIStream &eis)
std::vector< Frequency > chanFreqArray
bool nameExists
===> Attribute name, which is optional
void clearFreqGroup()
Mark freqGroup, which is an optional field, as non-existent.
void freqGroupFromBin(EndianIStream &eis)
void refFreqFromBin(EndianIStream &eis)
double getRefChan() const
Get refChan, which is optional.
bool isEffectiveBwArrayExists() const
===> Attribute effectiveBwArray, which is optional
void effectiveBwFromBin(EndianIStream &eis)
void clearAssocNature()
Mark assocNature, which is an optional field, as non-existent.
bool getOversampling() const
Get oversampling, which is optional.
std::vector< bool > lineArray
bool dopplerIdExists
===> Attribute dopplerId, which is optional
void setChanFreqStart(Frequency chanFreqStart)
Set chanFreqStart with the specified Frequency.
void setImageSpectralWindowId(Tag imageSpectralWindowId)
Set imageSpectralWindowId with the specified Tag.
void setChanWidth(Frequency chanWidth)
Set chanWidth with the specified Frequency.
std::vector< SpectralResolutionTypeMod::SpectralResolutionType > getAssocNature() const
Get assocNature, which is optional.
Links *binary deserialization material from an EndianIStream std::map< std::string, SpectralWindowAttributeFromBin > fromBinMethods
void nameFromBin(EndianIStream &eis)
SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode
===> Attribute sidebandProcessingMode
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void setQuantization(bool quantization)
Set quantization with the specified bool.
Frequency getChanFreqStart() const
Get chanFreqStart, which is optional.
void chanWidthArrayFromText(const std::string &s)
void clearEffectiveBw()
Mark effectiveBw, which is an optional field, as non-existent.
void clearChanFreqStep()
Mark chanFreqStep, which is an optional field, as non-existent.
void setNumBin(int numBin)
Set numBin with the specified int.
void assocNatureFromBin(EndianIStream &eis)
void oversamplingFromBin(EndianIStream &eis)
void setTotBandwidth(Frequency totBandwidth)
Set totBandwidth with the specified Frequency.
std::vector< Tag > assocSpectralWindowId
CorrelationBitMod::CorrelationBit correlationBit
SpectralWindowRow * getSpectralWindowUsingImageSpectralWindowId()
imageSpectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.imageSpectralWindowId == imageSpectralWindowId
NetSidebandMod::NetSideband netSideband
===> Attribute netSideband
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void clearRefChan()
Mark refChan, which is an optional field, as non-existent.
bool chanFreqStepExists
===> Attribute chanFreqStep, which is optional
std::string toXML() const
Return this row in the form of an XML string.
void clearResolution()
Mark resolution, which is an optional field, as non-existent.
std::vector< Frequency > resolutionArray
void sidebandProcessingModeFromBin(EndianIStream &eis)
void numBinFromBin(EndianIStream &eis)
void setEffectiveBwArray(std::vector< Frequency > effectiveBwArray)
Set effectiveBwArray with the specified std::vector<Frequency >.
std::vector< Frequency > getChanFreqArray() const
Get chanFreqArray, which is optional.
Tag imageSpectralWindowId
void clearEffectiveBwArray()
Mark effectiveBwArray, which is an optional field, as non-existent.
SpectralWindowTable & table
The table to which this row belongs.
bool resolutionExists
===> Attribute resolution, which is optional
void lineArrayFromBin(EndianIStream &eis)
void assocSpectralWindowIdFromText(const std::string &s)
bool chanWidthArrayExists
===> Attribute chanWidthArray, which is optional
void freqGroupFromText(const std::string &s)
void totBandwidthFromBin(EndianIStream &eis)
FrequencyReferenceCodeMod::FrequencyReferenceCode measFreqRef
bool isNameExists() const
===> Attribute name, which is optional
void setAssocSpectralWindowId(std::vector< Tag > assocSpectralWindowId)
Set assocSpectralWindowId with the specified std::vector<Tag> .
bool hasBeenAdded
Whether this row has been added to the table or not.
std::vector< SpectralResolutionTypeMod::SpectralResolutionType > assocNature
void setRefFreq(Frequency refFreq)
Set refFreq with the specified Frequency.
int getNumAssocValues() const
Get numAssocValues, which is optional.
void clearName()
Mark name, which is an optional field, as non-existent.
bool lineArrayExists
===> Attribute lineArray, which is optional
void freqGroupNameFromBin(EndianIStream &eis)
bool isMeasFreqRefExists() const
===> Attribute measFreqRef, which is optional
void clearCorrelationBit()
Mark correlationBit, which is an optional field, as non-existent.
void setFromIDL(asdmIDL::SpectralWindowRowIDL x)
Fill the values of this row from the IDL struct SpectralWindowRowIDL.
void chanFreqArrayFromBin(EndianIStream &eis)
void clearChanWidth()
Mark chanWidth, which is an optional field, as non-existent.
void resolutionFromBin(EndianIStream &eis)
void setNetSideband(NetSidebandMod::NetSideband netSideband)
Set netSideband with the specified NetSidebandMod::NetSideband.
SpectralWindowTable & getTable() const
Return the table to which this row belongs.
std::vector< SpectralWindowRow * > getSpectralWindowsUsingAssocSpectralWindowId()
Returns the vector of SpectralWindowRow* linked to this row via the Tags stored in assocSpectralWindo...
void setChanFreqArray(std::vector< Frequency > chanFreqArray)
Set chanFreqArray with the specified std::vector<Frequency >.
std::vector< Frequency > getEffectiveBwArray() const
Get effectiveBwArray, which is optional.
bool isFreqGroupNameExists() const
===> Attribute freqGroupName, which is optional
bool isResolutionArrayExists() const
===> Attribute resolutionArray, which is optional
void numAssocValuesFromText(const std::string &s)
bool quantizationExists
===> Attribute quantization, which is optional
int getNumChan() const
===> Attribute numChan
void windowFunctionFromBin(EndianIStream &eis)
void freqGroupNameFromText(const std::string &s)
virtual ~SpectralWindowRow()
friend class asdm::TableStreamReader<SpectralWindowTable, SpectralWindowRow>;
void(SpectralWindowRow::* SpectralWindowAttributeFromText)(const std::string &s)
std::vector< Frequency > getResolutionArray() const
Get resolutionArray, which is optional.
bool chanFreqArrayExists
===> Attribute chanFreqArray, which is optional
*text deserialization material std::map< std::string, SpectralWindowAttributeFromText > fromTextMethods
std::vector< Frequency > getChanWidthArray() const
Get chanWidthArray, which is optional.
void netSidebandFromText(const std::string &s)
bool numBinExists
===> Attribute numBin, which is optional
Frequency getChanFreqStep() const
Get chanFreqStep, which is optional.
std::vector< Tag > getAssocSpectralWindowId() const
Get assocSpectralWindowId, which is optional.
void resolutionFromText(const std::string &s)
The Frequency class implements a quantity of frequency in hertz.
The SpectralWindowRow class is a row of a SpectralWindowTable.
bool isOversamplingExists() const
===> Attribute oversampling, which is optional
void correlationBitFromBin(EndianIStream &eis)
bool isCorrelationBitExists() const
===> Attribute correlationBit, which is optional
std::string getFreqGroupName() const
Get freqGroupName, which is optional.
void setDopplerId(int dopplerId)
Set dopplerId with the specified int.
bool isChanWidthExists() const
===> Attribute chanWidth, which is optional
int getFreqGroup() const
Get freqGroup, which is optional.
void chanWidthFromText(const std::string &s)
bool chanFreqStartExists
===> Attribute chanFreqStart, which is optional
void clearAssocSpectralWindowId()
Mark assocSpectralWindowId, which is an optional field, as non-existent.
int numChan
===> Attribute numChan
bool isResolutionExists() const
===> Attribute resolution, which is optional
void setSpectralWindowId(Tag spectralWindowId)
Set spectralWindowId with the specified Tag value.
void resolutionArrayFromText(const std::string &s)
void netSidebandFromBin(EndianIStream &eis)
std::string freqGroupName
void refChanFromText(const std::string &s)
void refFreqFromText(const std::string &s)