34 #ifndef CalHolographyTable_CLASS
35 #define CalHolographyTable_CLASS
140 #include <asdmIDLC.h>
153 class CalHolographyRow;
387 static const std::vector<std::string>&
getKeyName();
404 unsigned int size()
const;
422 static std::string
name() ;
462 std::string
toXML() ;
471 asdmIDL::CalHolographyTableIDL *
toIDL() ;
480 void toIDL(asdmIDL::CalHolographyTableIDL& x)
const;
491 void fromIDL(asdmIDL::CalHolographyTableIDL x) ;
548 CalHolographyRow *
newRow(std::string antennaName,
Tag calDataId,
Tag calReductionId, AntennaMakeMod::AntennaMake antennaMake,
ArrayTime startValidTime,
ArrayTime endValidTime,
Temperature ambientTemperature, std::vector<Length > focusPosition, std::vector<Frequency > frequencyRange,
double illuminationTaper,
int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
int numPanelModes, ReceiverBandMod::ReceiverBand receiverBand,
EntityRef beamMapUID,
Length rawRMS,
Length weightedRMS,
EntityRef surfaceMapUID, std::vector<Angle > direction);
598 std::vector<CalHolographyRow *>
get() ;
606 const std::vector<CalHolographyRow *>&
get()
const ;
676 CalHolographyRow*
lookup(std::string antennaName,
Tag calDataId,
Tag calReductionId, AntennaMakeMod::AntennaMake antennaMake,
ArrayTime startValidTime,
ArrayTime endValidTime,
Temperature ambientTemperature, std::vector<Length > focusPosition, std::vector<Frequency > frequencyRange,
double illuminationTaper,
int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
int numPanelModes, ReceiverBandMod::ReceiverBand receiverBand,
EntityRef beamMapUID,
Length rawRMS,
Length weightedRMS,
EntityRef surfaceMapUID, std::vector<Angle > direction);
742 std::vector<CalHolographyRow *>
row;
800 void toFile(std::string directory);
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...
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 ByteOrder * Machine_Endianity
virtual ~CalHolographyTable()
CalHolographyRow * lookup(std::string antennaName, Tag calDataId, Tag calReductionId, AntennaMakeMod::AntennaMake antennaMake, ArrayTime startValidTime, ArrayTime endValidTime, Temperature ambientTemperature, std::vector< Length > focusPosition, std::vector< Frequency > frequencyRange, double illuminationTaper, int numReceptor, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, int numPanelModes, ReceiverBandMod::ReceiverBand receiverBand, EntityRef beamMapUID, Length rawRMS, Length weightedRMS, EntityRef surfaceMapUID, std::vector< Angle > direction)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
std::vector< CalHolographyRow * > row
void setFromXMLFile(const std::string &directory)
std::vector< CalHolographyRow * > privateRows
A data structure to store the pointers on the table's rows.
unsigned int size() const
Return the number of rows in the table.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalHolographyTable as those produced by the ...
void setEntity(Entity e)
Set this table's Entity.
std::string getVersion() const
Return the version information about this table.
A class to represent byte order information.
Entity getEntity() const
Return this table's Entity.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
The ASDM class is the container for all tables.
CalHolographyRow * newRow()
====> Row creation.
The CalHolographyRow class is a row of a CalHolographyTable.
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::string toXML()
Produces an XML representation conform to the schema defined for CalHolography (CalHolographyTable.xsd).
The Temperature class implements a quantity of temperature in degrees Kelvin.
void checkPresenceInMemory()
The EntityRef class is an identification of a persistant entity in the ALMA archive.
bool loadInProgress
Load the table in memory if necessary.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
CalHolographyRow * checkAndAdd(CalHolographyRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void addWithoutCheckingUnique(CalHolographyRow *x)
Brutally append an CalHolographyRow x to the collection of rows already stored in this 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 Length class implements a quantity of length in meters.
asdmIDL::CalHolographyTableIDL * toIDL()
Conversion Methods.
std::string getName() const
Return the name of this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
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.
const Double e
e and functions thereof:
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
CalHolographyRow * getRowByKey(std::string antennaName, Tag calDataId, Tag calReductionId)
Returns a CalHolographyRow* given a key.
CalHolographyTable(ASDM &container)
Create a CalHolographyTable.
ASDM & getContainer() const
Return the container to which this table belongs.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
static std::string name()
Return the name of this table.
void append(CalHolographyRow *x)
Brutally append an CalHolographyRow x to the collection of rows already stored in this table...
The CalHolographyTable class is an Alma table.
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.
CalHolographyRow * add(CalHolographyRow *x)
====> Append a row to its table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
void fromIDL(asdmIDL::CalHolographyTableIDL x)
Populate this table from the content of a CalHolographyTableIDL Corba structure.