34 #ifndef CalFluxTable_CLASS
35 #define CalFluxTable_CLASS
116 #include <asdmIDLC.h>
314 static const std::vector<std::string>&
getKeyName();
331 unsigned int size()
const;
349 static std::string
name() ;
389 std::string
toXML() ;
398 asdmIDL::CalFluxTableIDL *
toIDL() ;
407 void toIDL(asdmIDL::CalFluxTableIDL& x)
const;
418 void fromIDL(asdmIDL::CalFluxTableIDL x) ;
461 CalFluxRow *
newRow(std::string sourceName,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numFrequencyRanges,
int numStokes, std::vector<std::vector<Frequency > > frequencyRanges, FluxCalibrationMethodMod::FluxCalibrationMethod fluxMethod, std::vector<std::vector<double > > flux, std::vector<std::vector<double > > fluxError, std::vector<StokesParameterMod::StokesParameter > stokes);
511 std::vector<CalFluxRow *>
get() ;
519 const std::vector<CalFluxRow *>&
get()
const ;
575 CalFluxRow*
lookup(std::string sourceName,
Tag calDataId,
Tag calReductionId,
ArrayTime startValidTime,
ArrayTime endValidTime,
int numFrequencyRanges,
int numStokes, std::vector<std::vector<Frequency > > frequencyRanges, FluxCalibrationMethodMod::FluxCalibrationMethod fluxMethod, std::vector<std::vector<double > > flux, std::vector<std::vector<double > > fluxError, std::vector<StokesParameterMod::StokesParameter > stokes);
641 std::vector<CalFluxRow *>
row;
699 void toFile(std::string directory);
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
CalFluxRow * lookup(std::string sourceName, Tag calDataId, Tag calReductionId, ArrayTime startValidTime, ArrayTime endValidTime, int numFrequencyRanges, int numStokes, std::vector< std::vector< Frequency > > frequencyRanges, FluxCalibrationMethodMod::FluxCalibrationMethod fluxMethod, std::vector< std::vector< double > > flux, std::vector< std::vector< double > > fluxError, std::vector< StokesParameterMod::StokesParameter > stokes)
Look up the table for a row whose all attributes are equal to the corresponding parameters of the met...
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a CalFluxTable as those produced by the toFile...
static const ByteOrder * Machine_Endianity
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
void fromIDL(asdmIDL::CalFluxTableIDL x)
Populate this table from the content of a CalFluxTableIDL Corba structure.
Entity getEntity() const
Return this table's Entity.
void append(CalFluxRow *x)
Brutally append an CalFluxRow x to the collection of rows already stored in this table.
static std::string name()
Return the name of this table.
std::string getVersion() const
Return the version information about this table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
A class to represent byte order information.
std::vector< CalFluxRow * > row
void setFromXMLFile(const std::string &directory)
The ASDM class is the container for all tables.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
CalFluxRow * add(CalFluxRow *x)
====> Append a row to its table.
asdmIDL::CalFluxTableIDL * toIDL()
Conversion Methods.
void checkPresenceInMemory()
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
The CalFluxRow class is a row of a CalFluxTable.
void setEntity(Entity e)
Set this table's Entity.
ASDM & getContainer() const
Return the container to which this table belongs.
std::vector< CalFluxRow * > privateRows
A data structure to store the pointers on the table's rows.
CalFluxTable(ASDM &container)
Create a CalFluxTable.
std::string toXML()
Produces an XML representation conform to the schema defined for CalFlux (CalFluxTable.xsd).
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
std::string getName() const
Return the name of this 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).
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
The CalFluxTable class is an Alma table.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes 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...
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:
unsigned int size() const
Return the number of rows in the table.
void addWithoutCheckingUnique(CalFluxRow *x)
Brutally append an CalFluxRow x to the collection of rows already stored in this table.
CalFluxRow * newRow()
====> Row creation.
CalFluxRow * checkAndAdd(CalFluxRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
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...
bool loadInProgress
Load the table in memory if necessary.
CalFluxRow * getRowByKey(std::string sourceName, Tag calDataId, Tag calReductionId)
Returns a CalFluxRow* given a key.
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 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 Entity class is an identification of a persistant entity in the ALMA archive. ...