34 #ifndef SwitchCycleRow_CLASS
35 #define SwitchCycleRow_CLASS
110 class SwitchCycleRow;
155 Tag getSwitchCycleId()
const;
460 asdmIDL::SwitchCycleRowIDL *
toIDL()
const;
469 void toIDL(asdmIDL::SwitchCycleRowIDL& x)
const;
478 void setFromIDL (asdmIDL::SwitchCycleRowIDL x) ;
485 std::string
toXML()
const;
500 std::map<std::string, SwitchCycleAttributeFromBin>
fromBinMethods;
527 void fromText(
const std::string& attributeName,
const std::string& t);
ArrayTime getDirectionEquinox() const
Get directionEquinox, which is optional.
void clearDirectionCode()
Mark directionCode, which is an optional field, as non-existent.
void(SwitchCycleRow::* SwitchCycleAttributeFromText)(const std::string &s)
bool compareRequiredValue(int numStep, std::vector< float > weightArray, std::vector< std::vector< Angle > > dirOffsetArray, std::vector< Frequency > freqOffsetArray, std::vector< Interval > stepDurationArray)
Compare each mandatory value (i.e.
virtual ~SwitchCycleRow()
friend class asdm::TableStreamReader<SwitchCycleTable, SwitchCycleRow>;
void weightArrayFromText(const std::string &s)
std::vector< Interval > stepDurationArray
===> Attribute stepDurationArray
asdmIDL::SwitchCycleRowIDL * toIDL() const
Return this row in the form of an IDL struct.
bool isAdded() const
Has this row been added to its table ?
void directionCodeFromText(const std::string &s)
std::vector< float > getWeightArray() const
===> Attribute weightArray
void setSwitchCycleId(Tag switchCycleId)
Set switchCycleId with the specified Tag value.
void weightArrayFromBin(EndianIStream &eis)
void directionEquinoxFromBin(EndianIStream &eis)
void switchCycleIdFromBin(EndianIStream &eis)
void setStepDurationArray(std::vector< Interval > stepDurationArray)
Set stepDurationArray with the specified std::vector<Interval >.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void switchCycleIdFromText(const std::string &s)
void numStepFromText(const std::string &s)
void dirOffsetArrayFromText(const std::string &s)
void numStepFromBin(EndianIStream &eis)
std::string toXML() const
Return this row in the form of an XML string.
The SwitchCycleRow class is a row of a SwitchCycleTable.
std::vector< Interval > getStepDurationArray() const
===> Attribute stepDurationArray
SwitchCycleTable & table
The table to which this row belongs.
SwitchCycleRow(SwitchCycleTable &table)
Create a SwitchCycleRow.
int getNumStep() const
===> Attribute numStep
*text deserialization material std::map< std::string, SwitchCycleAttributeFromText > fromTextMethods
ArrayTime directionEquinox
bool isDirectionCodeExists() const
===> Attribute directionCode, which is optional
void setDirOffsetArray(std::vector< std::vector< Angle > > dirOffsetArray)
Set dirOffsetArray with the specified std::vector<std::vector<Angle > >.
The SwitchCycleTable class is an Alma table.
bool hasBeenAdded
Whether this row has been added to the table or not.
void clearDirectionEquinox()
Mark directionEquinox, which is an optional field, as non-existent.
void(SwitchCycleRow::* SwitchCycleAttributeFromBin)(EndianIStream &eis)
bool directionEquinoxExists
===> Attribute directionEquinox, which is optional
void setDirectionCode(DirectionReferenceCodeMod::DirectionReferenceCode directionCode)
Set directionCode with the specified DirectionReferenceCodeMod::DirectionReferenceCode.
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
int numStep
===> Attribute numStep
void directionEquinoxFromText(const std::string &s)
void dirOffsetArrayFromBin(EndianIStream &eis)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void setDirectionEquinox(ArrayTime directionEquinox)
Set directionEquinox with the specified ArrayTime.
std::vector< float > weightArray
===> Attribute weightArray
bool equalByRequiredValue(SwitchCycleRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
SwitchCycleTable & getTable() const
Return the table to which this row belongs.
void setNumStep(int numStep)
Set numStep with the specified int.
void directionCodeFromBin(EndianIStream &eis)
void stepDurationArrayFromText(const std::string &s)
bool directionCodeExists
===> Attribute directionCode, which is optional
Extrinsic Table Attributes Links *bool compareNoAutoInc(int numStep, std::vector< float > weightArray, std::vector< std::vector< Angle > > dirOffsetArray, std::vector< Frequency > freqOffsetArray, std::vector< Interval > stepDurationArray)
Compare each mandatory attribute except the autoincrementable one of this SwitchCycleRow with the cor...
bool isDirectionEquinoxExists() const
===> Attribute directionEquinox, which is optional
std::vector< std::vector< Angle > > getDirOffsetArray() const
===> Attribute dirOffsetArray
void setFromIDL(asdmIDL::SwitchCycleRowIDL x)
Fill the values of this row from the IDL struct SwitchCycleRowIDL.
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, SwitchCycleAttributeFromBin > fromBinMethods
DirectionReferenceCodeMod::DirectionReferenceCode directionCode
DirectionReferenceCodeMod::DirectionReferenceCode getDirectionCode() const
Get directionCode, which is optional.
std::vector< Frequency > getFreqOffsetArray() const
===> Attribute freqOffsetArray
std::vector< std::vector< Angle > > dirOffsetArray
===> Attribute dirOffsetArray
void setWeightArray(std::vector< float > weightArray)
Set weightArray with the specified std::vector<float >.
void freqOffsetArrayFromBin(EndianIStream &eis)
void setFreqOffsetArray(std::vector< Frequency > freqOffsetArray)
Set freqOffsetArray with the specified std::vector<Frequency >.
void stepDurationArrayFromBin(EndianIStream &eis)
void freqOffsetArrayFromText(const std::string &s)
std::vector< Frequency > freqOffsetArray
===> Attribute freqOffsetArray