casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
asdmbinaries::SDMDataSubset Class Reference

SDMDataObject:: More...

#include <SDMDataObject.h>

List of all members.

Public Member Functions

 SDMDataSubset (SDMDataObject *owner=0)
 SDMDataSubset (SDMDataObject *owner, unsigned long long time, unsigned long long interval, const vector< float > &autoData)
 SDMDataSubset (const SDMDataSubset &sdmDataSubset)
SDMDataSubsetoperator= (const SDMDataSubset &sdmDataSubset)
virtual ~SDMDataSubset ()
const SDMDataObjectowner () const
unsigned int integrationNum () const
unsigned int subintegrationNum () const
string projectPath () const
 Returns the project path of this SDMDataSubset.
unsigned long long time () const
 Returns the midpoint of :
unsigned long long interval () const
 Returns the duration of the subscan in the case of total power data.
string toString (unsigned int N=10) const
 Returns a description of this SDMDataSubset.
void binAttachToXML (const string &name, ostringstream &oss)
void tpBinAttachToXML (ostringstream &oss)
void corrBinAttachToXML (ostringstream &oss)
void toXML (ostringstream &oss) const
string toXML ()
 Returns an XML representation of this SDMDataSubset.
unsigned long int actualDurations (const ACTUALDURATIONSTYPE *&ptr) const
 Set ptr to the adress of the array of ActualDurations and returns the number of actualDurations.
uint64_t actualDurationsPosition () const
 Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.
unsigned long int actualTimes (const ACTUALTIMESTYPE *&ptr) const
 Set ptr to the adress of the array of ActualTimes and returns the number of ActualTimes.
uint64_t actualTimesPosition () const
 Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.
unsigned long int autoData (const AUTODATATYPE *&ptr) const
 Set ptr to the adress of the array of AutoData and returns the number of AutoData.
uint64_t autoDataPosition () const
 Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.
unsigned long int crossData (const SHORTCROSSDATATYPE *&ptr) const
 Set ptr to the adress of the array of short int CrossData and returns the number of short int CrossData.
unsigned long int crossData (const INTCROSSDATATYPE *&ptr) const
 Set ptr to the adress of the array of int CrossData and Returns the number of long int CrossData.
unsigned long int crossData (const FLOATCROSSDATATYPE *&ptr) const
 Set ptr to the adress of the array of float CrossData and Returns the number of long int CrossData.
uint64_t crossDataPosition () const
 Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.
PrimitiveDataType crossDataType () const
 Return the type of cross data values.
void crossDataType (PrimitiveDataType value)
unsigned long int flags (const FLAGSTYPE *&ptr) const
 Set ptr to the adress of the array of flags and returns the number of flags.
uint64_t flagsPosition () const
 Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.
unsigned long int zeroLags (const ZEROLAGSTYPE *&ptr) const
 Set ptr to the adress of the array of ZeroLags and returns the number of ZeroLags.
uint64_t zeroLagsPosition () const
 Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.
bool aborted () const
 Returns true if and only if this corresponds to an aborted [sub]integration.
unsigned long long abortTime () const
 Returns the time when the [sub]integration has been declared aborted.
string abortReason () const
 Returns the reason why the [sub]integration was aborted.
 SDMDataSubset (SDMDataObject *owner=0)
 SDMDataSubset (SDMDataObject *owner, unsigned long long time, unsigned long long interval, const vector< float > &autoData)
 SDMDataSubset (const SDMDataSubset &sdmDataSubset)
SDMDataSubsetoperator= (const SDMDataSubset &sdmDataSubset)
virtual ~SDMDataSubset ()
const SDMDataObjectowner () const
unsigned int integrationNum () const
unsigned int subintegrationNum () const
string projectPath () const
 Returns the project path of this SDMDataSubset.
unsigned long long time () const
 Returns the midpoint of :
unsigned long long interval () const
 Returns the duration of the subscan in the case of total power data.
string toString (unsigned int N=10) const
 Returns a description of this SDMDataSubset.
void binAttachToXML (const string &name, ostringstream &oss)
void tpBinAttachToXML (ostringstream &oss)
void corrBinAttachToXML (ostringstream &oss)
void toXML (ostringstream &oss) const
string toXML ()
 Returns an XML representation of this SDMDataSubset.
