34 #ifndef CalPhaseTable_CLASS
35 #define CalPhaseTable_CLASS
136 #include <asdmIDLC.h>
382 static const std::vector<std::string>&
getKeyName();
399 unsigned int size()
const;
417 static std::string
name() ;
457 std::string
toXML() ;
466 asdmIDL::CalPhaseTableIDL *
toIDL() ;
475 void toIDL(asdmIDL::CalPhaseTableIDL& x)
const;
486 void fromIDL(asdmIDL::CalPhaseTableIDL x) ;
545 CalPhaseRow *
newRow(BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numBaseline,
int numReceptor, std::vector<std::vector<float > > ampli, std::vector<std::vector<std::string > > antennaNames, std::vector<Length > baselineLengths, std::vector<std::vector<float > > decorrelationFactor, std::vector<Angle > direction, std::vector<Frequency > frequencyRange,
Interval integrationTime, std::vector<std::vector<float > >
phase, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<float > > phaseRMS, std::vector<std::vector<float > > statPhaseRMS);
595 std::vector<CalPhaseRow *>
get() ;
603 const std::vector<CalPhaseRow *>&
get()
const ;
626 CalPhaseRow*
getRowByKey(BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId);
679 CalPhaseRow*
lookup(BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numBaseline,
int numReceptor, std::vector<std::vector<float > > ampli, std::vector<std::vector<std::string > > antennaNames, std::vector<Length > baselineLengths, std::vector<std::vector<float > > decorrelationFactor, std::vector<Angle > direction, std::vector<Frequency > frequencyRange,
Interval integrationTime, std::vector<std::vector<float > >
phase, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<float > > phaseRMS, std::vector<std::vector<float > > statPhaseRMS);
745 std::vector<CalPhaseRow *>
row;
803 void toFile(std::string directory);
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalPhaseTable as those produced by the toFil...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
std::vector< CalPhaseRow * > privateRows
A data structure to store the pointers on the table's rows.
static const ByteOrder * Machine_Endianity
The Interval class implements an interval of time in units of nanoseconds.
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.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
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 setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
void addWithoutCheckingUnique(CalPhaseRow *x)
Brutally append an CalPhaseRow x to the collection of rows already stored in this table...
Entity getEntity() const
Return this table's Entity.
asdmIDL::CalPhaseTableIDL * toIDL()
Conversion Methods.
A class to represent byte order information.
TableExprNode phase(const TableExprNode &node)
The phase (i.e.
std::string toXML()
Produces an XML representation conform to the schema defined for CalPhase (CalPhaseTable.xsd).
The ASDM class is the container for all tables.
CalPhaseTable(ASDM &container)
Create a CalPhaseTable.
std::string getName() const
Return the name of this table.
void checkPresenceInMemory()
static std::string name()
Return the name of this table.
void fromIDL(asdmIDL::CalPhaseTableIDL x)
Populate this table from the content of a CalPhaseTableIDL Corba structure.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
void setEntity(Entity e)
Set this table's Entity.
CalPhaseRow * add(CalPhaseRow *x)
====> Append a row to its table.
The CalPhaseTable class is an Alma table.
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...
std::string getVersion() const
Return the version information about this table.
void setFromXMLFile(const std::string &directory)
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
std::vector< CalPhaseRow * > row
CalPhaseRow * newRow()
====> Row creation.
CalPhaseRow * lookup(BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, int numBaseline, int numReceptor, std::vector< std::vector< float > > ampli, std::vector< std::vector< std::string > > antennaNames, std::vector< Length > baselineLengths, std::vector< std::vector< float > > decorrelationFactor, std::vector< Angle > direction, std::vector< Frequency > frequencyRange, Interval integrationTime, std::vector< std::vector< float > > phase, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< std::vector< float > > phaseRMS, std::vector< std::vector< float > > statPhaseRMS)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
CalPhaseRow * checkAndAdd(CalPhaseRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
The CalPhaseRow class is a row of a CalPhaseTable.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void append(CalPhaseRow *x)
Brutally append an CalPhaseRow x to the collection of rows already stored in this table...
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.
unsigned int size() const
Return the number of rows in the table.
const Double e
e and functions thereof:
CalPhaseRow * getRowByKey(BasebandNameMod::BasebandName basebandName, ReceiverBandMod::ReceiverBand receiverBand, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId)
Returns a CalPhaseRow* given a key.
bool loadInProgress
Load the table in memory if necessary.
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...
ASDM & getContainer() const
Return the container to which this table belongs.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors