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

SDMDataObject::DataStruct:: declarations. More...

#include <SDMDataObject.h>

Public Member Functions

 DataStruct ()
 An empty constructor. More...
 
virtual ~DataStruct ()
 The destructor. More...
 
 DataStruct (const std::vector< AtmPhaseCorrectionMod::AtmPhaseCorrection > &apc, const std::vector< Baseband > &basebands, const BinaryPart &flags, const BinaryPart &actualTimes, const BinaryPart &actualDurations, const ZeroLagsBinaryPart &zeroLags, const BinaryPart &crossData, const AutoDataBinaryPart &autoData)
 A full constructor. More...
 
const std::vector
< AtmPhaseCorrectionMod::AtmPhaseCorrection > & 
apc () const
 Returns the radiometric atmospheric phase correction codes. More...
 
const std::vector< Baseband > & basebands () const
 void apc(const vector<AtmPhaseCorrectionMod::AtmPhaseCorrection>& value); More...
 
const BinaryPartflags () const
 void basebands(const vector<Baseband>& value); More...
 
const BinaryPartactualTimes () const
 void flags(const BinaryPart& value); More...
 
const BinaryPartactualDurations () const
 void actualTimes(const BinaryPart& value); More...
 
const ZeroLagsBinaryPartzeroLags () const
 void actualDurations(const BinaryPart& value); More...
 
const BinaryPartcrossData () const
 void zeroLags(const BinaryPart& value); More...
 
const AutoDataBinaryPartautoData () const
 void crossData(const BinaryPart& value); More...
 
void imageSPW (unsigned int ibb, unsigned int ispw1, unsigned int ispw2)
 void autoData(const BinaryPart& value); More...
 
const SpectralWindowimageSPW (unsigned int ibb, unsigned int ispw) const
 Returns a pointer to the spectral window image of a spectral window. More...
 
void imageOfSPW (unsigned int ibb, unsigned int ispw1, unsigned int ispw2)
 Defines an association "spw1 is image of spw2" between two spectral windows spw1 and spw2. More...
 
const SpectralWindowimageOfSPW (unsigned int ibb, unsigned int ispw) const
 Returns a pointer to the spectral window whom the spectral window passed in argument is the image. More...
 

Private Member Functions

void owner (const SDMDataObject *o)
 
void checkCoordinate (unsigned int ibb, unsigned int ispw) const
 
bool associatedSPW (unsigned int ibb, unsigned int ispw1, unsigned int ispw2)
 
void divorceSPW (unsigned int ibb, unsigned int ispw)
 

Private Attributes

std::vector
< AtmPhaseCorrectionMod::AtmPhaseCorrection > 
apc_
 
std::vector< Basebandbasebands_
 
BinaryPart flags_
 
BinaryPart actualTimes_
 
BinaryPart actualDurations_
 
ZeroLagsBinaryPart zeroLags_
 
BinaryPart crossData_
 
AutoDataBinaryPart autoData_
 
const SDMDataObjectowner_
 
std::map< std::string,
std::string > 
imageSPW_
 
std::map< std::string,
std::string > 
imageOfSPW_
 

Friends

class SDMDataObject
 
class HeaderParser
 
class SDMDataObjectWriter
 

Detailed Description

SDMDataObject::DataStruct:: declarations.

A class to represent the structure of binary data. An instance of this class collects informations :

Definition at line 687 of file SDMDataObject.h.

Constructor & Destructor Documentation

asdmbinaries::SDMDataObject::DataStruct::DataStruct ( )

An empty constructor.

Note
This constructor should never be used.
virtual asdmbinaries::SDMDataObject::DataStruct::~DataStruct ( )
virtual

The destructor.

asdmbinaries::SDMDataObject::DataStruct::DataStruct ( const std::vector< AtmPhaseCorrectionMod::AtmPhaseCorrection > &  apc,
const std::vector< Baseband > &  basebands,
const BinaryPart flags,
const BinaryPart actualTimes,
const BinaryPart actualDurations,
const ZeroLagsBinaryPart zeroLags,
const BinaryPart crossData,
const AutoDataBinaryPart autoData 
)

