34 #ifndef CalPositionTable_CLASS
35 #define CalPositionTable_CLASS
116 #include <asdmIDLC.h>
129 class CalPositionRow;
323 static const std::vector<std::string>&
getKeyName();
340 unsigned int size()
const;
358 static std::string
name() ;
398 std::string
toXML() ;
407 asdmIDL::CalPositionTableIDL *
toIDL() ;
416 void toIDL(asdmIDL::CalPositionTableIDL& x)
const;
427 void fromIDL(asdmIDL::CalPositionTableIDL x) ;
484 CalPositionRow *
newRow(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Length > antennaPosition, std::string stationName, std::vector<Length > stationPosition, PositionMethodMod::PositionMethod positionMethod, ReceiverBandMod::ReceiverBand receiverBand,
int numAntenna, std::vector<std::string > refAntennaNames,
Length axesOffset,
Length axesOffsetErr,
bool axesOffsetFixed, std::vector<Length > positionOffset, std::vector<Length > positionErr,
double reducedChiSquared);
534 std::vector<CalPositionRow *>
get() ;
542 const std::vector<CalPositionRow *>&
get()
const ;
614 CalPositionRow*
lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Length > antennaPosition, std::string stationName, std::vector<Length > stationPosition, PositionMethodMod::PositionMethod positionMethod, ReceiverBandMod::ReceiverBand receiverBand,
int numAntenna, std::vector<std::string > refAntennaNames,
Length axesOffset,
Length axesOffsetErr,
bool axesOffsetFixed, std::vector<Length > positionOffset, std::vector<Length > positionErr,
double reducedChiSquared);
680 std::vector<CalPositionRow *>
row;
738 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
bool loadInProgress
Load the table in memory if necessary.
void setFromXMLFile(const std::string &directory)
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
A class to represent byte order information.
CalPositionRow * getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId)
Returns a CalPositionRow* given a key.
CalPositionRow * add(CalPositionRow *x)
====> Append a row to its table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
asdmIDL::CalPositionTableIDL * toIDL()
Conversion Methods.
void checkPresenceInMemory()
The ASDM class is the container for all tables.
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 append(CalPositionRow *x)
Brutally append an CalPositionRow x to the collection of rows already stored in 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.
std::vector< CalPositionRow * > privateRows
A data structure to store the pointers on the table's rows.
void addWithoutCheckingUnique(CalPositionRow *x)
Brutally append an CalPositionRow x to the collection of rows already stored in this table...
std::vector< CalPositionRow * > row
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
The Length class implements a quantity of length in meters.
std::string getName() const
Return the name of this table.
CalPositionRow * newRow()
====> Row creation.
The CalPositionTable class is an Alma table.
CalPositionTable(ASDM &container)
Create a CalPositionTable.
unsigned int size() const
Return the number of rows in the 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...
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
Entity getEntity() const
Return this table's Entity.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
void setEntity(Entity e)
Set this table's Entity.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalPositionTable as those produced by the to...
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.
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.
const Double e
e and functions thereof:
CalPositionRow * lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Length > antennaPosition, std::string stationName, std::vector< Length > stationPosition, PositionMethodMod::PositionMethod positionMethod, ReceiverBandMod::ReceiverBand receiverBand, int numAntenna, std::vector< std::string > refAntennaNames, Length axesOffset, Length axesOffsetErr, bool axesOffsetFixed, std::vector< Length > positionOffset, std::vector< Length > positionErr, double reducedChiSquared)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
std::string getVersion() const
Return the version information about this table.
CalPositionRow * checkAndAdd(CalPositionRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
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 setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
virtual ~CalPositionTable()
The CalPositionRow class is a row of a CalPositionTable.
std::string toXML()
Produces an XML representation conform to the schema defined for CalPosition (CalPositionTable.xsd).
void fromIDL(asdmIDL::CalPositionTableIDL x)
Populate this table from the content of a CalPositionTableIDL Corba structure.
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.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
static std::string name()
Return the name of this table.