unsigned long int actualDurations (const ACTUALDURATIONSTYPE *&ptr) const
 Set ptr to the adress of the array of ActualDurations and returns the number of actualDurations.
unsigned long int actualTimes (const ACTUALTIMESTYPE *&ptr) const
 Set ptr to the adress of the array of ActualTimes and returns the number of ActualTimes.
unsigned long int autoData (const AUTODATATYPE *&ptr) const
 Set ptr to the adress of the array of AutoData and returns the number of AutoData.
unsigned long int crossData (const SHORTCROSSDATATYPE *&ptr) const
 Set ptr to the adress of the array of short int CrossData and returns the number of short int CrossData.
unsigned long int crossData (const INTCROSSDATATYPE *&ptr) const
 Set ptr to the adress of the array of int CrossData and Returns the number of long int CrossData.
unsigned long int crossData (const FLOATCROSSDATATYPE *&ptr) const
 Set ptr to the adress of the array of float CrossData and Returns the number of long int CrossData.
PrimitiveDataType crossDataType () const
 Return the type of cross data values.
void crossDataType (PrimitiveDataType value)
unsigned long int flags (const FLAGSTYPE *&ptr) const
 Set ptr to the adress of the array of flags and returns the number of flags.
unsigned long int zeroLags (const ZEROLAGSTYPE *&ptr) const
 Set ptr to the adress of the array of ZeroLags and returns the number of ZeroLags.
bool aborted () const
 Returns true if and only if this corresponds to an aborted [sub]integration.
unsigned long long abortTime () const
 Returns the time when the [sub]integration has been declared aborted.
string abortReason () const
 Returns the reason why the [sub]integration was aborted.

Private Member Functions

string xsiType () const
string xsiType () const

Private Attributes

SDMDataObjectowner_
unsigned int integrationNum_
unsigned int subintegrationNum_
CorrelationMode ref_
unsigned long long time_
unsigned long long interval_
string dataStruct_
string flagsREF_
string actualTimesREF_
string actualDurationsREF_
string zeroLagsREF_
string crossDataREF_
PrimitiveDataType crossDataType_
string autoDataREF_
const ACTUALTIMESTYPEactualTimes_
unsigned long int nActualTimes_
uint64_t actualTimesPosition_
const ACTUALDURATIONSTYPEactualDurations_
unsigned long int nActualDurations_
uint64_t actualDurationsPosition_
const ZEROLAGSTYPEzeroLags_
unsigned long int nZeroLags_
uint64_t zeroLagsPosition_
const FLAGSTYPEflags_
unsigned long int nFlags_
uint64_t flagsPosition_
const INTCROSSDATATYPElongCrossData_
const SHORTCROSSDATATYPEshortCrossData_
const FLOATCROSSDATATYPEfloatCrossData_
unsigned long int nCrossData_
uint64_t crossDataPosition_
const AUTODATATYPEautoData_
unsigned long int nAutoData_
uint64_t autoDataPosition_
bool aborted_
unsigned long long int abortTime_
string abortReason_

Friends

class SDMDataObject
class SDMDataObjectReader
class SDMDataObjectStreamReader
class SDMDataObjectWriter
class CorrSubsetHeaderParser
class TPSubsetHeaderParser

Detailed Description

SDMDataObject::

 SDMDataSubset:: declarations

An SDMDataSubset is a class to represent the binary data stored during :

Definition at line 1236 of file SDMDataObject.h.


Constructor & Destructor Documentation

asdmbinaries::SDMDataSubset::SDMDataSubset ( SDMDataObject owner,
unsigned long long  time,
unsigned long long  interval,
const vector< float > &  autoData 
)
asdmbinaries::SDMDataSubset::SDMDataSubset ( SDMDataObject owner,
unsigned long long  time,
unsigned long long  interval,
const vector< float > &  autoData 
)

Member Function Documentation

Returns true if and only if this corresponds to an aborted [sub]integration.

Returns:
a bool.

Returns true if and only if this corresponds to an aborted [sub]integration.

Returns:
a bool.

Returns the reason why the [sub]integration was aborted.

