34 #ifndef CalFocusModelTable_CLASS
35 #define CalFocusModelTable_CLASS
106 #include <asdmIDLC.h>
119 class CalFocusModelRow;
291 static const std::vector<std::string>&
getKeyName();
308 unsigned int size()
const;
326 static std::string
name() ;
366 std::string
toXML() ;
375 asdmIDL::CalFocusModelTableIDL *
toIDL() ;
384 void toIDL(asdmIDL::CalFocusModelTableIDL& x)
const;
395 void fromIDL(asdmIDL::CalFocusModelTableIDL x) ;
450 CalFocusModelRow *
newRow(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake,
int numCoeff,
int numSourceObs, std::vector<std::string > coeffName, std::vector<std::string > coeffFormula, std::vector<float > coeffValue, std::vector<float > coeffError, std::vector<bool > coeffFixed, std::string focusModel, std::vector<Length > focusRMS,
double reducedChiSquared);
500 std::vector<CalFocusModelRow *>
get() ;
508 const std::vector<CalFocusModelRow *>&
get()
const ;
531 CalFocusModelRow*
getRowByKey(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType,
Tag calDataId,
Tag calReductionId);
580 CalFocusModelRow*
lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake,
int numCoeff,
int numSourceObs, std::vector<std::string > coeffName, std::vector<std::string > coeffFormula, std::vector<float > coeffValue, std::vector<float > coeffError, std::vector<bool > coeffFixed, std::string focusModel, std::vector<Length > focusRMS,
double reducedChiSquared);
646 std::vector<CalFocusModelRow *>
row;
704 void toFile(std::string directory);
CalFocusModelTable(ASDM &container)
Create a CalFocusModelTable.
static const ByteOrder * Machine_Endianity
void addWithoutCheckingUnique(CalFocusModelRow *x)
Brutally append an CalFocusModelRow x to the collection of rows already stored in this table...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
A class to represent byte order information.
The CalFocusModelTable class is an Alma table.
The ASDM class is the container for all tables.
CalFocusModelRow * add(CalFocusModelRow *x)
====> Append a row to its table.
void fromIDL(asdmIDL::CalFocusModelTableIDL x)
Populate this table from the content of a CalFocusModelTableIDL Corba structure.
ASDM & getContainer() const
Return the container to which this table belongs.
std::string toXML()
Produces an XML representation conform to the schema defined for CalFocusModel (CalFocusModelTable.xsd).
bool loadInProgress
Load the table in memory if necessary.
The CalFocusModelRow class is a row of a CalFocusModelTable.
std::vector< CalFocusModelRow * > 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).
asdmIDL::CalFocusModelTableIDL * toIDL()
Conversion Methods.
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 checkPresenceInMemory()
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
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.
std::string getName() const
Return the name of this table.
void append(CalFocusModelRow *x)
Brutally append an CalFocusModelRow x to the collection of rows already stored in this table...
std::vector< CalFocusModelRow * > 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.
virtual ~CalFocusModelTable()
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
CalFocusModelRow * checkAndAdd(CalFocusModelRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
static std::string name()
Return the name of this 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::string getVersion() const
Return the version information about 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.
const Double e
e and functions thereof:
CalFocusModelRow * getRowByKey(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId)
Returns a CalFocusModelRow* given a key.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
CalFocusModelRow * newRow()
====> Row creation.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalFocusModelTable 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...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void setFromXMLFile(const std::string &directory)
Entity getEntity() const
Return this table's Entity.
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...
The Entity class is an identification of a persistant entity in the ALMA archive. ...
CalFocusModelRow * lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, PolarizationTypeMod::PolarizationType polarizationType, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, int numCoeff, int numSourceObs, std::vector< std::string > coeffName, std::vector< std::string > coeffFormula, std::vector< float > coeffValue, std::vector< float > coeffError, std::vector< bool > coeffFixed, std::string focusModel, std::vector< Length > focusRMS, double reducedChiSquared)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
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.