34 #ifndef CalBandpassTable_CLASS
35 #define CalBandpassTable_CLASS
130 #include <asdmIDLC.h>
143 class CalBandpassRow;
385 static const std::vector<std::string>&
getKeyName();
402 unsigned int size()
const;
420 static std::string
name() ;
460 std::string
toXML() ;
469 asdmIDL::CalBandpassTableIDL *
toIDL() ;
478 void toIDL(asdmIDL::CalBandpassTableIDL& x)
const;
489 void fromIDL(asdmIDL::CalBandpassTableIDL x) ;
544 CalBandpassRow *
newRow(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numAntenna,
int numPoly,
int numReceptor, std::vector<std::string > antennaNames, std::string refAntennaName, std::vector<Frequency > freqLimits, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<std::vector<float > > > curve, std::vector<double > reducedChiSquared);
594 std::vector<CalBandpassRow *>
get() ;
602 const std::vector<CalBandpassRow *>&
get()
const ;
629 CalBandpassRow*
getRowByKey(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId);
678 CalBandpassRow*
lookup(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numAntenna,
int numPoly,
int numReceptor, std::vector<std::string > antennaNames, std::string refAntennaName, std::vector<Frequency > freqLimits, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<std::vector<float > > > curve, std::vector<double > reducedChiSquared);
744 std::vector<CalBandpassRow *>
row;
802 void toFile(std::string directory);
std::string toMIME(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
static const ByteOrder * Machine_Endianity
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
Entity getEntity() const
Return this table's Entity.
asdmIDL::CalBandpassTableIDL * toIDL()
Conversion Methods.
A class to represent byte order information.
std::vector< CalBandpassRow * > row
virtual ~CalBandpassTable()
The ASDM class is the container for all tables.
The CalBandpassTable class is an Alma table.
The CalBandpassRow class is a row of a CalBandpassTable.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
CalBandpassRow * checkAndAdd(CalBandpassRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
CalBandpassRow * getRowByKey(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId)
Returns a CalBandpassRow* given a key.
CalBandpassRow * add(CalBandpassRow *x)
====> Append a row to its table.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
ASDM & getContainer() const
Return the container to which this table belongs.
std::string getVersion() const
Return the version information about this table.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
CalBandpassTable(ASDM &container)
Create a CalBandpassTable.
void setEntity(Entity e)
Set this table's Entity.
void setFromXMLFile(const std::string &directory)
std::string toXML()
Produces an XML representation conform to the schema defined for CalBandpass (CalBandpassTable.xsd).
void setFromMIMEFile(const std::string &directory)
Private methods involved during the build of this table out of the content of file(s) containing an e...
void checkPresenceInMemory()
bool loadInProgress
Load the table in memory if necessary.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
unsigned int size() const
Return the number of rows in the table.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
static std::string name()
Return the name of this table.
CalBandpassRow * newRow()
====> Row creation.
void fromIDL(asdmIDL::CalBandpassTableIDL x)
Populate this table from the content of a CalBandpassTableIDL Corba structure.
void append(CalBandpassRow *x)
Brutally append an CalBandpassRow x to the collection of rows already stored in this table...
std::vector< CalBandpassRow * > privateRows
A data structure to store the pointers on the table's rows.
A pure virtual class whose derived classes are expected to be functors whose behaviours will be to re...
The Representable interface is implemented by all tables and by the container.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
const Double e
e and functions thereof:
std::string getName() const
Return the name of this table.
void addWithoutCheckingUnique(CalBandpassRow *x)
Brutally append an CalBandpassRow x to the collection of rows already stored in this table...
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void setFromMIME(const std::string &mimeMsg)
Extracts the binary part of a MIME message and deserialize its content to fill this with the result o...
CalBandpassRow * lookup(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband sideband, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, int numAntenna, int numPoly, int numReceptor, std::vector< std::string > antennaNames, std::string refAntennaName, std::vector< Frequency > freqLimits, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< std::vector< std::vector< float > > > curve, std::vector< double > reducedChiSquared)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalBandpassTable as those produced by the to...
The Entity class is an identification of a persistant entity in the ALMA archive. ...