34 #ifndef SquareLawDetectorTable_CLASS
35 #define SquareLawDetectorTable_CLASS
81 class SquareLawDetectorRow;
140 static const std::vector<std::string>&
getKeyName();
157 unsigned int size()
const;
175 static std::string
name() ;
215 std::string
toXML() ;
224 asdmIDL::SquareLawDetectorTableIDL *
toIDL() ;
233 void toIDL(asdmIDL::SquareLawDetectorTableIDL& x)
const;
244 void fromIDL(asdmIDL::SquareLawDetectorTableIDL x) ;
314 std::vector<SquareLawDetectorRow *>
get() ;
322 const std::vector<SquareLawDetectorRow *>&
get()
const ;
426 std::vector<SquareLawDetectorRow *>
row;
484 void toFile(std::string directory);
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 toFile(std::string directory)
Stores a representation (binary or XML) of this table into a file.
static const ByteOrder * Machine_Endianity
void fromIDL(asdmIDL::SquareLawDetectorTableIDL x)
Populate this table from the content of a SquareLawDetectorTableIDL Corba structure.
virtual ~SquareLawDetectorTable()
static const std::vector< std::string > & getKeyName()
Return the list of field names that make up key key as an array of strings.
std::vector< SquareLawDetectorRow * > row
SquareLawDetectorRow * checkAndAdd(SquareLawDetectorRow *x, bool skipCheckUniqueness=false)
If this table has an autoincrementable attribute then check if *x verifies the rule of uniqueness and...
A class to represent byte order information.
std::map< std::string, BinaryAttributeReaderFunctor * > unknownAttributes2Functors
unsigned int size() const
Return the number of rows in the table.
std::string toXML()
Produces an XML representation conform to the schema defined for SquareLawDetector (SquareLawDetector...
asdmIDL::SquareLawDetectorTableIDL * toIDL()
Conversion Methods.
void setUnknownAttributeBinaryReader(const std::string &attributeName, BinaryAttributeReaderFunctor *barFctr)
The ASDM class is the container for all tables.
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...
void checkPresenceInMemory()
std::map< std::string, int > noAutoIncIds
A map for the autoincrementation algorithm.
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...
void autoIncrement(std::string key, SquareLawDetectorRow *x)
SquareLawDetectorRow * lookup(int numBand, DetectorBandTypeMod::DetectorBandType bandType)
Look up the table for a row whose all attributes except the autoincrementable one are equal to the co...
void append(SquareLawDetectorRow *x)
Brutally append an SquareLawDetectorRow x to the collection of rows already stored in this table...
SquareLawDetectorRow * newRow()
====> Row creation.
The SquareLawDetectorRow class is a row of a SquareLawDetectorTable.
ASDM & getContainer() const
Return the container to which this table belongs.
void setFromXMLFile(const std::string &directory)
static std::string name()
Return the name of this table.
std::vector< SquareLawDetectorRow * > privateRows
A data structure to store the pointers on the table's rows.
std::string getVersion() const
Return the version information about this table.
Entity getEntity() const
Return this table's Entity.
The SquareLawDetectorTable class is an Alma table.
std::string getName() const
Return the name of this table.
void setEntity(Entity e)
Set this table's Entity.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void addWithoutCheckingUnique(SquareLawDetectorRow *x)
Brutally append an SquareLawDetectorRow x to the collection of rows already stored in this table...
SquareLawDetectorTable(ASDM &container)
Create a SquareLawDetectorTable.
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:
SquareLawDetectorRow * getRowByKey(Tag squareLawDetectorId)
Returns a SquareLawDetectorRow* given a key.
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.
bool loadInProgress
Load the table in memory if necessary.
void setFromFile(const std::string &directory)
Reads and parses a file containing a representation of a SquareLawDetectorTable as those produced by ...
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...
SquareLawDetectorRow * add(SquareLawDetectorRow *x)
====> Append a row to its table.
std::string MIMEXMLPart(const asdm::ByteOrder *byteOrder=asdm::ByteOrder::Machine_Endianity)
Private methods involved during the export of this table into disk file(s).
BinaryAttributeReaderFunctor * getUnknownAttributeBinaryReader(const std::string &attributeName) const
The Entity class is an identification of a persistant entity in the ALMA archive. ...