34 #ifndef CalAtmosphereTable_CLASS
35 #define CalAtmosphereTable_CLASS
160 #include <asdmIDLC.h>
173 class CalAtmosphereRow;
474 static const std::vector<std::string>&
getKeyName();
491 unsigned int size()
const;
509 static std::string
name() ;
549 std::string
toXML() ;
558 asdmIDL::CalAtmosphereTableIDL *
toIDL() ;
567 void toIDL(asdmIDL::CalAtmosphereTableIDL& x)
const;
578 void fromIDL(asdmIDL::CalAtmosphereTableIDL x) ;
657 CalAtmosphereRow *
newRow(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numFreq,
int numLoad,
int numReceptor, std::vector<std::vector<float > > forwardEffSpectrum, std::vector<Frequency > frequencyRange,
Pressure groundPressure,
Humidity groundRelHumidity, std::vector<Frequency > frequencySpectrum,
Temperature groundTemperature, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<float > > powerSkySpectrum, std::vector<std::vector<std::vector<float > > > powerLoadSpectrum, SyscalMethodMod::SyscalMethod syscalType, std::vector<std::vector<Temperature > > tAtmSpectrum, std::vector<std::vector<Temperature > > tRecSpectrum, std::vector<std::vector<Temperature > > tSysSpectrum, std::vector<std::vector<float > > tauSpectrum, std::vector<Temperature > tAtm, std::vector<Temperature > tRec, std::vector<Temperature > tSys, std::vector<float > tau, std::vector<Length > water, std::vector<Length > waterError);
707 std::vector<CalAtmosphereRow *>
get() ;
715 const std::vector<CalAtmosphereRow *>&
get()
const ;
738 CalAtmosphereRow*
getRowByKey(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId);
811 CalAtmosphereRow*
lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numFreq,
int numLoad,
int numReceptor, std::vector<std::vector<float > > forwardEffSpectrum, std::vector<Frequency > frequencyRange,
Pressure groundPressure,
Humidity groundRelHumidity, std::vector<Frequency > frequencySpectrum,
Temperature groundTemperature, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<std::vector<float > > powerSkySpectrum, std::vector<std::vector<std::vector<float > > > powerLoadSpectrum, SyscalMethodMod::SyscalMethod syscalType, std::vector<std::vector<Temperature > > tAtmSpectrum, std::vector<std::vector<Temperature > > tRecSpectrum, std::vector<std::vector<Temperature > > tSysSpectrum, std::vector<std::vector<float > > tauSpectrum, std::vector<Temperature > tAtm, std::vector<Temperature > tRec, std::vector<Temperature > tSys, std::vector<float > tau, std::vector<Length > water, std::vector<Length > waterError);
877 std::vector<CalAtmosphereRow *>
row;
935 void toFile(std::string directory);
void setEntity(Entity e)
Set this table's Entity.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
std::string toXML()
Produces an XML representation conform to the schema defined for CalAtmosphere (CalAtmosphereTable.xsd).
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.
CalAtmosphereRow * checkAndAdd(CalAtmosphereRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
unsigned int size() const
Return the number of rows in the table.
CalAtmosphereRow * lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, int numFreq, int numLoad, int numReceptor, std::vector< std::vector< float > > forwardEffSpectrum, std::vector< Frequency > frequencyRange, Pressure groundPressure, Humidity groundRelHumidity, std::vector< Frequency > frequencySpectrum, Temperature groundTemperature, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< std::vector< float > > powerSkySpectrum, std::vector< std::vector< std::vector< float > > > powerLoadSpectrum, SyscalMethodMod::SyscalMethod syscalType, std::vector< std::vector< Temperature > > tAtmSpectrum, std::vector< std::vector< Temperature > > tRecSpectrum, std::vector< std::vector< Temperature > > tSysSpectrum, std::vector< std::vector< float > > tauSpectrum, std::vector< Temperature > tAtm, std::vector< Temperature > tRec, std::vector< Temperature > tSys, std::vector< float > tau, std::vector< Length > water, std::vector< Length > waterError)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
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...
bool loadInProgress
Load the table in memory if necessary.
A class to represent byte order information.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the 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.
The ASDM class is the container for all tables.
The Humidity class implements a quantity of humidity in percent.
void checkPresenceInMemory()
The Temperature class implements a quantity of temperature in degrees Kelvin.
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 setFromMIME(const std::string &mimeMsg)
Extracts the binary part of a MIME message and deserialize its content to fill this with the result o...
void fromIDL(asdmIDL::CalAtmosphereTableIDL x)
Populate this table from the content of a CalAtmosphereTableIDL Corba structure.
void append(CalAtmosphereRow *x)
Brutally append an CalAtmosphereRow x to the collection of rows already stored in 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< CalAtmosphereRow * > row
The Pressure class implements a quantity of pressure in hectopascals.
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...
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...
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...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalAtmosphereTable as those produced by the ...
The CalAtmosphereTable class is an Alma 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.
std::string getVersion() const
Return the version information about this table.
const Double e
e and functions thereof:
ASDM & getContainer() const
Return the container to which this table belongs.
void addWithoutCheckingUnique(CalAtmosphereRow *x)
Brutally append an CalAtmosphereRow x to the collection of rows already stored in this table...
virtual ~CalAtmosphereTable()
CalAtmosphereTable(ASDM &container)
Create a CalAtmosphereTable.
The CalAtmosphereRow class is a row of a CalAtmosphereTable.
CalAtmosphereRow * newRow()
====> Row creation.
CalAtmosphereRow * getRowByKey(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId)
Returns a CalAtmosphereRow* given a key.
static std::string name()
Return the name of this table.
std::vector< CalAtmosphereRow * > privateRows
A data structure to store the pointers on the table's rows.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
CalAtmosphereRow * add(CalAtmosphereRow *x)
====> Append a row to its table.
asdmIDL::CalAtmosphereTableIDL * toIDL()
Conversion Methods.