casa
$Rev:20696$
|
The WeatherTable class is an Alma table. More...
#include <WeatherTable.h>
Public Member Functions | |
virtual | ~WeatherTable () |
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 Weather (WeatherTable.xsd). | |
asdmIDL::WeatherTableIDL * | toIDL () |
Conversion Methods. | |
void | toIDL (asdmIDL::WeatherTableIDL &x) const |
Fills the CORBA data structure passed in parameter with the content of this table. | |
void | fromIDL (asdmIDL::WeatherTableIDL x) |
Populate this table from the content of a WeatherTableIDL Corba structure. | |
WeatherRow * | newRow () |
====> Row creation. | |
WeatherRow * | newRow (Tag stationId, ArrayTimeInterval timeInterval) |
Create a new row initialized to the specified values. | |
WeatherRow * | newRow (WeatherRow *row) |
Create a new row using a copy constructor mechanism. | |
WeatherRow * | add (WeatherRow *x) |
====> Append a row to its table. | |
std::vector< WeatherRow * > | get () |
====> Methods returning rows. | |
const std::vector< WeatherRow * > & | get () const |
Get a const reference on the collection of rows pointers internally hold by the table. | |
std::vector< WeatherRow * > * | getByContext (Tag stationId) |
Returns all the rows sorted by ascending startTime for a given context. | |
WeatherRow * | getRowByKey (Tag stationId, ArrayTimeInterval timeInterval) |
Returns a WeatherRow* given a key. | |
WeatherRow * | lookup (Tag stationId, ArrayTimeInterval timeInterval) |
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 | ~WeatherTable () |
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 Weather (WeatherTable.xsd). | |
asdmIDL::WeatherTableIDL * | toIDL () |
Conversion Methods. | |
void | fromIDL (asdmIDL::WeatherTableIDL x) |
Populate this table from the content of a WeatherTableIDL Corba structure. | |
WeatherRow * | newRow () |
====> Row creation. | |
WeatherRow * | newRow (Tag stationId, ArrayTimeInterval timeInterval) |
Create a new row initialized to the specified values. | |
WeatherRow * | newRow (WeatherRow *row) |
Create a new row using a copy constructor mechanism. | |
WeatherRow * | add (WeatherRow *x) |
====> Append a row to its table. | |
std::vector< WeatherRow * > | get () |
====> Methods returning rows. | |
const std::vector< WeatherRow * > & | get () const |
Get a const reference on the collection of rows pointers internally hold by the table. | |
std::vector< WeatherRow * > * | getByContext (Tag stationId) |
Returns all the rows sorted by ascending startTime for a given context. | |
WeatherRow * | getRowByKey (Tag stationId, ArrayTimeInterval timeInterval) |
Returns a WeatherRow* given a key. | |
WeatherRow * | lookup (Tag stationId, ArrayTimeInterval timeInterval) |
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< WeatherRow * > | TIME_ROWS |
typedef std::vector< WeatherRow * > | TIME_ROWS |
Private Member Functions | |
WeatherTable (ASDM &container) | |
Create a WeatherTable. | |
WeatherRow * | checkAndAdd (WeatherRow *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 (WeatherRow *x) |
Brutally append an WeatherRow x to the collection of rows already stored in this table. | |
void | addWithoutCheckingUnique (WeatherRow *x) |
Brutally append an WeatherRow x to the collection of rows already stored in this table. | |
WeatherRow * | insertByStartTime (WeatherRow *x, std::vector< WeatherRow * > &row) |
Insert a WeatherRow* in a vector of WeatherRow* so that it's ordered by ascending time. | |
std::string | Key (Tag stationId) |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character. | |
void | getByKeyNoAutoIncNoTime (std::vector< WeatherRow * > &vin, std::vector< WeatherRow * > &vout, Tag stationId) |
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 Weather (WeatherTable.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 Weather 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 WeatherTable as those produced by the toFile method. | |
WeatherTable (ASDM &container) | |
Create a WeatherTable. | |
WeatherRow * | checkAndAdd (WeatherRow *x) |
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and throw exception if not. | |
void | append (WeatherRow *x) |
Brutally append an WeatherRow x to the collection of rows already stored in this table. | |
void | addWithoutCheckingUnique (WeatherRow *x) |
Brutally append an WeatherRow x to the collection of rows already stored in this table. | |
WeatherRow * | insertByStartTime (WeatherRow *x, std::vector< WeatherRow * > &row) |
Insert a WeatherRow* in a vector of WeatherRow* so that it's ordered by ascending time. | |
std::string | Key (Tag stationId) |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character. | |
void | getByKeyNoAutoIncNoTime (std::vector< WeatherRow * > &vin, std::vector< WeatherRow * > &vout, Tag stationId) |
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 Weather (WeatherTable.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 Weather 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 WeatherTable 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< WeatherRow * > | 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 WeatherTable class is an Alma table.
Generated from model's revision "1.64", branch "HEAD"
Name | Type | Expected shape | Comment |
---|---|---|---|
Key | |||
stationId | Tag | refers to a unique row in StationTable. | |
timeInterval | ArrayTimeInterval | the time interval for which the row's content is valid. | |
Value | |||
pressure | Pressure | the ambient pressure. | |
relHumidity | Humidity | the relative humidity. | |
temperature | Temperature | the ambient temperature. | |
windDirection | Angle | the wind direction. | |
windSpeed | Speed | the wind speed. | |
windMax | Speed | the maximum wind speed | |
dewPoint | Temperature | the dew point's value. | |
numLayer | int | NLayer the number of layers in the temperature profile. | |
layerHeight | vector<Length > | numLayer | the height of each layer for the temperature profile. |
temperatureProfile | vector<Temperature > | numLayer | the temperature on the atmosphere at each height. |
cloudMonitor | Temperature | the temperature of the cloud monitor. | |
numWVR | int | the number of WVR channels. | |
wvrTemp | vector<Temperature > | numWVR | the observed temperature in each WVR channel. |
water | double | the water precipitable content. |
Generated from model's revision "1.61", branch "HEAD"
Name | Type | Expected shape | Comment |
---|---|---|---|
Key | |||
stationId | Tag | refers to a unique row in StationTable. | |
timeInterval | ArrayTimeInterval | the time interval for which the row's content is valid. | |
Value | |||
pressure | Pressure | the ambient pressure. | |
relHumidity | Humidity | the relative humidity. | |
temperature | Temperature | the ambient temperature. | |
windDirection | Angle | the wind direction. | |
windSpeed | Speed | the wind speed. | |
windMax | Speed | the maximum wind speed | |
dewPoint | Temperature | the dew point's value. | |
numLayer | int | NLayer the number of layers in the temperature profile. | |
layerHeight | vector<Length > | numLayer | the height of each layer for the temperature profile. |
temperatureProfile | vector<Temperature > | numLayer | the temperature on the atmosphere at each height. |
cloudMonitor | Temperature | the temperature of the cloud monitor. | |
numWVR | int | the number of WVR channels. | |
wvrTemp | vector<Temperature > | numWVR | the observed temperature in each WVR channel. |
water | double | the water precipitable content. |
Definition at line 272 of file WeatherTable.h.
typedef std::vector<WeatherRow* > asdm::WeatherTable::TIME_ROWS [private] |
Definition at line 599 of file WeatherTable.h.
typedef std::vector<WeatherRow* > asdm::WeatherTable::TIME_ROWS [private] |
Definition at line 615 of file WeatherTable.h.
virtual asdm::WeatherTable::~WeatherTable | ( | ) | [virtual] |
asdm::WeatherTable::WeatherTable | ( | ASDM & | container | ) | [private] |
Create a WeatherTable.
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::WeatherTable::~WeatherTable | ( | ) | [virtual] |
asdm::WeatherTable::WeatherTable | ( | ASDM & | container | ) | [private] |
Create a WeatherTable.
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 WeatherRow to be added. |
DuplicateKey | { thrown when the table contains a WeatherRow 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 WeatherRow to be added. |
DuplicateKey | { thrown when the table contains a WeatherRow with a key equal to the x one but having and a value section different from x one } |
void asdm::WeatherTable::addWithoutCheckingUnique | ( | WeatherRow * | x | ) | [private] |
Brutally append an WeatherRow x to the collection of rows already stored in this table.
No uniqueness check is done !
WeatherRow* | x a pointer onto the WeatherRow to be appended. |
void asdm::WeatherTable::addWithoutCheckingUnique | ( | WeatherRow * | x | ) | [private] |
Brutally append an WeatherRow x to the collection of rows already stored in this table.
No uniqueness check is done !
WeatherRow* | x a pointer onto the WeatherRow to be appended. |
void asdm::WeatherTable::append | ( | WeatherRow * | x | ) | [private] |
Brutally append an WeatherRow x to the collection of rows already stored in this table.
No uniqueness check is done !
WeatherRow* | x a pointer onto the WeatherRow to be appended. |
void asdm::WeatherTable::append | ( | WeatherRow * | x | ) | [private] |
Brutally append an WeatherRow x to the collection of rows already stored in this table.
No uniqueness check is done !
WeatherRow* | x a pointer onto the WeatherRow to be appended. |
WeatherRow* asdm::WeatherTable::checkAndAdd | ( | WeatherRow * | 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 |
WeatherRow* asdm::WeatherTable::checkAndAdd | ( | WeatherRow * | 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::WeatherTable::checkPresenceInMemory | ( | ) | [inline, private] |
Definition at line 681 of file WeatherTable.h.
References getContainer(), loadInProgress, asdm::Representable::presentInMemory, and setFromFile().
void asdm::WeatherTable::checkPresenceInMemory | ( | ) | [inline, private] |
Definition at line 697 of file WeatherTable.h.
References getContainer(), loadInProgress, asdm::Representable::presentInMemory, and setFromFile().
static const std::vector<std::string>& asdm::WeatherTable::defaultAttributesNamesInBin | ( | ) | [static] |
Return the default sorted list of attributes names in the binary representation of the table.
static const std::vector<std::string>& asdm::WeatherTable::defaultAttributesNamesInBin | ( | ) | [static] |
Return the default sorted list of attributes names in the binary representation of the table.
void asdm::WeatherTable::error | ( | ) | [private] |
void asdm::WeatherTable::error | ( | ) | [private] |
void asdm::WeatherTable::fromIDL | ( | asdmIDL::WeatherTableIDL | x | ) |
Populate this table from the content of a WeatherTableIDL Corba structure.
DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. |
ConversionException |
void asdm::WeatherTable::fromIDL | ( | asdmIDL::WeatherTableIDL | x | ) |
Populate this table from the content of a WeatherTableIDL Corba structure.
DuplicateKey | Thrown if the method tries to add a row having a key that is already in the table. |
ConversionException |
void asdm::WeatherTable::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 Weather (WeatherTable.xsd).
ConversionException |
void asdm::WeatherTable::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 Weather (WeatherTable.xsd).
ConversionException |
std::vector<WeatherRow *> asdm::WeatherTable::get | ( | ) |
====> Methods returning rows.
Get a collection of pointers on the rows of the table.
const std::vector<WeatherRow *>& asdm::WeatherTable::get | ( | ) | const |
Get a const reference on the collection of rows pointers internally hold by the table.
std::vector<WeatherRow *> asdm::WeatherTable::get | ( | ) |
====> Methods returning rows.
Get a collection of pointers on the rows of the table.
const std::vector<WeatherRow *>& asdm::WeatherTable::get | ( | ) | const |
Get a const reference on the collection of rows pointers internally hold by the table.
static const std::vector<std::string>& asdm::WeatherTable::getAttributesNames | ( | ) | [static] |
Return the names of the attributes of this table.
static const std::vector<std::string>& asdm::WeatherTable::getAttributesNames | ( | ) | [static] |
Return the names of the attributes of this table.
std::vector<WeatherRow*>* asdm::WeatherTable::getByContext | ( | Tag | stationId | ) |
Returns all the rows sorted by ascending startTime for a given context.
The context is defined by a value of ( stationId ).
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<WeatherRow*>* asdm::WeatherTable::getByContext | ( | Tag | stationId | ) |
Returns all the rows sorted by ascending startTime for a given context.
The context is defined by a value of ( stationId ).
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::WeatherTable::getByKeyNoAutoIncNoTime | ( | std::vector< WeatherRow * > & | vin, |
std::vector< WeatherRow * > & | vout, | ||
Tag | stationId | ||
) | [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::WeatherTable::getByKeyNoAutoIncNoTime | ( | std::vector< WeatherRow * > & | vin, |
std::vector< WeatherRow * > & | vout, | ||
Tag | stationId | ||
) | [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::WeatherTable::getContainer | ( | ) | const |
Return the container to which this table belongs.
ASDM& asdm::WeatherTable::getContainer | ( | ) | const |
Return the container to which this table belongs.
Referenced by checkPresenceInMemory().
Entity asdm::WeatherTable::getEntity | ( | ) | const [virtual] |
Return this table's Entity.
Implements asdm::Representable.
Entity asdm::WeatherTable::getEntity | ( | ) | const [virtual] |
Return this table's Entity.
Implements asdm::Representable.
static std::vector<std::string> asdm::WeatherTable::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::WeatherTable::getKeyName | ( | ) | [static] |
Return the list of field names that make up key key as an array of strings.
std::string asdm::WeatherTable::getName | ( | ) | const [virtual] |
Return the name of this table.
This is a instance method of the class.
Implements asdm::Representable.
std::string asdm::WeatherTable::getName | ( | ) | const [virtual] |
Return the name of this table.
This is a instance method of the class.
Implements asdm::Representable.
WeatherRow* asdm::WeatherTable::getRowByKey | ( | Tag | stationId, |
ArrayTimeInterval | timeInterval | ||
) |
Returns a WeatherRow* given a key.
stationId | |
timeInterval |
WeatherRow* asdm::WeatherTable::getRowByKey | ( | Tag | stationId, |
ArrayTimeInterval | timeInterval | ||
) |
Returns a WeatherRow* given a key.
stationId | |
timeInterval |
BinaryAttributeReaderFunctor* asdm::WeatherTable::getUnknownAttributeBinaryReader | ( | const std::string & | attributeName | ) | const |
BinaryAttributeReaderFunctor* asdm::WeatherTable::getUnknownAttributeBinaryReader | ( | const std::string & | attributeName | ) | const |
std::string asdm::WeatherTable::getVersion | ( | ) | const |
Return the version information about this table.
std::string asdm::WeatherTable::getVersion | ( | ) | const |
Return the version information about this table.
static bool asdm::WeatherTable::initAttributesNames | ( | ) | [static, private] |
A method to fill attributesNames and attributesNamesInBin;.
WeatherRow* asdm::WeatherTable::insertByStartTime | ( | WeatherRow * | x, |
std::vector< WeatherRow * > & | row | ||
) | [private] |
Insert a WeatherRow* in a vector of WeatherRow* so that it's ordered by ascending time.
WeatherRow* | x . The pointer to be inserted. |
vector | <WeatherRow*>& row . A reference to the vector where to insert x. |
WeatherRow* asdm::WeatherTable::insertByStartTime | ( | WeatherRow * | x, |
std::vector< WeatherRow * > & | row | ||
) | [private] |
Insert a WeatherRow* in a vector of WeatherRow* so that it's ordered by ascending time.
WeatherRow* | x . The pointer to be inserted. |
vector | <WeatherRow*>& row . A reference to the vector where to insert x. |
std::string asdm::WeatherTable::Key | ( | Tag | stationId | ) | [private] |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
std::string asdm::WeatherTable::Key | ( | Tag | stationId | ) | [private] |
Returns a string built by concatenating the ascii representation of the parameters values suffixed with a "_" character.
WeatherRow* asdm::WeatherTable::lookup | ( | Tag | stationId, |
ArrayTimeInterval | timeInterval | ||
) |
Look up the table for a row whose all attributes are equal to the corresponding parameters of the method.
stationId | |
timeInterval |
WeatherRow* asdm::WeatherTable::lookup | ( | Tag | stationId, |
ArrayTimeInterval | timeInterval | ||
) |
Look up the table for a row whose all attributes are equal to the corresponding parameters of the method.
stationId | |
timeInterval |
std::string asdm::WeatherTable::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::WeatherTable::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::WeatherTable::name | ( | ) | [static] |
Return the name of this table.
This is a static method of the class.
static std::string asdm::WeatherTable::name | ( | ) | [static] |
Return the name of this table.
This is a static method of the class.
WeatherRow* asdm::WeatherTable::newRow | ( | Tag | stationId, |
ArrayTimeInterval | timeInterval | ||
) |
Create a new row initialized to the specified values.
stationId | |
timeInterval |
WeatherRow* asdm::WeatherTable::newRow | ( | Tag | stationId, |
ArrayTimeInterval | timeInterval | ||
) |
Create a new row initialized to the specified values.
stationId | |
timeInterval |
WeatherRow* asdm::WeatherTable::newRow | ( | WeatherRow * | row | ) |
Create a new row using a copy constructor mechanism.
The method creates a new WeatherRow 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 WeatherRow with default values for its attributes.
row | the row which is to be copied. |
WeatherRow* asdm::WeatherTable::newRow | ( | WeatherRow * | row | ) |
Create a new row using a copy constructor mechanism.
The method creates a new WeatherRow 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 WeatherRow with default values for its attributes.
row | the row which is to be copied. |
void asdm::WeatherTable::setEntity | ( | Entity | e | ) | [virtual] |
void asdm::WeatherTable::setEntity | ( | Entity | e | ) | [virtual] |
void asdm::WeatherTable::setFromFile | ( | const std::string & | directory | ) | [private] |
Reads and parses a file containing a representation of a WeatherTable 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::WeatherTable::setFromFile | ( | const std::string & | directory | ) | [private] |
Reads and parses a file containing a representation of a WeatherTable 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::WeatherTable::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::WeatherTable::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::WeatherTable::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 Weather table.
void asdm::WeatherTable::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 Weather table.
void asdm::WeatherTable::setFromXMLFile | ( | const std::string & | directory | ) | [private] |
void asdm::WeatherTable::setFromXMLFile | ( | const std::string & | directory | ) | [private] |
void asdm::WeatherTable::setUnknownAttributeBinaryReader | ( | const std::string & | attributeName, |
BinaryAttributeReaderFunctor * | barFctr | ||
) |
void asdm::WeatherTable::setUnknownAttributeBinaryReader | ( | const std::string & | attributeName, |
BinaryAttributeReaderFunctor * | barFctr | ||
) |
unsigned int asdm::WeatherTable::size | ( | ) | const [virtual] |
Return the number of rows in the table.
Implements asdm::Representable.
unsigned int asdm::WeatherTable::size | ( | ) | const [virtual] |
Return the number of rows in the table.
Implements asdm::Representable.
void asdm::WeatherTable::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 "Weather.bin" or an XML representation (fileAsBin==false) will be saved in a file "Weather.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::WeatherTable::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 "Weather.bin" or an XML representation (fileAsBin==false) will be saved in a file "Weather.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::WeatherTableIDL* asdm::WeatherTable::toIDL | ( | ) |
Conversion Methods.
Convert this table into a WeatherTableIDL CORBA structure.
asdmIDL::WeatherTableIDL* asdm::WeatherTable::toIDL | ( | ) |
Conversion Methods.
Convert this table into a WeatherTableIDL CORBA structure.
void asdm::WeatherTable::toIDL | ( | asdmIDL::WeatherTableIDL & | x | ) | const |
Fills the CORBA data structure passed in parameter with the content of this table.
x | a reference to the asdmIDL::WeatherTableIDL to be populated with the content of this. |
std::string asdm::WeatherTable::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::WeatherTable::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::WeatherTable::toXML | ( | ) | [virtual] |
Produces an XML representation conform to the schema defined for Weather (WeatherTable.xsd).
ConversionException |
Implements asdm::Representable.
std::string asdm::WeatherTable::toXML | ( | ) | [virtual] |
Produces an XML representation conform to the schema defined for Weather (WeatherTable.xsd).
ConversionException |
Implements asdm::Representable.
ASDM [friend] |
Reimplemented from asdm::Representable.
Definition at line 273 of file WeatherTable.h.
bool asdm::WeatherTable::archiveAsBin [private] |
Definition at line 539 of file WeatherTable.h.
std::vector<std::string> asdm::WeatherTable::attributesNames [static, private] |
The attributes names.
Definition at line 544 of file WeatherTable.h.
std::vector<std::string> asdm::WeatherTable::attributesNamesInBin [static, private] |
The attributes names in the order in which they appear in the binary representation of the table.
Definition at line 549 of file WeatherTable.h.
ASDM & asdm::WeatherTable::container [private] |
Definition at line 537 of file WeatherTable.h.
std::map< std::string, TIME_ROWS > asdm::WeatherTable::context [private] |
Definition at line 600 of file WeatherTable.h.
Entity asdm::WeatherTable::entity [private] |
Definition at line 544 of file WeatherTable.h.
bool asdm::WeatherTable::fileAsBin [private] |
Definition at line 540 of file WeatherTable.h.
bool asdm::WeatherTable::initAttributesNamesDone [private] |
Definition at line 555 of file WeatherTable.h.
std::string asdm::WeatherTable::itsName [static, private] |
The name of this table.
Definition at line 539 of file WeatherTable.h.
std::vector<std::string> asdm::WeatherTable::key [static, private] |
The list of field names that make up key key.
Definition at line 561 of file WeatherTable.h.
bool asdm::WeatherTable::loadInProgress [private] |
Load the table in memory if necessary.
Reimplemented from asdm::Representable.
Definition at line 680 of file WeatherTable.h.
Referenced by checkPresenceInMemory().
std::vector< WeatherRow * > asdm::WeatherTable::privateRows [private] |
A data structure to store the pointers on the table's rows.
In all cases we maintain a private vector of WeatherRow s.
Definition at line 590 of file WeatherTable.h.
std::map< std::string, BinaryAttributeReaderFunctor * > asdm::WeatherTable::unknownAttributes2Functors [private] |
Definition at line 631 of file WeatherTable.h.
std::string asdm::WeatherTable::version [private] |
Definition at line 542 of file WeatherTable.h.