Returns:
a string.
Note:
Of course, the returned value is not meaningful if aborted() returns false.

Returns the reason why the [sub]integration was aborted.

Returns:
a string.
Note:
Of course, the returned value is not meaningful if aborted() returns false.
unsigned long long asdmbinaries::SDMDataSubset::abortTime ( ) const

Returns the time when the [sub]integration has been declared aborted.

Returns:
an unsigned long long.
Note:
Of course, the returned value is not meaningful if aborted() returns false.
unsigned long long asdmbinaries::SDMDataSubset::abortTime ( ) const

Returns the time when the [sub]integration has been declared aborted.

Returns:
an unsigned long long.
Note:
Of course, the returned value is not meaningful if aborted() returns false.
unsigned long int asdmbinaries::SDMDataSubset::actualDurations ( const ACTUALDURATIONSTYPE *&  ptr) const

Set ptr to the adress of the array of ActualDurations and returns the number of actualDurations.

Parameters:
ptra reference to a pointer on long long.
Returns:
the number of ActualDurations.
unsigned long int asdmbinaries::SDMDataSubset::actualDurations ( const ACTUALDURATIONSTYPE *&  ptr) const

Set ptr to the adress of the array of ActualDurations and returns the number of actualDurations.

Parameters:
ptra reference to a pointer on long long.
Returns:
the number of ActualDurations.

Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.

Has no meaning otherwise.

unsigned long int asdmbinaries::SDMDataSubset::actualTimes ( const ACTUALTIMESTYPE *&  ptr) const

Set ptr to the adress of the array of ActualTimes and returns the number of ActualTimes.

Parameters:
ptra reference to a pointer on long long.
Returns:
the number of ActualTimes.
unsigned long int asdmbinaries::SDMDataSubset::actualTimes ( const ACTUALTIMESTYPE *&  ptr) const

Set ptr to the adress of the array of ActualTimes and returns the number of ActualTimes.

Parameters:
ptra reference to a pointer on long long.
Returns:
the number of ActualTimes.

Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.

Has no meaning otherwise.

unsigned long int asdmbinaries::SDMDataSubset::autoData ( const AUTODATATYPE *&  ptr) const

Set ptr to the adress of the array of AutoData and returns the number of AutoData.

Parameters:
ptra reference to a pointer on float.
Returns:
the number of AutoData.
unsigned long int asdmbinaries::SDMDataSubset::autoData ( const AUTODATATYPE *&  ptr) const

Set ptr to the adress of the array of AutoData and returns the number of AutoData.

Parameters:
ptra reference to a pointer on float.
Returns:
the number of AutoData.

Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.

Has no meaning otherwise.

void asdmbinaries::SDMDataSubset::binAttachToXML ( const string &  name,
ostringstream &  oss 
)
void asdmbinaries::SDMDataSubset::binAttachToXML ( const string &  name,
ostringstream &  oss 
)
void asdmbinaries::SDMDataSubset::corrBinAttachToXML ( ostringstream &  oss)
void asdmbinaries::SDMDataSubset::corrBinAttachToXML ( ostringstream &  oss)
unsigned long int asdmbinaries::SDMDataSubset::crossData ( const SHORTCROSSDATATYPE *&  ptr) const

Set ptr to the adress of the array of short int CrossData and returns the number of short int CrossData.

Parameters:
ptra reference to a pointer on short int.
Returns:
the number of short int CrossData values.
unsigned long int asdmbinaries::SDMDataSubset::crossData ( const INTCROSSDATATYPE *&  ptr) const

Set ptr to the adress of the array of int CrossData and Returns the number of long int CrossData.

Parameters:
ptra reference to a pointer on long int.
Returns:
the number of long int CrossData values.
unsigned long int asdmbinaries::SDMDataSubset::crossData ( const FLOATCROSSDATATYPE *&  ptr) const

Set ptr to the adress of the array of float CrossData and Returns the number of long int CrossData.

Parameters:
ptra reference to a pointer on float.
Returns:
the number of float CrossData values.
unsigned long int asdmbinaries::SDMDataSubset::crossData ( const SHORTCROSSDATATYPE *&  ptr) const

Set ptr to the adress of the array of short int CrossData and returns the number of short int CrossData.

