34 #ifndef CalAppPhaseTable_CLASS
35 #define CalAppPhaseTable_CLASS
118 #include <asdmIDLC.h>
131 class CalAppPhaseRow;
374 static const std::vector<std::string>&
getKeyName();
391 unsigned int size()
const;
409 static std::string
name() ;
449 std::string
toXML() ;
458 asdmIDL::CalAppPhaseTableIDL *
toIDL() ;
467 void toIDL(asdmIDL::CalAppPhaseTableIDL& x)
const;
478 void fromIDL(asdmIDL::CalAppPhaseTableIDL x) ;
547 CalAppPhaseRow *
newRow(BasebandNameMod::BasebandName basebandName,
int scanNumber,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
ArrayTime adjustTime, std::string adjustToken, std::string phasingMode,
int numPhasedAntennas, std::vector<std::string > phasedAntennas,
int refAntennaIndex,
int candRefAntennaIndex, std::string phasePacking,
int numReceptors,
int numChannels,
int numPhaseValues, std::vector<float > phaseValues,
int numCompare,
int numEfficiencies, std::vector<std::string > compareArray, std::vector<int > efficiencyIndices, std::vector<std::vector<float > > efficiencies, std::vector<float > quality, std::string phasedSumAntenna);
597 std::vector<CalAppPhaseRow *>
get() ;
605 const std::vector<CalAppPhaseRow *>&
get()
const ;
689 CalAppPhaseRow*
lookup(BasebandNameMod::BasebandName basebandName,
int scanNumber,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
ArrayTime adjustTime, std::string adjustToken, std::string phasingMode,
int numPhasedAntennas, std::vector<std::string > phasedAntennas,
int refAntennaIndex,
int candRefAntennaIndex, std::string phasePacking,
int numReceptors,
int numChannels,
int numPhaseValues, std::vector<float > phaseValues,
int numCompare,
int numEfficiencies, std::vector<std::string > compareArray, std::vector<int > efficiencyIndices, std::vector<std::vector<float > > efficiencies, std::vector<float > quality, std::string phasedSumAntenna);
755 std::vector<CalAppPhaseRow *>
row;
813 void toFile(std::string directory);
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...
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 ByteOrder * Machine_Endianity
The CalAppPhaseTable class is an Alma table.
CalAppPhaseRow * getRowByKey(BasebandNameMod::BasebandName basebandName, int scanNumber, Tag calDataId, Tag calReductionId)
Returns a CalAppPhaseRow* given a key.
ASDM & getContainer() const
Return the container to which this table belongs.
std::string toXML()
Produces an XML representation conform to the schema defined for CalAppPhase (CalAppPhaseTable.xsd).
std::string getVersion() const
Return the version information about this table.
A class to represent byte order information.
CalAppPhaseRow * add(CalAppPhaseRow *x)
====> Append a row to its table.
void addWithoutCheckingUnique(CalAppPhaseRow *x)
Brutally append an CalAppPhaseRow x to the collection of rows already stored in this table...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
The ASDM class is the container for all tables.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
CalAppPhaseRow * lookup(BasebandNameMod::BasebandName basebandName, int scanNumber, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, ArrayTime adjustTime, std::string adjustToken, std::string phasingMode, int numPhasedAntennas, std::vector< std::string > phasedAntennas, int refAntennaIndex, int candRefAntennaIndex, std::string phasePacking, int numReceptors, int numChannels, int numPhaseValues, std::vector< float > phaseValues, int numCompare, int numEfficiencies, std::vector< std::string > compareArray, std::vector< int > efficiencyIndices, std::vector< std::vector< float > > efficiencies, std::vector< float > quality, std::string phasedSumAntenna)
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 > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void setEntity(Entity e)
Set this table's Entity.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalAppPhaseTable as those produced by the to...
CalAppPhaseTable(ASDM &container)
Create a CalAppPhaseTable.
virtual ~CalAppPhaseTable()
std::vector< CalAppPhaseRow * > row
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
void checkPresenceInMemory()
bool loadInProgress
Load the table in memory if necessary.
std::vector< CalAppPhaseRow * > privateRows
A data structure to store the pointers on the table's rows.
static std::string name()
Return the name of this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
std::string getName() const
Return the name of this table.
unsigned int size() const
Return the number of rows in the 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:
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
void setFromXMLFile(const std::string &directory)
The CalAppPhaseRow class is a row of a CalAppPhaseTable.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this 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 append(CalAppPhaseRow *x)
Brutally append an CalAppPhaseRow x to the collection of rows already stored in 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...
Entity getEntity() const
Return this table's Entity.
void fromIDL(asdmIDL::CalAppPhaseTableIDL x)
Populate this table from the content of a CalAppPhaseTableIDL Corba structure.
asdmIDL::CalAppPhaseTableIDL * toIDL()
Conversion Methods.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
CalAppPhaseRow * checkAndAdd(CalAppPhaseRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
The Entity class is an identification of a persistant entity in the ALMA archive. ...
CalAppPhaseRow * newRow()
====> Row creation.