34 #ifndef CalAmpliTable_CLASS
35 #define CalAmpliTable_CLASS
100 #include <asdmIDLC.h>
262 static const std::vector<std::string>&
getKeyName();
279 unsigned int size()
const;
297 static std::string
name() ;
337 std::string
toXML() ;
346 asdmIDL::CalAmpliTableIDL *
toIDL() ;
355 void toIDL(asdmIDL::CalAmpliTableIDL& x)
const;
366 void fromIDL(asdmIDL::CalAmpliTableIDL x) ;
411 CalAmpliRow *
newRow(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Frequency > frequencyRange, std::vector<float > apertureEfficiency, std::vector<float > apertureEfficiencyError);
461 std::vector<CalAmpliRow *>
get() ;
469 const std::vector<CalAmpliRow *>&
get()
const ;
494 CalAmpliRow*
getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId);
533 CalAmpliRow*
lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName,
Tag calDataId,
Tag calReductionId,
int numReceptor, std::vector<PolarizationTypeMod::PolarizationType > polarizationTypes,
ArrayTime startValidTime,
ArrayTime endValidTime, std::vector<Frequency > frequencyRange, std::vector<float > apertureEfficiency, std::vector<float > apertureEfficiencyError);
599 std::vector<CalAmpliRow *>
row;
657 void toFile(std::string directory);
static std::string name()
Return the name of this table.
std::string getVersion() const
Return the version information about this table.
static const ByteOrder * Machine_Endianity
CalAmpliRow * lookup(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId, int numReceptor, std::vector< PolarizationTypeMod::PolarizationType > polarizationTypes, ArrayTime startValidTime, ArrayTime endValidTime, std::vector< Frequency > frequencyRange, std::vector< float > apertureEfficiency, std::vector< float > apertureEfficiencyError)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
The CalAmpliTable class is an Alma table.
ASDM & getContainer() const
Return the container to which this table belongs.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
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 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 setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
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...
Entity getEntity() const
Return this table's Entity.
The ASDM class is the container for all tables.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalAmpliTable as those produced by the toFil...
std::string getName() const
Return the name of this table.
CalAmpliRow * add(CalAmpliRow *x)
====> Append a row to its table.
The CalAmpliRow class is a row of a CalAmpliTable.
CalAmpliTable(ASDM &container)
Create a CalAmpliTable.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
CalAmpliRow * checkAndAdd(CalAmpliRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
bool loadInProgress
Load the table in memory if necessary.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
CalAmpliRow * newRow()
====> Row creation.
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 append(CalAmpliRow *x)
Brutally append an CalAmpliRow x to the collection of rows already stored in this table...
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
std::vector< CalAmpliRow * > row
void setEntity(Entity e)
Set this table's Entity.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
CalAmpliRow * getRowByKey(std::string antennaName, AtmPhaseCorrectionMod::AtmPhaseCorrection atmPhaseCorrection, ReceiverBandMod::ReceiverBand receiverBand, BasebandNameMod::BasebandName basebandName, Tag calDataId, Tag calReductionId)
Returns a CalAmpliRow* given a key.
std::string toXML()
Produces an XML representation conform to the schema defined for CalAmpli (CalAmpliTable.xsd).
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
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.
void fromIDL(asdmIDL::CalAmpliTableIDL x)
Populate this table from the content of a CalAmpliTableIDL Corba structure.
const Double e
e and functions thereof:
std::vector< CalAmpliRow * > privateRows
A data structure to store the pointers on the table's rows.
asdmIDL::CalAmpliTableIDL * toIDL()
Conversion Methods.
unsigned int size() const
Return the number of rows in the table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
void addWithoutCheckingUnique(CalAmpliRow *x)
Brutally append an CalAmpliRow x to the collection of rows already stored in this table...
void checkPresenceInMemory()
void setFromXMLFile(const std::string &directory)
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...
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The Entity class is an identification of a persistant entity in the ALMA archive. ...