Parameters:
ptra reference to a pointer on short int.
Returns:
the number of short int CrossData values.
unsigned long int asdmbinaries::SDMDataSubset::crossData ( const INTCROSSDATATYPE *&  ptr) const

Set ptr to the adress of the array of int CrossData and Returns the number of long int CrossData.

Parameters:
ptra reference to a pointer on long int.
Returns:
the number of long int CrossData values.
unsigned long int asdmbinaries::SDMDataSubset::crossData ( const FLOATCROSSDATATYPE *&  ptr) const

Set ptr to the adress of the array of float CrossData and Returns the number of long int CrossData.

Parameters:
ptra reference to a pointer on float.
Returns:
the number of float CrossData values.

Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.

Has no meaning otherwise.

PrimitiveDataType asdmbinaries::SDMDataSubset::crossDataType ( ) const

Return the type of cross data values.

Returns:
a value of the enumeration PrimitiveDataTypeMod::PrimitiveDataType.
void asdmbinaries::SDMDataSubset::crossDataType ( PrimitiveDataType  value)
PrimitiveDataType asdmbinaries::SDMDataSubset::crossDataType ( ) const

Return the type of cross data values.

Returns:
a value of the enumeration PrimitiveDataTypeMod::PrimitiveDataType.
void asdmbinaries::SDMDataSubset::crossDataType ( PrimitiveDataType  value)
unsigned long int asdmbinaries::SDMDataSubset::flags ( const FLAGSTYPE *&  ptr) const

Set ptr to the adress of the array of flags and returns the number of flags.

Parameters:
ptra reference to a pointer on unsigned long int.
Returns:
the number of flags.
unsigned long int asdmbinaries::SDMDataSubset::flags ( const FLAGSTYPE *&  ptr) const

Set ptr to the adress of the array of flags and returns the number of flags.

Parameters:
ptra reference to a pointer on unsigned long int.
Returns:
the number of flags.

Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.

Has no meaning otherwise.

unsigned long long asdmbinaries::SDMDataSubset::interval ( ) const

Returns the duration of the subscan in the case of total power data.

Note:
not relevant in the case of correlator data.
unsigned long long asdmbinaries::SDMDataSubset::interval ( ) const

Returns the duration of the subscan in the case of total power data.

Note:
not relevant in the case of correlator data.
SDMDataSubset& asdmbinaries::SDMDataSubset::operator= ( const SDMDataSubset sdmDataSubset)
SDMDataSubset& asdmbinaries::SDMDataSubset::operator= ( const SDMDataSubset sdmDataSubset)

Returns the project path of this SDMDataSubset.

the project path is a string of the form :

  • /<execblock-number>/<scan-number>/<subscan-number>/<integration-number> in the case of correlator data.
  • /<execblock-number>/<scan-number>/<subscan-number> in the case of total power data.

Returns the project path of this SDMDataSubset.

the project path is a string of the form :

  • /<execblock-number>/<scan-number>/<subscan-number>/<integration-number> in the case of correlator data.
  • /<execblock-number>/<scan-number>/<subscan-number> in the case of total power data.
unsigned long long asdmbinaries::SDMDataSubset::time ( ) const

Returns the midpoint of :

  • the integration in the case of correlator data.
  • the subscan in the case of total power data.
unsigned long long asdmbinaries::SDMDataSubset::time ( ) const

Returns the midpoint of :

  • the integration in the case of correlator data.
  • the subscan in the case of total power data.
string asdmbinaries::SDMDataSubset::toString ( unsigned int  N = 10) const

Returns a description of this SDMDataSubset.

string asdmbinaries::SDMDataSubset::toString ( unsigned int  N = 10) const

Returns a description of this SDMDataSubset.

void asdmbinaries::SDMDataSubset::toXML ( ostringstream &  oss) const
void asdmbinaries::SDMDataSubset::toXML ( ostringstream &  oss) const

Returns an XML representation of this SDMDataSubset.

Returns an XML representation of this SDMDataSubset.