A full constructor.

Parameters
apca vector of AtmPhaseCorrection. If apc is not relevant pass an empty vector.
basebandsa vector of Baseband.
flagsa BinaryPart object describing the flags. If flags is not relevant pass an empty BinaryPart object.
actualTimesa BinaryPart object describing the actual times. If actualTimes is not relevant pass an empty BinaryPart object.
actualDurationsa BinaryPart object describing the actual durations. If actualDurations is not relevant pass an empty BinaryPart object.
zeroLagsa ZeroLagsBinaryPart object describing the zero lags. If zeroLags is not relevant pass an empty ZeroLagsBinaryPart object.
crossDataa BinaryPart object describing the cross data. If crossData is not relevant pass an empty BinaryPart object.
autoDataan AutoDataBinaryPart object describing the auto data. If autoData is not relevant pass an empty AutoDataBinaryPart object.

Member Function Documentation

const BinaryPart& asdmbinaries::SDMDataObject::DataStruct::actualDurations ( ) const

void actualTimes(const BinaryPart& value);

Returns the description the actualDurations attachment.

Returns
a reference to a BinaryPart value.
const BinaryPart& asdmbinaries::SDMDataObject::DataStruct::actualTimes ( ) const

void flags(const BinaryPart& value);

Returns the description the actualTimes attachment.

Returns
a reference to a BinaryPart value.
const std::vector<AtmPhaseCorrectionMod::AtmPhaseCorrection>& asdmbinaries::SDMDataObject::DataStruct::apc ( ) const

Returns the radiometric atmospheric phase correction codes.

Returns
a vector of AtmPhaseCorrectionMod::AtmPhaseCorrection.
bool asdmbinaries::SDMDataObject::DataStruct::associatedSPW ( unsigned int  ibb,
unsigned int  ispw1,
unsigned int  ispw2 
)
private
const AutoDataBinaryPart& asdmbinaries::SDMDataObject::DataStruct::autoData ( ) const

void crossData(const BinaryPart& value);

Returns the description the autoData attachment.

Returns
a reference to an AutoDataBinaryPart value.
const std::vector<Baseband>& asdmbinaries::SDMDataObject::DataStruct::basebands ( ) const

void apc(const vector<AtmPhaseCorrectionMod::AtmPhaseCorrection>& value);

Returns the vector of basebands.

Returns
a reference to a vector of Baseband.
void asdmbinaries::SDMDataObject::DataStruct::checkCoordinate ( unsigned int  ibb,
unsigned int  ispw 
) const
private
const BinaryPart& asdmbinaries::SDMDataObject::DataStruct::crossData ( ) const

void zeroLags(const BinaryPart& value);

Returns the description the crossData attachment.

Returns
a reference to a BinaryPart value.
void asdmbinaries::SDMDataObject::DataStruct::divorceSPW ( unsigned int  ibb,
unsigned int  ispw 
)
private
const BinaryPart& asdmbinaries::SDMDataObject::DataStruct::flags ( ) const

void basebands(const vector<Baseband>& value);

Returns the description the flags attachment.

Returns
a reference to a BinaryPart value.
void asdmbinaries::SDMDataObject::DataStruct::imageOfSPW ( unsigned int  ibb,
unsigned int  ispw1,
unsigned int  ispw2 
)

Defines an association "spw1 is image of spw2" between two spectral windows spw1 and spw2.

Assuming that a spectral window can be located by a pair (ibb, ispw) of integer, where ibb denotes the index of the baseband this spectral window belongs to, and ispw its index in that baseband, this method declares that the spectral window with coordinates (ibb1, ispw1) is the image of the spectral window with coordinates (ibb2, ispw2).

Parameters
ibb1st common coordinate of spw1
ispw12nd coordinate of spw1.
ispw22nd coordinate of spw2.
Exceptions
SDMDataObjectException
const SpectralWindow* asdmbinaries::SDMDataObject::DataStruct::imageOfSPW ( unsigned int  ibb,
unsigned int  ispw 
) const

Returns a pointer to the spectral window whom the spectral window passed in argument is the image.

