34 #ifndef CalCurveTable_CLASS
35 #define CalCurveTable_CLASS
108 #include <asdmIDLC.h>
296 static const std::vector<std::string>&
getKeyName();
313 unsigned int size()
const;
331 static std::string
name() ;
371 std::string
toXML() ;
380 asdmIDL::CalCurveTableIDL *
toIDL() ;
389 void toIDL(asdmIDL::CalCurveTableIDL& x)
const;
400 void fromIDL(asdmIDL::CalCurveTableIDL x) ;
451 CalCurveRow *
newRow(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Frequency > frequencyRange,
int numAntenna,
int numPoly,
int numReceptor, std::vector<std::string > antennaNames, std::string refAntennaName, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<std::vector<float > > > curve, std::vector<double > reducedChiSquared);
501 std::vector<CalCurveRow *>
get() ;
509 const std::vector<CalCurveRow *>&
get()
const ;
532 CalCurveRow*
getRowByKey(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId);
577 CalCurveRow*
lookup(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Frequency > frequencyRange,
int numAntenna,
int numPoly,
int numReceptor, std::vector<std::string > antennaNames, std::string refAntennaName, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<std::vector<float > > > curve, std::vector<double > reducedChiSquared);
643 std::vector<CalCurveRow *>
row;
701 void toFile(std::string directory);
CalCurveRow * checkAndAdd(CalCurveRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
static const ByteOrder * Machine_Endianity
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
bool loadInProgress
Load the table in memory if necessary.
asdmIDL::CalCurveTableIDL * toIDL()
Conversion Methods.
void setFromXMLFile(const std::string &directory)
std::string getName() const
Return the name of this table.
A class to represent byte order information.
void addWithoutCheckingUnique(CalCurveRow *x)
Brutally append an CalCurveRow x to the collection of rows already stored in this table...
ASDM & getContainer() const
Return the container to which this table belongs.
The ASDM class is the container for all tables.
std::vector< CalCurveRow * > privateRows
A data structure to store the pointers on the table's rows.
CalCurveTable(ASDM &container)
Create a CalCurveTable.
std::string toXML()
Produces an XML representation conform to the schema defined for CalCurve (CalCurveTable.xsd).
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
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.
Entity getEntity() const
Return this table's Entity.
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...
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void setEntity(Entity e)
Set this table's Entity.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
static std::string name()
Return the name of this table.
void append(CalCurveRow *x)
Brutally append an CalCurveRow x to the collection of rows already stored in this table...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
std::vector< CalCurveRow * > row
std::string getVersion() const
Return the version information about this table.
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 fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
void fromIDL(asdmIDL::CalCurveTableIDL x)
Populate this table from the content of a CalCurveTableIDL Corba structure.
CalCurveRow * newRow()
====> Row creation.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
const Double e
e and functions thereof:
unsigned int size() const
Return the number of rows in the table.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
CalCurveRow * lookup(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Frequency > frequencyRange, int numAntenna, int numPoly, int numReceptor, std::vector< std::string > antennaNames, std::string refAntennaName, 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 toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
CalCurveRow * add(CalCurveRow *x)
====> Append a row to its table.
The CalCurveTable class is an Alma table.
The CalCurveRow class is a row of a CalCurveTable.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalCurveTable as those produced by the toFil...
void checkPresenceInMemory()
CalCurveRow * getRowByKey(AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, CalCurveTypeMod::CalCurveType typeCurve, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId)
Returns a CalCurveRow* given a key.
The Entity class is an identification of a persistant entity in the ALMA archive. ...