34 #ifndef CalPrimaryBeamTable_CLASS
35 #define CalPrimaryBeamTable_CLASS
120 #include <asdmIDLC.h>
133 class CalPrimaryBeamRow;
317 static const std::vector<std::string>&
getKeyName();
334 unsigned int size()
const;
352 static std::string
name() ;
392 std::string
toXML() ;
401 asdmIDL::CalPrimaryBeamTableIDL *
toIDL() ;
410 void toIDL(asdmIDL::CalPrimaryBeamTableIDL& x)
const;
421 void fromIDL(asdmIDL::CalPrimaryBeamTableIDL x) ;
480 CalPrimaryBeamRow *
newRow(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake,
int numSubband, std::vector<std::vector<Frequency > > frequencyRange,
int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<double > mainBeamEfficiency,
EntityRef beamDescriptionUID,
float relativeAmplitudeRms, std::vector<Angle > direction, std::vector<Angle > minValidDirection, std::vector<Angle > maxValidDirection, PrimaryBeamDescriptionMod::PrimaryBeamDescription descriptionType, std::vector<int > imageChannelNumber, std::vector<Frequency > imageNominalFrequency);
530 std::vector<CalPrimaryBeamRow *>
get() ;
538 const std::vector<CalPrimaryBeamRow *>&
get()
const ;
612 CalPrimaryBeamRow*
lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake,
int numSubband, std::vector<std::vector<Frequency > > frequencyRange,
int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector<double > mainBeamEfficiency,
EntityRef beamDescriptionUID,
float relativeAmplitudeRms, std::vector<Angle > direction, std::vector<Angle > minValidDirection, std::vector<Angle > maxValidDirection, PrimaryBeamDescriptionMod::PrimaryBeamDescription descriptionType, std::vector<int > imageChannelNumber, std::vector<Frequency > imageNominalFrequency);
678 std::vector<CalPrimaryBeamRow *>
row;
736 void toFile(std::string directory);
The CalPrimaryBeamRow class is a row of a CalPrimaryBeamTable.
static const ByteOrder * Machine_Endianity
CalPrimaryBeamTable(ASDM &container)
Create a CalPrimaryBeamTable.
CalPrimaryBeamRow * checkAndAdd(CalPrimaryBeamRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void setEntity(Entity e)
Set this table's Entity.
std::string getName() const
Return the name of this table.
The CalPrimaryBeamTable class is an Alma table.
void fromIDL(asdmIDL::CalPrimaryBeamTableIDL x)
Populate this table from the content of a CalPrimaryBeamTableIDL Corba structure. ...
std::string toXML()
Produces an XML representation conform to the schema defined for CalPrimaryBeam (CalPrimaryBeamTable...
std::vector< CalPrimaryBeamRow * > row
A class to represent byte order information.
virtual ~CalPrimaryBeamTable()
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalPrimaryBeamTable as those produced by the...
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
Entity getEntity() const
Return this table's Entity.
The ASDM class is the container for all tables.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
unsigned int size() const
Return the number of rows in the 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...
std::vector< CalPrimaryBeamRow * > privateRows
A data structure to store the pointers on the table's rows.
CalPrimaryBeamRow * getRowByKey(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId)
Returns a CalPrimaryBeamRow* given a key.
The EntityRef class is an identification of a persistant entity in the ALMA archive.
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.
void checkPresenceInMemory()
CalPrimaryBeamRow * add(CalPrimaryBeamRow *x)
====> Append a row to its table.
static std::string name()
Return the name of this table.
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 MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
std::string getVersion() const
Return the version information about this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
CalPrimaryBeamRow * lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numSubband, std::vector< std::vector< Frequency > > frequencyRange, int numReceptor, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, std::vector< double > mainBeamEfficiency, EntityRef beamDescriptionUID, float relativeAmplitudeRms, std::vector< Angle > direction, std::vector< Angle > minValidDirection, std::vector< Angle > maxValidDirection, PrimaryBeamDescriptionMod::PrimaryBeamDescription descriptionType, std::vector< int > imageChannelNumber, std::vector< Frequency > imageNominalFrequency)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
void setFromXMLFile(const std::string &directory)
CalPrimaryBeamRow * newRow()
====> Row creation.
asdmIDL::CalPrimaryBeamTableIDL * toIDL()
Conversion Methods.
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:
bool loadInProgress
Load the table in memory if necessary.
void addWithoutCheckingUnique(CalPrimaryBeamRow *x)
Brutally append an CalPrimaryBeamRow x to the collection of rows already stored in this table...
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
void append(CalPrimaryBeamRow *x)
Brutally append an CalPrimaryBeamRow x to the collection of rows already stored in this table...
ASDM & getContainer() const
Return the container to which this table belongs.
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 toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The Entity class is an identification of a persistant entity in the ALMA archive. ...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.