34 #ifndef StationRow_CLASS
35 #define StationRow_CLASS
141 Tag getStationId()
const;
221 StationTypeMod::StationType
getType()
const;
337 asdmIDL::StationRowIDL *
toIDL()
const;
346 void toIDL(asdmIDL::StationRowIDL& x)
const;
362 std::string
toXML()
const;
401 void fromText(
const std::string& attributeName,
const std::string& t);
501 StationTypeMod::StationType
type;
std::vector< Length > position
===> Attribute position
bool timeExists
===> Attribute time, which is optional
bool hasBeenAdded
Whether this row has been added to the table or not.
bool isAdded() const
Has this row been added to its table ?
ArrayTime getTime() const
Get time, which is optional.
void(StationRow::* StationAttributeFromBin)(EndianIStream &eis)
void setName(std::string name)
Set name with the specified std::string.
StationTypeMod::StationType type
===> Attribute type
void(StationRow::* StationAttributeFromText)(const std::string &s)
asdmIDL::StationRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void nameFromText(const std::string &s)
StationTypeMod::StationType getType() const
===> Attribute type
void timeFromText(const std::string &s)
void nameFromBin(EndianIStream &eis)
void positionFromText(const std::string &s)
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, StationAttributeFromBin > fromBinMethods
std::string toXML() const
Return this row in the form of an XML string.
void positionFromBin(EndianIStream &eis)
The StationTable class is an Alma table.
std::string name
===> Attribute name
std::vector< Length > getPosition() const
===> Attribute position
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
bool equalByRequiredValue(StationRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void typeFromText(const std::string &s)
Extrinsic Table Attributes Links *bool compareNoAutoInc(std::string name, std::vector< Length > position, StationTypeMod::StationType type)
Compare each mandatory attribute except the autoincrementable one of this StationRow with the corresp...
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
void setTime(ArrayTime time)
Set time with the specified ArrayTime.
void setPosition(std::vector< Length > position)
Set position with the specified std::vector<Length >.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void timeFromBin(EndianIStream &eis)
void setStationId(Tag stationId)
Set stationId with the specified Tag value.
void typeFromBin(EndianIStream &eis)
void stationIdFromText(const std::string &s)
StationTable & table
The table to which this row belongs.
void stationIdFromBin(EndianIStream &eis)
bool compareRequiredValue(std::string name, std::vector< Length > position, StationTypeMod::StationType type)
Compare each mandatory value (i.e.
bool isTimeExists() const
===> Attribute time, which is optional
void setType(StationTypeMod::StationType type)
Set type with the specified StationTypeMod::StationType.
void clearTime()
Mark time, which is an optional field, as non-existent.
std::string getName() const
===> Attribute name
The StationRow class is a row of a StationTable.
StationTable & getTable() const
Return the table to which this row belongs.
void setFromIDL(asdmIDL::StationRowIDL x)
Fill the values of this row from the IDL struct StationRowIDL.
*text deserialization material std::map< std::string, StationAttributeFromText > fromTextMethods
virtual ~StationRow()
friend class asdm::TableStreamReader<StationTable, StationRow>;
StationRow(StationTable &table)
Create a StationRow.