34 #ifndef PointingModelTable_CLASS
35 #define PointingModelTable_CLASS
93 class PointingModelRow;
206 static const std::vector<std::string>&
getKeyName();
223 unsigned int size()
const;
241 static std::string
name() ;
281 std::string
toXML() ;
290 asdmIDL::PointingModelTableIDL *
toIDL() ;
299 void toIDL(asdmIDL::PointingModelTableIDL& x)
const;
310 void fromIDL(asdmIDL::PointingModelTableIDL x) ;
345 PointingModelRow *
newRow(
Tag antennaId,
int numCoeff, std::vector<std::string > coeffName, std::vector<float > coeffVal, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, std::string assocNature,
int assocPointingModelId);
392 std::vector<PointingModelRow *>
get() ;
400 const std::vector<PointingModelRow *>&
get()
const ;
455 PointingModelRow*
lookup(
Tag antennaId,
int numCoeff, std::vector<std::string > coeffName, std::vector<float > coeffVal, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, std::string assocNature,
int assocPointingModelId);
527 std::vector<PointingModelRow *>
row;
585 void toFile(std::string directory);
PointingModelRow * checkAndAdd(PointingModelRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
void append(PointingModelRow *x)
Brutally append an PointingModelRow x to the collection of rows already stored in this table...
std::string toXML()
Produces an XML representation conform to the schema defined for PointingModel (PointingModelTable.xsd).
ASDM & getContainer() const
Return the container to which this table belongs.
std::string getVersion() const
Return the version information about this table.
static const ByteOrder * Machine_Endianity
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a PointingModelTable as those produced by the ...
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
PointingModelRow * add(PointingModelRow *x)
====> Append a row to its table.
void toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
Entity getEntity() const
Return this table's Entity.
A class to represent byte order information.
PointingModelRow * getRowByKey(Tag antennaId, int pointingModelId)
Returns a PointingModelRow* given a key.
asdmIDL::PointingModelTableIDL * toIDL()
Conversion Methods.
The PointingModelTable class is an Alma table.
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
PointingModelRow * lookup(Tag antennaId, int numCoeff, std::vector< std::string > coeffName, std::vector< float > coeffVal, PolarizationTypeMod::PolarizationType polarizationType, ReceiverBandMod::ReceiverBand receiverBand, std::string assocNature, int assocPointingModelId)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
void setEntity(Entity e)
Set this table's Entity.
bool loadInProgress
Load the table in memory if necessary.
The ASDM class is the container for all tables.
static const std::vector< std::string > & defaultAttributesNamesInBin()
Return the default sorted list of attributes names in the binary representation of the table...
static std::string name()
Return the name of this table.
virtual ~PointingModelTable()
static const std::vector< std::string > & getAttributesNames()
Return the names of the attributes of this table.
void checkPresenceInMemory()
std::vector< PointingModelRow * > row
std::vector< PointingModelRow * > getRowByPointingModelId(int)
Returns a vector of pointers on rows whose key element pointingModelId is equal to the parameter poin...
void addWithoutCheckingUnique(PointingModelRow *x)
Brutally append an PointingModelRow x to the collection of rows already stored in this table...
void fromXML(std::string &xmlDoc)
Populate this table from the content of a XML document that is required to be conform to the XML sche...
std::vector< PointingModelRow * > privateRows
A data structure to store the pointers on the table's rows.
void setFromXMLFile(const std::string &directory)
PointingModelRow * newRow()
====> Row creation.
void autoIncrement(std::string key, PointingModelRow *x)
The PointingModelRow class is a row of a PointingModelTable.
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...
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
std::string getName() const
Return the name of this table.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
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...
The Representable interface is implemented by all tables and by the container.
const Double e
e and functions thereof:
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 fromIDL(asdmIDL::PointingModelTableIDL x)
Populate this table from the content of a PointingModelTableIDL Corba structure.
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
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.
PointingModelTable(ASDM &container)
Create a PointingModelTable.
unsigned int size() const
Return the number of rows in the table.
The Entity class is an identification of a persistant entity in the ALMA archive. ...