Assuming that a spectral window spw can be located by a pair (ibb, ispw) of integer, where ibb denotes the index of the baseband this spectral window belongs to, and ispw its index in that baseband, this method returns a pointer to the spectral window defined as the image of spw. If spw is not an image then null is returned.

Parameters
ibb1st coordinate of spw
ispw2nd coordinate of spw
Exceptions
SDMDataObjectException
void asdmbinaries::SDMDataObject::DataStruct::imageSPW ( unsigned int  ibb,
unsigned int  ispw1,
unsigned int  ispw2 
)

void autoData(const BinaryPart& value);

Defines an association "spw1 has image spw2" between two spectral windows spw1 and spw2. Assuming that a spectral window can be located by a pair (ibb, ispw) of integer, where ibb denotes the index of the baseband this spectral window belongs to, and ispw its index in that baseband, this method declares that the spectral window with coordinates (ibb, ispw1) has the spectral window with coordinates (ibb, ispw2) as an image.

Parameters
ibb1st common coordinate of spw1 and spw2
ispw12nd coordinate of spw1.
ispw22nd coordinate of spw2.
Exceptions
SDMDataObjectException
const SpectralWindow* asdmbinaries::SDMDataObject::DataStruct::imageSPW ( unsigned int  ibb,
unsigned int  ispw 
) const

Returns a pointer to the spectral window image of a spectral window.

Assuming that a spectral window spw can be located by a pair (ibb, ispw) of integer, where ibb denotes the index of the baseband this spectral window belongs to, and ispw its index in that baseband, this method returns a pointer to the spectral window defined as the image of spw. If spw has no image defined then null is returned.

Parameters
ibb1st coordinate of spw
ispw2nd coordinate of spw
Exceptions
SDMDataObjectException
void asdmbinaries::SDMDataObject::DataStruct::owner ( const SDMDataObject o)
private
const ZeroLagsBinaryPart& asdmbinaries::SDMDataObject::DataStruct::zeroLags ( ) const

void actualDurations(const BinaryPart& value);

Returns the description the zeroLags attachment.

Returns
a reference to a ZeroLagsBinaryPart value.

Friends And Related Function Documentation

friend class HeaderParser
friend

Definition at line 689 of file SDMDataObject.h.

friend class SDMDataObject
friend

Definition at line 688 of file SDMDataObject.h.

friend class SDMDataObjectWriter
friend

Definition at line 690 of file SDMDataObject.h.

Member Data Documentation

BinaryPart asdmbinaries::SDMDataObject::DataStruct::actualDurations_
private

Definition at line 861 of file SDMDataObject.h.

BinaryPart asdmbinaries::SDMDataObject::DataStruct::actualTimes_
private

Definition at line 860 of file SDMDataObject.h.

std::vector<AtmPhaseCorrectionMod::AtmPhaseCorrection> asdmbinaries::SDMDataObject::DataStruct::apc_
private

Definition at line 857 of file SDMDataObject.h.

AutoDataBinaryPart asdmbinaries::SDMDataObject::DataStruct::autoData_
private

Definition at line 864 of file SDMDataObject.h.

std::vector<Baseband> asdmbinaries::SDMDataObject::DataStruct::basebands_
private

Definition at line 858 of file SDMDataObject.h.

BinaryPart asdmbinaries::SDMDataObject::DataStruct::crossData_
private

Definition at line 863 of file SDMDataObject.h.

BinaryPart asdmbinaries::SDMDataObject::DataStruct::flags_
private

Definition at line 859 of file SDMDataObject.h.

std::map<std::string, std::string> asdmbinaries::SDMDataObject::DataStruct::imageOfSPW_
private

Definition at line 870 of file SDMDataObject.h.

std::map<std::string, std::string> asdmbinaries::SDMDataObject::DataStruct::imageSPW_
private

Definition at line 869 of file SDMDataObject.h.

const SDMDataObject* asdmbinaries::SDMDataObject::DataStruct::owner_
private

Definition at line 866 of file SDMDataObject.h.

ZeroLagsBinaryPart asdmbinaries::SDMDataObject::DataStruct::zeroLags_
private

Definition at line 862 of file SDMDataObject.h.


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