casa
$Rev:20696$
|
The CalDeviceTable class is an Alma table. More...
#include <CalDeviceTable.h>
Public Member Functions | |
virtual | ~CalDeviceTable () |
ASDM & | getContainer () const |
Return the container to which this table belongs. | |
unsigned int | size () const |
Return the number of rows in the table. | |
std::string | getName () const |
Return the name of this table. | |
std::string | getVersion () const |
Return the version information about this table. | |
Entity | getEntity () const |
Return this table's Entity. | |
void | setEntity (Entity e) |
Set this table's Entity. | |
std::string | toXML () |
Produces an XML representation conform to the schema defined for CalDevice (CalDeviceTable.xsd). | |
asdmIDL::CalDeviceTableIDL * | toIDL () |
Conversion Methods. | |
void | toIDL (asdmIDL::CalDeviceTableIDL &x) const |
Fills the CORBA data structure passed in parameter with the content of this table. | |
void | fromIDL (asdmIDL::CalDeviceTableIDL x) |
Populate this table from the content of a CalDeviceTableIDL Corba structure. | |
CalDeviceRow * | newRow () |
====> Row creation. | |
CalDeviceRow * | newRow (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numCalload, vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames) |
Create a new row initialized to the specified values. | |
CalDeviceRow * | newRow (CalDeviceRow *row) |
Create a new row using a copy constructor mechanism. | |
CalDeviceRow * | add (CalDeviceRow *x) |
====> Append a row to its table. | |
std::vector< CalDeviceRow * > | get () |
====> Methods returning rows. | |
const std::vector < CalDeviceRow * > & | get () const |
Get a const reference on the collection of rows pointers internally hold by the table. | |
std::vector< CalDeviceRow * > * | getByContext (Tag antennaId, Tag spectralWindowId, int feedId) |
Returns all the rows sorted by ascending startTime for a given context. | |
CalDeviceRow * | getRowByKey (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId) |
Returns a CalDeviceRow* given a key. | |
CalDeviceRow * | lookup (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numCalload, vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames) |
Look up the table for a row whose all attributes are equal to the corresponding parameters of the method. | |
void | setUnknownAttributeBinaryReader (const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr) |
BinaryAttributeReaderFunctor * | getUnknownAttributeBinaryReader (const std::string &attributeName) const |
virtual | ~CalDeviceTable () |
ASDM & | getContainer () const |
Return the container to which this table belongs. | |
unsigned int | size () const |
Return the number of rows in the table. | |
std::string | getName () const |
Return the name of this table. | |
std::string | getVersion () const |
Return the version information about this table. | |
Entity | getEntity () const |
Return this table's Entity. | |
void | setEntity (Entity e) |
Set this table's Entity. | |
std::string | toXML () |
Produces an XML representation conform to the schema defined for CalDevice (CalDeviceTable.xsd). | |
asdmIDL::CalDeviceTableIDL * | toIDL () |
Conversion Methods. | |
void | fromIDL (asdmIDL::CalDeviceTableIDL x) |
Populate this table from the content of a CalDeviceTableIDL Corba structure. | |
CalDeviceRow * | newRow () |
====> Row creation. | |
CalDeviceRow * | newRow (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numCalload, vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames) |
Create a new row initialized to the specified values. | |
CalDeviceRow * | newRow (CalDeviceRow *row) |
Create a new row using a copy constructor mechanism. | |
CalDeviceRow * | add (CalDeviceRow *x) |
====> Append a row to its table. | |
std::vector< CalDeviceRow * > | get () |
====> Methods returning rows. | |
const std::vector < CalDeviceRow * > & | get () const |
Get a const reference on the collection of rows pointers internally hold by the table. | |
std::vector< CalDeviceRow * > * | getByContext (Tag antennaId, Tag spectralWindowId, int feedId) |
Returns all the rows sorted by ascending startTime for a given context. | |
CalDeviceRow * | getRowByKey (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId) |
Returns a CalDeviceRow* given a key. | |
CalDeviceRow * | lookup (Tag antennaId, Tag spectralWindowId, ArrayTimeInterval timeInterval, int feedId, int numCalload, vector< CalibrationDeviceMod::CalibrationDevice > calLoadNames) |
Look up the table for a row whose all attributes are equal to the corresponding parameters of the method. | |
void | setUnknownAttributeBinaryReader (const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr) |
BinaryAttributeReaderFunctor * | getUnknownAttributeBinaryReader (const std::string &attributeName) const |
Static Public Member Functions | |
static const std::vector < std::string > & | getKeyName () |
Return the list of field names that make up key key as an array of strings. | |
static std::string | name () |
Return the name of this table. | |
static const std::vector < std::string > & | getAttributesNames () |
Return the names of the attributes of this table. | |
static const std::vector < std::string > & | defaultAttributesNamesInBin () |
Return the default sorted list of attributes names in the binary representation of the table. | |
static std::vector< std::string > | getKeyName () |
Return the list of field names that make up key key as an array of strings. | |
static std::string | name () |
Return the name of this table. | |
static const std::vector < std::string > & | getAttributesNames () |
Return the names of the attributes of this table. | |
static const std::vector < std::string > & | defaultAttributesNamesInBin () |
Return the default sorted list of attributes names in the binary representation of the table. | |
Private Types | |
typedef std::vector < CalDeviceRow * > | TIME_ROWS |
typedef std::vector < CalDeviceRow * > | TIME_ROWS |
Private Member Functions | |
CalDeviceTable (ASDM &container) | |
Create a CalDeviceTable. | |
CalDeviceRow * | checkAndAdd (CalDeviceRow *x, bool skipCheckUniqueness=false) |
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not. | |
void | append (CalDeviceRow *x) |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table. | |
void | addWithoutCheckingUnique (CalDeviceRow *x) |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table. | |
CalDeviceRow * | insertByStartTime (CalDeviceRow *x, std::vector< CalDeviceRow * > &row) |
Insert a CalDeviceRow* in a vector of CalDeviceRow* so that it's ordered by ascending time. | |
std::string | Key (Tag antennaId, Tag spectralWindowId, int feedId) |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character. | |
void | getByKeyNoAutoIncNoTime (std::vector< CalDeviceRow * > &vin, std::vector< CalDeviceRow * > &vout, Tag antennaId, Tag spectralWindowId, int feedId) |
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equal to the corresponding parameters of the method. | |
void | error () |
void | fromXML (std::string &xmlDoc) |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a CalDevice (CalDeviceTable.xsd). | |
void | setFromMIMEFile (const std::string &directory) |
Private methods involved during the build of this table out of the content of file(s) containing an external representation of a CalDevice table. | |
void | setFromXMLFile (const std::string &directory) |
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 of the deserialization. | |
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 | toFile (std::string directory) |
Stores a representation (binary or XML) of this table into a file. | |
void | checkPresenceInMemory () |
void | setFromFile (const std::string &directory) |
Reads and parses a file containing a representation of a CalDeviceTable as those produced by the toFile method. | |
CalDeviceTable (ASDM &container) | |
Create a CalDeviceTable. | |
CalDeviceRow * | checkAndAdd (CalDeviceRow *x) |
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not. | |
void | append (CalDeviceRow *x) |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table. | |
void | addWithoutCheckingUnique (CalDeviceRow *x) |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table. | |
CalDeviceRow * | insertByStartTime (CalDeviceRow *x, std::vector< CalDeviceRow * > &row) |
Insert a CalDeviceRow* in a vector of CalDeviceRow* so that it's ordered by ascending time. | |
std::string | Key (Tag antennaId, Tag spectralWindowId, int feedId) |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character. | |
void | getByKeyNoAutoIncNoTime (std::vector< CalDeviceRow * > &vin, std::vector< CalDeviceRow * > &vout, Tag antennaId, Tag spectralWindowId, int feedId) |
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equal to the corresponding parameters of the method. | |
void | error () |
void | fromXML (std::string &xmlDoc) |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a CalDevice (CalDeviceTable.xsd). | |
void | setFromMIMEFile (const std::string &directory) |
Private methods involved during the build of this table out of the content of file(s) containing an external representation of a CalDevice table. | |
void | setFromXMLFile (const std::string &directory) |
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 of the deserialization. | |
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 | toFile (std::string directory) |
Stores a representation (binary or XML) of this table into a file. | |
void | checkPresenceInMemory () |
void | setFromFile (const std::string &directory) |
Reads and parses a file containing a representation of a CalDeviceTable as those produced by the toFile method. | |
Static Private Member Functions | |
static bool | initAttributesNames () |
A method to fill attributesNames and attributesNamesInBin;. | |
Private Attributes | |
ASDM & | container |
bool | archiveAsBin |
bool | fileAsBin |
std::string | version |
Entity | entity |
std::vector< CalDeviceRow * > | privateRows |
A data structure to store the pointers on the table's rows. | |
std::map< std::string, TIME_ROWS > | context |
std::map< std::string, BinaryAttributeReaderFunctor * > | unknownAttributes2Functors |
bool | loadInProgress |
Load the table in memory if necessary. | |
static bool | initAttributesNamesDone |
Static Private Attributes | |
static std::string | itsName |
The name of this table. | |
static std::vector< std::string > | attributesNames |
The attributes names. | |
static std::vector< std::string > | attributesNamesInBin |
The attributes names in the order in which they appear in the binary representation of the table. | |
static std::vector< std::string > | key |
The list of field names that make up key key. | |
Friends | |
class | ASDM |
The CalDeviceTable class is an Alma table.
Generated from model's revision "1.64", branch "HEAD"
Name | Type | Expected shape | Comment |
---|---|---|---|
Key | |||
antennaId | Tag | refers to a unique row in AntennaTable. | |
spectralWindowId | Tag | refers to a unique row in SpectralWindow Table. | |
timeInterval | ArrayTimeInterval | the period of validity of the data recorded in this row. | |
feedId | int | refers to the collection of rows in FeedTable having this value of feedId in their key. | |
Value | |||
numCalload | int | the number of calibration loads. | |
calLoadNames | vector<CalibrationDeviceMod::CalibrationDevice > | numCalload | identifies the calibration loads (an array with one value per load). |
Value | |||
numReceptor | int | the number of receptors. | |
calEff | vector<vector<float > > | numReceptor, numCalload | the calibration efficiencies (one value per receptor per load). |
noiseCal | vector<double > | numCalload | the equivalent temperatures of the of the noise sources used (one value per load). |
coupledNoiseCal | vector<vector<float > > | numReceptor, numCalload |
|
temperatureLoad | vector<Temperature > | numCalload | the physical temperatures of the loads for a black body calibration source (one value per load). |
Generated from model's revision "1.61", branch "HEAD"
Name | Type | Expected shape | Comment |
---|---|---|---|
Key | |||
antennaId | Tag | refers to a unique row in AntennaTable. | |
spectralWindowId | Tag | refers to a unique row in SpectralWindow Table. | |
timeInterval | ArrayTimeInterval | the period of validity of the data recorded in this row. | |
feedId | int | refers to the collection of rows in FeedTable having this value of feedId in their key. | |
Value | |||
numCalload | int | the number of calibration loads. | |
calLoadNames | vector<CalibrationDeviceMod::CalibrationDevice > | numCalload | identifies the calibration loads (an array with one value per load). |
Value | |||
numReceptor | int | the number of receptors. | |
calEff | vector<vector<float > > | numReceptor, numCalload | the calibration efficiencies (one value per receptor per load). |
noiseCal | vector<double > | numCalload | the equivalent temperatures of the of the noise sources used (one value per load). |
coupledNoiseCal | vector<vector<float > > | numReceptor, numCalload |
|
temperatureLoad | vector<Temperature > | numCalload | the physical temperatures of the loads for a black body calibration source (one value per load). |
Definition at line 212 of file CalDeviceTable.h.
typedef std::vector<CalDeviceRow* > asdm::CalDeviceTable::TIME_ROWS [private] |
Definition at line 559 of file CalDeviceTable.h.
typedef std::vector<CalDeviceRow* > asdm::CalDeviceTable::TIME_ROWS [private] |
Definition at line 575 of file CalDeviceTable.h.
virtual asdm::CalDeviceTable::~CalDeviceTable | ( | ) | [virtual] |
asdm::CalDeviceTable::CalDeviceTable | ( | ASDM & | container | ) | [private] |
Create a CalDeviceTable.
This constructor is private because only the container can create tables. All tables must know the container to which they belong.
container | The container to which this table belongs. |
virtual asdm::CalDeviceTable::~CalDeviceTable | ( | ) | [virtual] |
asdm::CalDeviceTable::CalDeviceTable | ( | ASDM & | container | ) | [private] |
Create a CalDeviceTable.
This constructor is private because only the container can create tables. All tables must know the container to which they belong.
container | The container to which this table belongs. |
====> Append a row to its table.
Add a row.
x | a pointer to the CalDeviceRow to be added. |
DuplicateKey | { thrown when the table contains a CalDeviceRow with a key equal to the x one but having and a value section different from x one } |
====> Append a row to its table.
Add a row.
x | a pointer to the CalDeviceRow to be added. |
DuplicateKey | { thrown when the table contains a CalDeviceRow with a key equal to the x one but having and a value section different from x one } |
void asdm::CalDeviceTable::addWithoutCheckingUnique | ( | CalDeviceRow * | x | ) | [private] |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table.
No uniqueness check is done !
CalDeviceRow* | x a pointer onto the CalDeviceRow to be appended. |
void asdm::CalDeviceTable::addWithoutCheckingUnique | ( | CalDeviceRow * | x | ) | [private] |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table.
No uniqueness check is done !
CalDeviceRow* | x a pointer onto the CalDeviceRow to be appended. |
void asdm::CalDeviceTable::append | ( | CalDeviceRow * | x | ) | [private] |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table.
No uniqueness check is done !
CalDeviceRow* | x a pointer onto the CalDeviceRow to be appended. |
void asdm::CalDeviceTable::append | ( | CalDeviceRow * | x | ) | [private] |
Brutally append an CalDeviceRow x to the collection of rows already stored in this table.
No uniqueness check is done !
CalDeviceRow* | x a pointer onto the CalDeviceRow to be appended. |
CalDeviceRow* asdm::CalDeviceTable::checkAndAdd | ( | CalDeviceRow * | x, |
bool | skipCheckUniqueness = false |
||
) | [private] |
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not.
Check if *x verifies the key uniqueness rule and throw an exception if not. Append x to its table.
DuplicateKey |
CalDeviceRow* asdm::CalDeviceTable::checkAndAdd | ( | CalDeviceRow * | x | ) | [private] |
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not.
Check if *x verifies the key uniqueness rule and throw an exception if not. Append x to its table.
DuplicateKey |
void asdm::CalDeviceTable::checkPresenceInMemory | ( | ) | [inline, private] |
Definition at line 641 of file CalDeviceTable.h.
References getContainer(), loadInProgress, asdm::Representable::presentInMemory, and setFromFile().
void asdm::CalDeviceTable::checkPresenceInMemory | ( | ) | [inline, private] |
Definition at line 657 of file CalDeviceTable.h.
References getContainer(), loadInProgress, asdm::Representable::presentInMemory, and setFromFile().
static const std::vector<std::string>& asdm::CalDeviceTable::defaultAttributesNamesInBin | ( | ) | [static] |
Return the default sorted list of attributes names in the binary representation of the table.
static const std::vector<std::string>& asdm::CalDeviceTable::defaultAttributesNamesInBin | ( | ) | [static] |
Return the default sorted list of attributes names in the binary representation of the table.
void asdm::CalDeviceTable::error | ( | ) | [private] |
void asdm::CalDeviceTable::error | ( | ) | [private] |
void asdm::CalDeviceTable::fromIDL | ( | asdmIDL::CalDeviceTableIDL | x | ) |
Populate this table from the content of a CalDeviceTableIDL Corba structure.
DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. |
ConversionException |
void asdm::CalDeviceTable::fromIDL | ( | asdmIDL::CalDeviceTableIDL | x | ) |
Populate this table from the content of a CalDeviceTableIDL Corba structure.
DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. |
ConversionException |
void asdm::CalDeviceTable::fromXML | ( | std::string & | xmlDoc | ) | [private] |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a CalDevice (CalDeviceTable.xsd).
ConversionException |
void asdm::CalDeviceTable::fromXML | ( | std::string & | xmlDoc | ) | [private] |
Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a CalDevice (CalDeviceTable.xsd).
ConversionException |
std::vector<CalDeviceRow *> asdm::CalDeviceTable::get | ( | ) |
====> Methods returning rows.
Get a collection of pointers on the rows of the table.
const std::vector<CalDeviceRow *>& asdm::CalDeviceTable::get | ( | ) | const |
Get a const reference on the collection of rows pointers internally hold by the table.
std::vector<CalDeviceRow *> asdm::CalDeviceTable::get | ( | ) |
====> Methods returning rows.
Get a collection of pointers on the rows of the table.
const std::vector<CalDeviceRow *>& asdm::CalDeviceTable::get | ( | ) | const |
Get a const reference on the collection of rows pointers internally hold by the table.
static const std::vector<std::string>& asdm::CalDeviceTable::getAttributesNames | ( | ) | [static] |
Return the names of the attributes of this table.
static const std::vector<std::string>& asdm::CalDeviceTable::getAttributesNames | ( | ) | [static] |
Return the names of the attributes of this table.
std::vector<CalDeviceRow*>* asdm::CalDeviceTable::getByContext | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
int | feedId | ||
) |
Returns all the rows sorted by ascending startTime for a given context.
The context is defined by a value of ( antennaId, spectralWindowId, feedId ).
IllegalAccessException | when a call is done to this method when it's called while the dataset has been imported with the option checkRowUniqueness set to false. |
std::vector<CalDeviceRow*>* asdm::CalDeviceTable::getByContext | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
int | feedId | ||
) |
Returns all the rows sorted by ascending startTime for a given context.
The context is defined by a value of ( antennaId, spectralWindowId, feedId ).
IllegalAccessException | when a call is done to this method when it's called while the dataset has been imported with the option checkRowUniqueness set to false. |
void asdm::CalDeviceTable::getByKeyNoAutoIncNoTime | ( | std::vector< CalDeviceRow * > & | vin, |
std::vector< CalDeviceRow * > & | vout, | ||
Tag | antennaId, | ||
Tag | spectralWindowId, | ||
int | feedId | ||
) | [private] |
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equal to the corresponding parameters of the method.
void asdm::CalDeviceTable::getByKeyNoAutoIncNoTime | ( | std::vector< CalDeviceRow * > & | vin, |
std::vector< CalDeviceRow * > & | vout, | ||
Tag | antennaId, | ||
Tag | spectralWindowId, | ||
int | feedId | ||
) | [private] |
Fills the vector vout (passed by reference) with pointers on elements of vin whose attributes are equal to the corresponding parameters of the method.
ASDM& asdm::CalDeviceTable::getContainer | ( | ) | const |
Return the container to which this table belongs.
ASDM& asdm::CalDeviceTable::getContainer | ( | ) | const |
Return the container to which this table belongs.
Referenced by checkPresenceInMemory().
Entity asdm::CalDeviceTable::getEntity | ( | ) | const [virtual] |
Return this table's Entity.
Implements asdm::Representable.
Entity asdm::CalDeviceTable::getEntity | ( | ) | const [virtual] |
Return this table's Entity.
Implements asdm::Representable.
static std::vector<std::string> asdm::CalDeviceTable::getKeyName | ( | ) | [static] |
Return the list of field names that make up key key as an array of strings.
static const std::vector<std::string>& asdm::CalDeviceTable::getKeyName | ( | ) | [static] |
Return the list of field names that make up key key as an array of strings.
std::string asdm::CalDeviceTable::getName | ( | ) | const [virtual] |
Return the name of this table.
This is a instance method of the class.
Implements asdm::Representable.
std::string asdm::CalDeviceTable::getName | ( | ) | const [virtual] |
Return the name of this table.
This is a instance method of the class.
Implements asdm::Representable.
CalDeviceRow* asdm::CalDeviceTable::getRowByKey | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
ArrayTimeInterval | timeInterval, | ||
int | feedId | ||
) |
Returns a CalDeviceRow* given a key.
antennaId | |
spectralWindowId | |
timeInterval | |
feedId |
CalDeviceRow* asdm::CalDeviceTable::getRowByKey | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
ArrayTimeInterval | timeInterval, | ||
int | feedId | ||
) |
Returns a CalDeviceRow* given a key.
antennaId | |
spectralWindowId | |
timeInterval | |
feedId |
BinaryAttributeReaderFunctor* asdm::CalDeviceTable::getUnknownAttributeBinaryReader | ( | const std::string & | attributeName | ) | const |
BinaryAttributeReaderFunctor* asdm::CalDeviceTable::getUnknownAttributeBinaryReader | ( | const std::string & | attributeName | ) | const |
std::string asdm::CalDeviceTable::getVersion | ( | ) | const |
Return the version information about this table.
std::string asdm::CalDeviceTable::getVersion | ( | ) | const |
Return the version information about this table.
static bool asdm::CalDeviceTable::initAttributesNames | ( | ) | [static, private] |
A method to fill attributesNames and attributesNamesInBin;.
CalDeviceRow* asdm::CalDeviceTable::insertByStartTime | ( | CalDeviceRow * | x, |
std::vector< CalDeviceRow * > & | row | ||
) | [private] |
Insert a CalDeviceRow* in a vector of CalDeviceRow* so that it's ordered by ascending time.
CalDeviceRow* | x . The pointer to be inserted. |
vector | <CalDeviceRow*>& row . A reference to the vector where to insert x. |
CalDeviceRow* asdm::CalDeviceTable::insertByStartTime | ( | CalDeviceRow * | x, |
std::vector< CalDeviceRow * > & | row | ||
) | [private] |
Insert a CalDeviceRow* in a vector of CalDeviceRow* so that it's ordered by ascending time.
CalDeviceRow* | x . The pointer to be inserted. |
vector | <CalDeviceRow*>& row . A reference to the vector where to insert x. |
std::string asdm::CalDeviceTable::Key | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
int | feedId | ||
) | [private] |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
std::string asdm::CalDeviceTable::Key | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
int | feedId | ||
) | [private] |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
CalDeviceRow* asdm::CalDeviceTable::lookup | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
ArrayTimeInterval | timeInterval, | ||
int | feedId, | ||
int | numCalload, | ||
vector< CalibrationDeviceMod::CalibrationDevice > | calLoadNames | ||
) |
Look up the table for a row whose all attributes are equal to the corresponding parameters of the method.
antennaId | |
spectralWindowId | |
timeInterval | |
feedId | |
numCalload | |
calLoadNames |
CalDeviceRow* asdm::CalDeviceTable::lookup | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
ArrayTimeInterval | timeInterval, | ||
int | feedId, | ||
int | numCalload, | ||
vector< CalibrationDeviceMod::CalibrationDevice > | calLoadNames | ||
) |
Look up the table for a row whose all attributes are equal to the corresponding parameters of the method.
antennaId | |
spectralWindowId | |
timeInterval | |
feedId | |
numCalload | |
calLoadNames |
std::string asdm::CalDeviceTable::MIMEXMLPart | ( | const asdm::ByteOrder * | byteOrder = asdm::ByteOrder::Machine_Endianity | ) | [private] |
Private methods involved during the export of this table into disk file(s).
std::string asdm::CalDeviceTable::MIMEXMLPart | ( | const asdm::ByteOrder * | byteOrder = asdm::ByteOrder::Machine_Endianity | ) | [private] |
Private methods involved during the export of this table into disk file(s).
static std::string asdm::CalDeviceTable::name | ( | ) | [static] |
Return the name of this table.
This is a static method of the class.
static std::string asdm::CalDeviceTable::name | ( | ) | [static] |
Return the name of this table.
This is a static method of the class.
CalDeviceRow* asdm::CalDeviceTable::newRow | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
ArrayTimeInterval | timeInterval, | ||
int | feedId, | ||
int | numCalload, | ||
vector< CalibrationDeviceMod::CalibrationDevice > | calLoadNames | ||
) |
Create a new row initialized to the specified values.
antennaId | |
spectralWindowId | |
timeInterval | |
feedId | |
numCalload | |
calLoadNames |
CalDeviceRow* asdm::CalDeviceTable::newRow | ( | Tag | antennaId, |
Tag | spectralWindowId, | ||
ArrayTimeInterval | timeInterval, | ||
int | feedId, | ||
int | numCalload, | ||
vector< CalibrationDeviceMod::CalibrationDevice > | calLoadNames | ||
) |
Create a new row initialized to the specified values.
antennaId | |
spectralWindowId | |
timeInterval | |
feedId | |
numCalload | |
calLoadNames |
Create a new row using a copy constructor mechanism.
The method creates a new CalDeviceRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new CalDeviceRow with default values for its attributes.
row | the row which is to be copied. |
Create a new row using a copy constructor mechanism.
The method creates a new CalDeviceRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new CalDeviceRow with default values for its attributes.
row | the row which is to be copied. |
void asdm::CalDeviceTable::setEntity | ( | Entity | e | ) | [virtual] |
void asdm::CalDeviceTable::setEntity | ( | Entity | e | ) | [virtual] |
void asdm::CalDeviceTable::setFromFile | ( | const std::string & | directory | ) | [private] |
Reads and parses a file containing a representation of a CalDeviceTable as those produced by the toFile method.
This table is populated with the result of the parsing.
directory | The name of the directory containing the file te be read and parsed. |
ConversionException | If any error occurs while reading the files in the directory or parsing them. |
Referenced by checkPresenceInMemory().
void asdm::CalDeviceTable::setFromFile | ( | const std::string & | directory | ) | [private] |
Reads and parses a file containing a representation of a CalDeviceTable as those produced by the toFile method.
This table is populated with the result of the parsing.
directory | The name of the directory containing the file te be read and parsed. |
ConversionException | If any error occurs while reading the files in the directory or parsing them. |
void asdm::CalDeviceTable::setFromMIME | ( | const std::string & | mimeMsg | ) | [private] |
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::CalDeviceTable::setFromMIME | ( | const std::string & | mimeMsg | ) | [private] |
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::CalDeviceTable::setFromMIMEFile | ( | const std::string & | directory | ) | [private] |
Private methods involved during the build of this table out of the content of file(s) containing an external representation of a CalDevice table.
void asdm::CalDeviceTable::setFromMIMEFile | ( | const std::string & | directory | ) | [private] |
Private methods involved during the build of this table out of the content of file(s) containing an external representation of a CalDevice table.
void asdm::CalDeviceTable::setFromXMLFile | ( | const std::string & | directory | ) | [private] |
void asdm::CalDeviceTable::setFromXMLFile | ( | const std::string & | directory | ) | [private] |
void asdm::CalDeviceTable::setUnknownAttributeBinaryReader | ( | const std::string & | attributeName, |
BinaryAttributeReaderFunctor * | barFctr | ||
) |
void asdm::CalDeviceTable::setUnknownAttributeBinaryReader | ( | const std::string & | attributeName, |
BinaryAttributeReaderFunctor * | barFctr | ||
) |
unsigned int asdm::CalDeviceTable::size | ( | ) | const [virtual] |
Return the number of rows in the table.
Implements asdm::Representable.
unsigned int asdm::CalDeviceTable::size | ( | ) | const [virtual] |
Return the number of rows in the table.
Implements asdm::Representable.
void asdm::CalDeviceTable::toFile | ( | std::string | directory | ) | [private] |
Stores a representation (binary or XML) of this table into a file.
Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "CalDevice.bin" or an XML representation (fileAsBin==false) will be saved in a file "CalDevice.xml". The file is always written in a directory whose name is passed as a parameter.
directory | The name of directory where the file containing the table's representation will be saved. |
void asdm::CalDeviceTable::toFile | ( | std::string | directory | ) | [private] |
Stores a representation (binary or XML) of this table into a file.
Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "CalDevice.bin" or an XML representation (fileAsBin==false) will be saved in a file "CalDevice.xml". The file is always written in a directory whose name is passed as a parameter.
directory | The name of directory where the file containing the table's representation will be saved. |
asdmIDL::CalDeviceTableIDL* asdm::CalDeviceTable::toIDL | ( | ) |
Conversion Methods.
Convert this table into a CalDeviceTableIDL CORBA structure.
asdmIDL::CalDeviceTableIDL* asdm::CalDeviceTable::toIDL | ( | ) |
Conversion Methods.
Convert this table into a CalDeviceTableIDL CORBA structure.
void asdm::CalDeviceTable::toIDL | ( | asdmIDL::CalDeviceTableIDL & | x | ) | const |
Fills the CORBA data structure passed in parameter with the content of this table.
x | a reference to the asdmIDL::CalDeviceTableIDL to be populated with the content of this. |
std::string asdm::CalDeviceTable::toMIME | ( | const asdm::ByteOrder * | byteOrder = asdm::ByteOrder::Machine_Endianity | ) | [private] |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
byteOrder | a const pointer to a static instance of the class ByteOrder. |
std::string asdm::CalDeviceTable::toMIME | ( | const asdm::ByteOrder * | byteOrder = asdm::ByteOrder::Machine_Endianity | ) | [private] |
Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
byteOrder | a const pointer to a static instance of the class ByteOrder. |
std::string asdm::CalDeviceTable::toXML | ( | ) | [virtual] |
Produces an XML representation conform to the schema defined for CalDevice (CalDeviceTable.xsd).
ConversionException |
Implements asdm::Representable.
std::string asdm::CalDeviceTable::toXML | ( | ) | [virtual] |
Produces an XML representation conform to the schema defined for CalDevice (CalDeviceTable.xsd).
ConversionException |
Implements asdm::Representable.
ASDM [friend] |
Reimplemented from asdm::Representable.
Definition at line 213 of file CalDeviceTable.h.
bool asdm::CalDeviceTable::archiveAsBin [private] |
Definition at line 499 of file CalDeviceTable.h.
std::vector<std::string> asdm::CalDeviceTable::attributesNames [static, private] |
The attributes names.
Definition at line 504 of file CalDeviceTable.h.
std::vector<std::string> asdm::CalDeviceTable::attributesNamesInBin [static, private] |
The attributes names in the order in which they appear in the binary representation of the table.
Definition at line 509 of file CalDeviceTable.h.
ASDM & asdm::CalDeviceTable::container [private] |
Definition at line 497 of file CalDeviceTable.h.
std::map< std::string, TIME_ROWS > asdm::CalDeviceTable::context [private] |
Definition at line 560 of file CalDeviceTable.h.
Entity asdm::CalDeviceTable::entity [private] |
Definition at line 504 of file CalDeviceTable.h.
bool asdm::CalDeviceTable::fileAsBin [private] |
Definition at line 500 of file CalDeviceTable.h.
bool asdm::CalDeviceTable::initAttributesNamesDone [private] |
Definition at line 515 of file CalDeviceTable.h.
std::string asdm::CalDeviceTable::itsName [static, private] |
The name of this table.
Definition at line 499 of file CalDeviceTable.h.
std::vector<std::string> asdm::CalDeviceTable::key [static, private] |
The list of field names that make up key key.
Definition at line 521 of file CalDeviceTable.h.
bool asdm::CalDeviceTable::loadInProgress [private] |
Load the table in memory if necessary.
Reimplemented from asdm::Representable.
Definition at line 640 of file CalDeviceTable.h.
Referenced by checkPresenceInMemory().
std::vector< CalDeviceRow * > asdm::CalDeviceTable::privateRows [private] |
A data structure to store the pointers on the table's rows.
In all cases we maintain a private vector of CalDeviceRow s.
Definition at line 550 of file CalDeviceTable.h.
std::map< std::string, BinaryAttributeReaderFunctor * > asdm::CalDeviceTable::unknownAttributes2Functors [private] |
Definition at line 591 of file CalDeviceTable.h.
std::string asdm::CalDeviceTable::version [private] |
Definition at line 502 of file CalDeviceTable.h.