34 #ifndef AntennaTable_CLASS
35 #define AntennaTable_CLASS
212 static const std::vector<std::string>&
getKeyName();
229 unsigned int size()
const;
247 static std::string
name() ;
287 std::string
toXML() ;
296 asdmIDL::AntennaTableIDL *
toIDL() ;
305 void toIDL(asdmIDL::AntennaTableIDL& x)
const;
316 void fromIDL(asdmIDL::AntennaTableIDL x) ;
351 AntennaRow *
newRow(std::string
name, AntennaMakeMod::AntennaMake antennaMake, AntennaTypeMod::AntennaType antennaType,
Length dishDiameter, std::vector<Length > position, std::vector<Length > offset,
ArrayTime time,
Tag stationId);
398 std::vector<AntennaRow *>
get() ;
406 const std::vector<AntennaRow *>&
get()
const ;
450 AntennaRow*
lookup(std::string
name, AntennaMakeMod::AntennaMake antennaMake, AntennaTypeMod::AntennaType antennaType,
Length dishDiameter, std::vector<Length > position, std::vector<Length > offset,
ArrayTime time,
Tag stationId);
522 std::vector<AntennaRow *>
row;
580 void toFile(std::string directory);
static const ByteOrder * Machine_Endianity
void checkPresenceInMemory()
void setFromMIMEFile(const std::string &directory)
Private methods involved during the build of this table out of the content of file(s) containing an e...
AntennaTable(ASDM &container)
Create a AntennaTable.
AntennaRow * add(AntennaRow *x)
====> Append a row to its table.
unsigned int size() const
Return the number of rows in the table.
bool loadInProgress
Load the table in memory if necessary.
A class to represent byte order information.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a AntennaTable as those produced by the toFile...
ABSTRACT TOOL CLASSES A PlotTool is a higher level event handler for a PlotCanvas The idea is to take common tasks which may require multiple events and put them in one place PlotTools also provide additional functionality in that they can be active and blocking non blocking The PlotCanvas will only send events to active and will not send events to later tools or event handlers if the latest tool was blocking In this way a single tool can be used to handle ALL user interaction via the GUI at one time
The ASDM class is the container for all tables.
void fromIDL(asdmIDL::AntennaTableIDL x)
Populate this table from the content of a AntennaTableIDL Corba structure.
AntennaRow * checkAndAdd(AntennaRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
AntennaRow * newRow()
====> Row creation.
ASDM & getContainer() const
Return the container to which this table belongs.
static std::string name()
Return the name of this table.
Entity getEntity() const
Return this table's Entity.
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
std::vector< AntennaRow * > row
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
std::string toXML()
Produces an XML representation conform to the schema defined for Antenna (AntennaTable.xsd).
AntennaRow * getRowByKey(Tag antennaId)
Returns a AntennaRow* given a key.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
void setEntity(Entity e)
Set this table's Entity.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
std::vector< AntennaRow * > privateRows
A data structure to store the pointers on the table's rows.
void autoIncrement(std::string key, AntennaRow *x)
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
The AntennaRow class is a row of a AntennaTable.
asdmIDL::AntennaTableIDL * toIDL()
Conversion Methods.
void setFromMIME(const std::string &mimeMsg)
Extracts the binary part of a MIME message and deserialize its content to fill this with the result o...
void addWithoutCheckingUnique(AntennaRow *x)
Brutally append an AntennaRow x to the collection of rows already stored in this table.
The Length class implements a quantity of length in meters.
The AntennaTable class is an Alma table.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
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.
std::string getName() const
Return the name of this table.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
AntennaRow * lookup(std::string name, AntennaMakeMod::AntennaMake antennaMake, AntennaTypeMod::AntennaType antennaType, Length dishDiameter, std::vector< Length > position, std::vector< Length > offset, ArrayTime time, Tag stationId)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
A pure virtual class whose derived classes are expected to be functors whose behaviours will be to re...
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
The Representable interface is implemented by all tables and by the container.
void append(AntennaRow *x)
Brutally append an AntennaRow x to the collection of rows already stored in this table.
const Double e
e and functions thereof:
std::string getVersion() const
Return the version information about this table.
void setFromXMLFile(const std::string &directory)
The Entity class is an identification of a persistant entity in the ALMA archive. ...
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).