34 #ifndef CalPointingModelTable_CLASS
35 #define CalPointingModelTable_CLASS
112 #include <asdmIDLC.h>
125 class CalPointingModelRow;
312 static const std::vector<std::string>&
getKeyName();
329 unsigned int size()
const;
347 static std::string
name() ;
387 std::string
toXML() ;
396 asdmIDL::CalPointingModelTableIDL *
toIDL() ;
405 void toIDL(asdmIDL::CalPointingModelTableIDL& x)
const;
416 void fromIDL(asdmIDL::CalPointingModelTableIDL x) ;
471 CalPointingModelRow *
newRow(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, PointingModelModeMod::PointingModelMode pointingModelMode, PolarizationTypeMod::PolarizationType polarizationType,
int numCoeff, std::vector<std::string > coeffName, std::vector<float > coeffVal, std::vector<float > coeffError, std::vector<bool > coeffFixed,
Angle azimuthRMS,
Angle elevationRms,
Angle skyRMS,
double reducedChiSquared);
521 std::vector<CalPointingModelRow *>
get() ;
529 const std::vector<CalPointingModelRow *>&
get()
const ;
599 CalPointingModelRow*
lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, PointingModelModeMod::PointingModelMode pointingModelMode, PolarizationTypeMod::PolarizationType polarizationType,
int numCoeff, std::vector<std::string > coeffName, std::vector<float > coeffVal, std::vector<float > coeffError, std::vector<bool > coeffFixed,
Angle azimuthRMS,
Angle elevationRms,
Angle skyRMS,
double reducedChiSquared);
665 std::vector<CalPointingModelRow *>
row;
723 void toFile(std::string directory);
virtual ~CalPointingModelTable()
static std::string name()
Return the name of this table.
static const ByteOrder * Machine_Endianity
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
std::string getVersion() const
Return the version information about this table.
std::string toXML()
Produces an XML representation conform to the schema defined for CalPointingModel (CalPointingModelTa...
void checkPresenceInMemory()
A class to represent byte order information.
ASDM & getContainer() const
Return the container to which this table belongs.
CalPointingModelRow * newRow()
====> Row creation.
void addWithoutCheckingUnique(CalPointingModelRow *x)
Brutally append an CalPointingModelRow x to the collection of rows already stored in this table...
bool loadInProgress
Load the table in memory if necessary.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The ASDM class is the container for all tables.
void setEntity(Entity e)
Set this table's Entity.
CalPointingModelRow * checkAndAdd(CalPointingModelRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
asdmIDL::CalPointingModelTableIDL * toIDL()
Conversion Methods.
void append(CalPointingModelRow *x)
Brutally append an CalPointingModelRow x to the collection of rows already stored in this table...
The Angle class implements a quantity of angle in radians.
void fromIDL(asdmIDL::CalPointingModelTableIDL x)
Populate this table from the content of a CalPointingModelTableIDL Corba structure.
Entity getEntity() const
Return this table's Entity.
The CalPointingModelTable 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.
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.
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...
std::vector< CalPointingModelRow * > privateRows
A data structure to store the pointers on the table's rows.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
CalPointingModelRow * getRowByKey(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId)
Returns a CalPointingModelRow* given a key.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalPointingModelTable as those produced by t...
CalPointingModelRow * add(CalPointingModelRow *x)
====> Append a row to its 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:
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 setFromXMLFile(const std::string &directory)
std::vector< CalPointingModelRow * > row
CalPointingModelTable(ASDM &container)
Create a CalPointingModelTable.
The CalPointingModelRow class is a row of a CalPointingModelTable.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
unsigned int size() const
Return the number of rows in the table.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
CalPointingModelRow * lookup(std::string antennaName, ReceiverBandMod::ReceiverBand receiverBand, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, AntennaMakeMod::AntennaMake antennaMake, PointingModelModeMod::PointingModelMode pointingModelMode, PolarizationTypeMod::PolarizationType polarizationType, int numCoeff, std::vector< std::string > coeffName, std::vector< float > coeffVal, std::vector< float > coeffError, std::vector< bool > coeffFixed, Angle azimuthRMS, Angle elevationRms, Angle skyRMS, double reducedChiSquared)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
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. ...