void asdmbinaries::SDMDataSubset::tpBinAttachToXML ( ostringstream &  oss)
void asdmbinaries::SDMDataSubset::tpBinAttachToXML ( ostringstream &  oss)
string asdmbinaries::SDMDataSubset::xsiType ( ) const [private]
string asdmbinaries::SDMDataSubset::xsiType ( ) const [private]
unsigned long int asdmbinaries::SDMDataSubset::zeroLags ( const ZEROLAGSTYPE *&  ptr) const

Set ptr to the adress of the array of ZeroLags and returns the number of ZeroLags.

Parameters:
ptra reference to a pointer on float.
Returns:
the number of autoData.
unsigned long int asdmbinaries::SDMDataSubset::zeroLags ( const ZEROLAGSTYPE *&  ptr) const

Set ptr to the adress of the array of ZeroLags and returns the number of ZeroLags.

Parameters:
ptra reference to a pointer on float.
Returns:
the number of autoData.

Returns the position (0-based, relative to the beginning of the file) of this part when it has been read in a file.

Has no meaning otherwise.


Friends And Related Function Documentation

Definition at line 1241 of file SDMDataObject.h.

SDMDataObject [friend]

Definition at line 1237 of file SDMDataObject.h.

Definition at line 1238 of file SDMDataObject.h.

Definition at line 1239 of file SDMDataObject.h.

Definition at line 1240 of file SDMDataObject.h.

Definition at line 1242 of file SDMDataObject.h.


Member Data Documentation

Definition at line 1513 of file SDMDataObject.h.

Definition at line 1515 of file SDMDataObject.h.

unsigned long long int asdmbinaries::SDMDataSubset::abortTime_ [private]

Definition at line 1514 of file SDMDataObject.h.

Definition at line 1493 of file SDMDataObject.h.

Definition at line 1495 of file SDMDataObject.h.

Definition at line 1484 of file SDMDataObject.h.

Definition at line 1490 of file SDMDataObject.h.

Definition at line 1492 of file SDMDataObject.h.

Definition at line 1483 of file SDMDataObject.h.

Definition at line 1507 of file SDMDataObject.h.

Definition at line 1509 of file SDMDataObject.h.

Definition at line 1488 of file SDMDataObject.h.

Definition at line 1506 of file SDMDataObject.h.

Definition at line 1486 of file SDMDataObject.h.

PrimitiveDataType asdmbinaries::SDMDataSubset::crossDataType_ [private]

Definition at line 1487 of file SDMDataObject.h.

Definition at line 1481 of file SDMDataObject.h.

Definition at line 1499 of file SDMDataObject.h.

Definition at line 1501 of file SDMDataObject.h.

Definition at line 1482 of file SDMDataObject.h.

Definition at line 1504 of file SDMDataObject.h.

Definition at line 1476 of file SDMDataObject.h.

unsigned long long asdmbinaries::SDMDataSubset::interval_ [private]

Definition at line 1480 of file SDMDataObject.h.

Definition at line 1502 of file SDMDataObject.h.

Definition at line 1494 of file SDMDataObject.h.

unsigned long int asdmbinaries::SDMDataSubset::nActualTimes_ [private]

Definition at line 1491 of file SDMDataObject.h.

unsigned long int asdmbinaries::SDMDataSubset::nAutoData_ [private]

Definition at line 1508 of file SDMDataObject.h.

unsigned long int asdmbinaries::SDMDataSubset::nCrossData_ [private]

Definition at line 1505 of file SDMDataObject.h.

unsigned long int asdmbinaries::SDMDataSubset::nFlags_ [private]

Definition at line 1500 of file SDMDataObject.h.

unsigned long int asdmbinaries::SDMDataSubset::nZeroLags_ [private]

Definition at line 1497 of file SDMDataObject.h.

Definition at line 1475 of file SDMDataObject.h.

CorrelationMode asdmbinaries::SDMDataSubset::ref_ [private]

Definition at line 1478 of file SDMDataObject.h.

Definition at line 1503 of file SDMDataObject.h.

Definition at line 1477 of file SDMDataObject.h.

unsigned long long asdmbinaries::SDMDataSubset::time_ [private]

Definition at line 1479 of file SDMDataObject.h.

Definition at line 1496 of file SDMDataObject.h.

Definition at line 1498 of file SDMDataObject.h.

Definition at line 1485 of file SDMDataObject.h.


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