casa
5.7.0-16
|
The ASDM class is the container for all tables. More...
#include <ASDM.h>
Public Types | |
enum | Origin { FILE, ARCHIVE, EX_NIHILO } |
This enumeration lists the different possible origins for an ASDM present in memory. More... | |
Public Member Functions | |
ASDM () | |
Constructs an empty ASDM. More... | |
virtual | ~ASDM () |
MainTable & | getMain () const |
Get the table Main. More... | |
AlmaRadiometerTable & | getAlmaRadiometer () const |
Get the table AlmaRadiometer. More... | |
AnnotationTable & | getAnnotation () const |
Get the table Annotation. More... | |
AntennaTable & | getAntenna () const |
Get the table Antenna. More... | |
CalAmpliTable & | getCalAmpli () const |
Get the table CalAmpli. More... | |
CalAntennaSolutionsTable & | getCalAntennaSolutions () const |
Get the table CalAntennaSolutions. More... | |
CalAppPhaseTable & | getCalAppPhase () const |
Get the table CalAppPhase. More... | |
CalAtmosphereTable & | getCalAtmosphere () const |
Get the table CalAtmosphere. More... | |
CalBandpassTable & | getCalBandpass () const |
Get the table CalBandpass. More... | |
CalCurveTable & | getCalCurve () const |
Get the table CalCurve. More... | |
CalDataTable & | getCalData () const |
Get the table CalData. More... | |
CalDelayTable & | getCalDelay () const |
Get the table CalDelay. More... | |
CalDeviceTable & | getCalDevice () const |
Get the table CalDevice. More... | |
CalFluxTable & | getCalFlux () const |
Get the table CalFlux. More... | |
CalFocusTable & | getCalFocus () const |
Get the table CalFocus. More... | |
CalFocusModelTable & | getCalFocusModel () const |
Get the table CalFocusModel. More... | |
CalGainTable & | getCalGain () const |
Get the table CalGain. More... | |
CalHolographyTable & | getCalHolography () const |
Get the table CalHolography. More... | |
CalPhaseTable & | getCalPhase () const |
Get the table CalPhase. More... | |
CalPointingTable & | getCalPointing () const |
Get the table CalPointing. More... | |
CalPointingModelTable & | getCalPointingModel () const |
Get the table CalPointingModel. More... | |
CalPositionTable & | getCalPosition () const |
Get the table CalPosition. More... | |
CalPrimaryBeamTable & | getCalPrimaryBeam () const |
Get the table CalPrimaryBeam. More... | |
CalReductionTable & | getCalReduction () const |
Get the table CalReduction. More... | |
CalSeeingTable & | getCalSeeing () const |
Get the table CalSeeing. More... | |
CalWVRTable & | getCalWVR () const |
Get the table CalWVR. More... | |
ConfigDescriptionTable & | getConfigDescription () const |
Get the table ConfigDescription. More... | |
CorrelatorModeTable & | getCorrelatorMode () const |
Get the table CorrelatorMode. More... | |
DataDescriptionTable & | getDataDescription () const |
Get the table DataDescription. More... | |
DelayModelTable & | getDelayModel () const |
Get the table DelayModel. More... | |
DelayModelFixedParametersTable & | getDelayModelFixedParameters () const |
Get the table DelayModelFixedParameters. More... | |
DelayModelVariableParametersTable & | getDelayModelVariableParameters () const |
Get the table DelayModelVariableParameters. More... | |
DopplerTable & | getDoppler () const |
Get the table Doppler. More... | |
EphemerisTable & | getEphemeris () const |
Get the table Ephemeris. More... | |
ExecBlockTable & | getExecBlock () const |
Get the table ExecBlock. More... | |
FeedTable & | getFeed () const |
Get the table Feed. More... | |
FieldTable & | getField () const |
Get the table Field. More... | |
FlagTable & | getFlag () const |
Get the table Flag. More... | |
FlagCmdTable & | getFlagCmd () const |
Get the table FlagCmd. More... | |
FocusTable & | getFocus () const |
Get the table Focus. More... | |
FocusModelTable & | getFocusModel () const |
Get the table FocusModel. More... | |
FreqOffsetTable & | getFreqOffset () const |
Get the table FreqOffset. More... | |
GainTrackingTable & | getGainTracking () const |
Get the table GainTracking. More... | |
HistoryTable & | getHistory () const |
Get the table History. More... | |
HolographyTable & | getHolography () const |
Get the table Holography. More... | |
ObservationTable & | getObservation () const |
Get the table Observation. More... | |
PointingTable & | getPointing () const |
Get the table Pointing. More... | |
PointingModelTable & | getPointingModel () const |
Get the table PointingModel. More... | |
PolarizationTable & | getPolarization () const |
Get the table Polarization. More... | |
ProcessorTable & | getProcessor () const |
Get the table Processor. More... | |
PulsarTable & | getPulsar () const |
Get the table Pulsar. More... | |
ReceiverTable & | getReceiver () const |
Get the table Receiver. More... | |
SBSummaryTable & | getSBSummary () const |
Get the table SBSummary. More... | |
ScaleTable & | getScale () const |
Get the table Scale. More... | |
ScanTable & | getScan () const |
Get the table Scan. More... | |
SeeingTable & | getSeeing () const |
Get the table Seeing. More... | |
SourceTable & | getSource () const |
Get the table Source. More... | |
SpectralWindowTable & | getSpectralWindow () const |
Get the table SpectralWindow. More... | |
SquareLawDetectorTable & | getSquareLawDetector () const |
Get the table SquareLawDetector. More... | |
StateTable & | getState () const |
Get the table State. More... | |
StationTable & | getStation () const |
Get the table Station. More... | |
SubscanTable & | getSubscan () const |
Get the table Subscan. More... | |
SwitchCycleTable & | getSwitchCycle () const |
Get the table SwitchCycle. More... | |
SysCalTable & | getSysCal () const |
Get the table SysCal. More... | |
SysPowerTable & | getSysPower () const |
Get the table SysPower. More... | |
TotalPowerTable & | getTotalPower () const |
Get the table TotalPower. More... | |
WVMCalTable & | getWVMCal () const |
Get the table WVMCal. More... | |
WeatherTable & | getWeather () const |
Get the table Weather. More... | |
virtual std::string | toXML () const |
Produces the XML representation of * this. More... | |
void | toXML (std::string directory) const |
Write this ASDM dataset to the specified directory as a collection of XML documents. More... | |
virtual void | fromXML (std::string xml) |
Get an ASDM dataset, given the full path name of the directory containing the XML version of the dataset. More... | |
std::string | toMIME () |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message. More... | |
void | setFromMIME (const std::string &) |
Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization. More... | |
void | toFile (std::string directory) |
Write this ASDM dataset to the specified directory as a collection of files. More... | |
void | setFromFile (std::string directory, bool loadTablesOnDemand) |
Constructs totally or partially an ASDM dataset from its representation on disk. More... | |
void | setFromFile (std::string directory, const ASDMParseOptions &parse=ASDMParseOptions()) |
Constructs an ASDM dataset from its representation on disk. More... | |
bool | checkRowUniqueness () const |
Returns a boolean value indicating if a control of the uniqueness of each row of each table is done during the execution of the method setFromFile. More... | |
virtual asdmIDL::ASDMDataSetIDL * | toIDL () |
Converts this ASDM into an ASDMDataSetIDL CORBA structure. More... | |
virtual void | fromIDL (asdmIDL::ASDMDataSetIDL *x) |
Builds an ASDM out of its IDL representation. More... | |
virtual Entity | getEntity () const |
virtual void | setEntity (Entity e) |
virtual std::string | getName () const |
Meaningless, but required for the Representable interface. More... | |
virtual unsigned int | size () |
Meaningless, but required for the Representable interface. More... | |
void | updateArchive () const |
Update an ASDM dataset that already exists in the ALMA archive. More... | |
Representable & | getTable (std::string tableName) |
Return the table, as a Representable object, with the specified name. More... | |
ArrayTime | getTimeOfCreation () const |
===> Attribute timeOfCreation More... | |
void | setTimeOfCreation (ArrayTime timeOfCreation) |
Set timeOfCreation with the specified ArrayTime. More... | |
int | getVersion () const |
===> Attribute version More... | |
void | setVersion (int version) |
Set version with the specified int. More... | |
std::string | getXmlnsPrefix () const |
===> Attribute xmlnsPrefix More... | |
void | setXmlnsPrefix (std::string xmlnsPrefix) |
Set xmlnsPrefix with the specified std::string. More... | |
Origin | getOrigin () const |
Returns the origin of the dataset in memory. More... | |
std::string | getDirectory () const |
Returns the ASDM's directory. More... | |
XSLTransformer & | getXSLTransformer () |
Static Public Member Functions | |
static ASDM * | getFromXML (std::string xmlDirectory) |
Get an ASDM dataset, given the full path name of the directory containing the XML version of the dataset. More... | |
static ASDM * | fromArchive (EntityId datasetId) |
Create an ASDM dataset from the ALMA archive, given the entityId of its container. More... | |
Private Member Functions | |
void | error () |
Static Private Member Functions | |
static std::string | getXMLEntity (EntityId) |
static void | putXMLEntity (std::string) |
The ASDM class is the container for all tables.
Its instantation creates a complete set of tables.
Generated from model's revision "-1", branch ""class ASDM : public Representable {
enum asdm::ASDM::Origin |
This enumeration lists the different possible origins for an ASDM present in memory.
asdm::ASDM::ASDM | ( | ) |
Constructs an empty ASDM.
|
virtual |
bool asdm::ASDM::checkRowUniqueness | ( | ) | const |
Returns a boolean value indicating if a control of the uniqueness of each row of each table is done during the execution of the method setFromFile.
see the documentation of ASDMParseOptions about how to set this parameter.
|
private |
Create an ASDM dataset from the ALMA archive, given the entityId of its container.
datasetId | The entityId of the container of the dataset. |
ConversionException |
|
virtual |
|
virtual |
Get an ASDM dataset, given the full path name of the directory containing the XML version of the dataset.
xmlDirectory | The full path name of the directory containing this dataset. |
ConversionException | If any error occurs reading the files in the directory or in converting the tables from XML. |
AlmaRadiometerTable& asdm::ASDM::getAlmaRadiometer | ( | ) | const |
Get the table AlmaRadiometer.
AnnotationTable& asdm::ASDM::getAnnotation | ( | ) | const |
Get the table Annotation.
AntennaTable& asdm::ASDM::getAntenna | ( | ) | const |
Get the table Antenna.
CalAmpliTable& asdm::ASDM::getCalAmpli | ( | ) | const |
Get the table CalAmpli.
CalAntennaSolutionsTable& asdm::ASDM::getCalAntennaSolutions | ( | ) | const |
Get the table CalAntennaSolutions.
CalAppPhaseTable& asdm::ASDM::getCalAppPhase | ( | ) | const |
Get the table CalAppPhase.
CalAtmosphereTable& asdm::ASDM::getCalAtmosphere | ( | ) | const |
Get the table CalAtmosphere.
CalBandpassTable& asdm::ASDM::getCalBandpass | ( | ) | const |
Get the table CalBandpass.
CalCurveTable& asdm::ASDM::getCalCurve | ( | ) | const |
Get the table CalCurve.
CalDataTable& asdm::ASDM::getCalData | ( | ) | const |
Get the table CalData.
CalDelayTable& asdm::ASDM::getCalDelay | ( | ) | const |
Get the table CalDelay.
CalDeviceTable& asdm::ASDM::getCalDevice | ( | ) | const |
Get the table CalDevice.
CalFluxTable& asdm::ASDM::getCalFlux | ( | ) | const |
Get the table CalFlux.
CalFocusTable& asdm::ASDM::getCalFocus | ( | ) | const |
Get the table CalFocus.
CalFocusModelTable& asdm::ASDM::getCalFocusModel | ( | ) | const |
Get the table CalFocusModel.
CalGainTable& asdm::ASDM::getCalGain | ( | ) | const |
Get the table CalGain.
CalHolographyTable& asdm::ASDM::getCalHolography | ( | ) | const |
Get the table CalHolography.
CalPhaseTable& asdm::ASDM::getCalPhase | ( | ) | const |
Get the table CalPhase.
CalPointingTable& asdm::ASDM::getCalPointing | ( | ) | const |
Get the table CalPointing.
CalPointingModelTable& asdm::ASDM::getCalPointingModel | ( | ) | const |
Get the table CalPointingModel.
CalPositionTable& asdm::ASDM::getCalPosition | ( | ) | const |
Get the table CalPosition.
CalPrimaryBeamTable& asdm::ASDM::getCalPrimaryBeam | ( | ) | const |
Get the table CalPrimaryBeam.
CalReductionTable& asdm::ASDM::getCalReduction | ( | ) | const |
Get the table CalReduction.
CalSeeingTable& asdm::ASDM::getCalSeeing | ( | ) | const |
Get the table CalSeeing.
CalWVRTable& asdm::ASDM::getCalWVR | ( | ) | const |
Get the table CalWVR.
ConfigDescriptionTable& asdm::ASDM::getConfigDescription | ( | ) | const |
Get the table ConfigDescription.
CorrelatorModeTable& asdm::ASDM::getCorrelatorMode | ( | ) | const |
Get the table CorrelatorMode.
DataDescriptionTable& asdm::ASDM::getDataDescription | ( | ) | const |
Get the table DataDescription.
DelayModelTable& asdm::ASDM::getDelayModel | ( | ) | const |
Get the table DelayModel.
DelayModelFixedParametersTable& asdm::ASDM::getDelayModelFixedParameters | ( | ) | const |
Get the table DelayModelFixedParameters.
DelayModelVariableParametersTable& asdm::ASDM::getDelayModelVariableParameters | ( | ) | const |
Get the table DelayModelVariableParameters.
std::string asdm::ASDM::getDirectory | ( | ) | const |
DopplerTable& asdm::ASDM::getDoppler | ( | ) | const |
Get the table Doppler.
|
virtual |
EphemerisTable& asdm::ASDM::getEphemeris | ( | ) | const |
Get the table Ephemeris.
ExecBlockTable& asdm::ASDM::getExecBlock | ( | ) | const |
Get the table ExecBlock.
FieldTable& asdm::ASDM::getField | ( | ) | const |
Get the table Field.
FlagCmdTable& asdm::ASDM::getFlagCmd | ( | ) | const |
Get the table FlagCmd.
FocusTable& asdm::ASDM::getFocus | ( | ) | const |
Get the table Focus.
FocusModelTable& asdm::ASDM::getFocusModel | ( | ) | const |
Get the table FocusModel.
FreqOffsetTable& asdm::ASDM::getFreqOffset | ( | ) | const |
Get the table FreqOffset.
|
static |
Get an ASDM dataset, given the full path name of the directory containing the XML version of the dataset.
xmlDirectory | The full path name of the directory containing this dataset. |
ConversionException | If any error occurs reading the files in the directory or in converting the tables from XML. |
GainTrackingTable& asdm::ASDM::getGainTracking | ( | ) | const |
Get the table GainTracking.
HistoryTable& asdm::ASDM::getHistory | ( | ) | const |
Get the table History.
HolographyTable& asdm::ASDM::getHolography | ( | ) | const |
Get the table Holography.
|
virtual |
Meaningless, but required for the Representable interface.
ObservationTable& asdm::ASDM::getObservation | ( | ) | const |
Get the table Observation.
Origin asdm::ASDM::getOrigin | ( | ) | const |
Returns the origin of the dataset in memory.
PointingTable& asdm::ASDM::getPointing | ( | ) | const |
Get the table Pointing.
PointingModelTable& asdm::ASDM::getPointingModel | ( | ) | const |
Get the table PointingModel.
PolarizationTable& asdm::ASDM::getPolarization | ( | ) | const |
Get the table Polarization.
ProcessorTable& asdm::ASDM::getProcessor | ( | ) | const |
Get the table Processor.
PulsarTable& asdm::ASDM::getPulsar | ( | ) | const |
Get the table Pulsar.
ReceiverTable& asdm::ASDM::getReceiver | ( | ) | const |
Get the table Receiver.
SBSummaryTable& asdm::ASDM::getSBSummary | ( | ) | const |
Get the table SBSummary.
ScaleTable& asdm::ASDM::getScale | ( | ) | const |
Get the table Scale.
SeeingTable& asdm::ASDM::getSeeing | ( | ) | const |
Get the table Seeing.
SourceTable& asdm::ASDM::getSource | ( | ) | const |
Get the table Source.
SpectralWindowTable& asdm::ASDM::getSpectralWindow | ( | ) | const |
Get the table SpectralWindow.
SquareLawDetectorTable& asdm::ASDM::getSquareLawDetector | ( | ) | const |
Get the table SquareLawDetector.
StateTable& asdm::ASDM::getState | ( | ) | const |
Get the table State.
StationTable& asdm::ASDM::getStation | ( | ) | const |
Get the table Station.
SubscanTable& asdm::ASDM::getSubscan | ( | ) | const |
Get the table Subscan.
SwitchCycleTable& asdm::ASDM::getSwitchCycle | ( | ) | const |
Get the table SwitchCycle.
SysCalTable& asdm::ASDM::getSysCal | ( | ) | const |
Get the table SysCal.
SysPowerTable& asdm::ASDM::getSysPower | ( | ) | const |
Get the table SysPower.
Representable& asdm::ASDM::getTable | ( | std::string | tableName | ) |
Return the table, as a Representable object, with the specified name.
InvalidArgumentException |
Referenced by asdm::TableStreamReader< T, R >::nextNRows(), and asdm::TableStreamReader< T, R >::untilNBytes().
ArrayTime asdm::ASDM::getTimeOfCreation | ( | ) | const |
TotalPowerTable& asdm::ASDM::getTotalPower | ( | ) | const |
Get the table TotalPower.
int asdm::ASDM::getVersion | ( | ) | const |
===> Attribute version
Get version.
WeatherTable& asdm::ASDM::getWeather | ( | ) | const |
Get the table Weather.
WVMCalTable& asdm::ASDM::getWVMCal | ( | ) | const |
Get the table WVMCal.
|
staticprivate |
std::string asdm::ASDM::getXmlnsPrefix | ( | ) | const |
===> Attribute xmlnsPrefix
Get xmlnsPrefix.
XSLTransformer& asdm::ASDM::getXSLTransformer | ( | ) |
|
staticprivate |
|
virtual |
void asdm::ASDM::setFromFile | ( | std::string | directory, |
bool | loadTablesOnDemand | ||
) |
Constructs totally or partially an ASDM dataset from its representation on disk.
Reads and parses a file (ASDM.xml) containing the top level element of an ASDM. Depending on the value of the boolean parameter loadTablesOnDemand the files containing the tables of of the dataset are parsed to populate the dataset in memory immediately (false) or only when an application tries to retrieve values from these tables (true).
directory | the name of the directory containing the files. |
loadTablesOnDemand | the tables are read and parsed immediately (false) or only when necessary (true). |
ConversionException | If any error occurs while reading the files in the directory or parsing them. |
void asdm::ASDM::setFromFile | ( | std::string | directory, |
const ASDMParseOptions & | parse = ASDMParseOptions() |
||
) |
Constructs an ASDM dataset from its representation on disk.
Reads and parses a file (ASDM.xml) containing the top level element of an ASDM and then the files containing the representation on disk of the dataset's tables. On exit the dataset contains all its tables in memory.
Backward compatibility. This method presents some level of backward compatibility in the sense that it does its best to check if the dataset needs to be transformed on the fly to the currently defined format prior being parsed and converted to its in memory representation. In order to do that it may need to find the version information of the dataset and possibly its origin (i.e. which telescope has created it). Based on these informations it decides if if a transformation has to be applied on the fly or if the dataset can be processed as is.
Helping backward compatibility It may happen though that the algorithm which searches the dataset for its version information and its origin fails, while the user knows that his/her dataset can be parsed. Then the method's behaviour can be controlled by using the second (and optional) argument parse
which has to be an instance of ASDMParseOptions. See below the description of this argument to undersand how to use it.
directory | the name of the directory containing the files. |
parse | an instance of ASDMParseOptions which can be used to tailor the behaviour of the method. Please read the definition of ASDMParseOptions to see how the logic of the method can be controlled. Most of the time it wont be necessary to specify this argument hence the fact it's optional. The typical cases when one may have to use this argument are :
|
ConversionException | If any error occurs while reading the files in the directory or parsing them. |
void asdm::ASDM::setFromMIME | ( | const std::string & | ) |
Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.
mimeMsg | the string containing the MIME message. |
ConversionException |
void asdm::ASDM::setTimeOfCreation | ( | ArrayTime | timeOfCreation | ) |
void asdm::ASDM::setVersion | ( | int | version | ) |
Set version with the specified int.
version | The int value to which version is to be set. |
void asdm::ASDM::setXmlnsPrefix | ( | std::string | xmlnsPrefix | ) |
Set xmlnsPrefix with the specified std::string.
xmlnsPrefix | The std::string value to which xmlnsPrefix is to be set. |
|
virtual |
Meaningless, but required for the Representable interface.
void asdm::ASDM::toFile | ( | std::string | directory | ) |
Write this ASDM dataset to the specified directory as a collection of files.
The container itself is written into an XML file. Each table of the container having at least one row is written into a binary or an XML file depending on the value of its "fileAsBin" private field.
directory | The directory to which this dataset is written. |
ConversionException | If any error occurs in converting the container or any of its table. This method will not overwrite any existing file; a ConversionException is also thrown in this case. |
|
virtual |
Converts this ASDM into an ASDMDataSetIDL CORBA structure.
std::string asdm::ASDM::toMIME | ( | ) |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
|
virtual |
Produces the XML representation of * this.
ConversionException. |
void asdm::ASDM::toXML | ( | std::string | directory | ) | const |
Write this ASDM dataset to the specified directory as a collection of XML documents.
directory | The directory to which this dataset is written. |
ConversionException | If any error occurs in converting the table to XML and writing it to the directory. This method will not overwrite any existing file; a ConversionException is also thrown in this case. |
void asdm::ASDM::updateArchive | ( | ) | const |
Update an ASDM dataset that already exists in the ALMA archive.
ConversionException |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
The list of tables as Representable.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |