Loading include/SDFBlock.h +103 −1 Original line number Diff line number Diff line Loading @@ -165,13 +165,61 @@ public: }; /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline word getFieldValue(word index) { return fixed.getFieldValue(index); }; /// Sets the value of a field in the list of fields of the fixed part. /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline signed short getFieldValue_16i(word index) { return fixed.getFieldValue_16i(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline word getFieldValue_16ui(word index) { return fixed.getFieldValue_16ui(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline signed long getFieldValue_32i(word index) { return fixed.getFieldValue_32i(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline unsigned long getFieldValue_32ui(word index) { return fixed.getFieldValue_32ui(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline float getFieldValue_32f(word index) { return fixed.getFieldValue_32f(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline double getFieldValue_64f(word index) { return fixed.getFieldValue_64f(index); } /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual inline void setFieldValue(word index, word value) Loading @@ -179,6 +227,60 @@ public: fixed.setFieldValue(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16i(word index, signed short value) { fixed.setFieldValue_16i(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16ui(word index, word value) { fixed.setFieldValue_16ui(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32i(word index, signed long value) { fixed.setFieldValue_32i(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32ui(word index, unsigned long value) { fixed.setFieldValue_32ui(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32f(word index, float value) { fixed.setFieldValue_32f(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_64f(word index, double value) { fixed.setFieldValue_64f(index, value); }; /// Returns the number of fields of this block (fixed and variable part). virtual inline word getNumberOfFields() { Loading include/SourceDataField.h +62 −4 Original line number Diff line number Diff line Loading @@ -33,8 +33,6 @@ public: virtual ~SourceDataField(); virtual bool loadFields(InputText& fp) throw(PacketException*); /// Get a block of number nblock of the group of blocks of the rblock Loading @@ -53,17 +51,77 @@ public: /// \param index Represent the index in the list. virtual Field* getFields(word index); /// Returns the value of a field in the fixed part of this source data field. /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual word getFieldValue(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual signed short getFieldValue_16i(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual word getFieldValue_16ui(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual signed long getFieldValue_32i(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. unsigned long getFieldValue_32ui(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual float getFieldValue_32f(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual double getFieldValue_64f(word index); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue(word index, word value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16i(word index, signed short value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16ui(word index, word value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32i(word index, signed long value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32ui(word index, unsigned long value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32f(word index, float value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_64f(word index, double value); /// Returns the number of fields. virtual word getNumberOfFields(); Loading src/SourceDataField.cpp +58 −1 Original line number Diff line number Diff line Loading @@ -154,7 +154,39 @@ word SourceDataField::getFieldValue(word index) void SourceDataField::setFieldValue(word index, word value) { return block[0].setFieldValue(index, value); block[0].setFieldValue(index, value); } void SourceDataField::setFieldValue_16i(word index, signed short value) { block[0].setFieldValue_16i(index, value); } void SourceDataField::setFieldValue_16ui(word index, word value) { block[0].setFieldValue_16ui(index, value); } void SourceDataField::setFieldValue_32i(word index, signed long value) { block[0].setFieldValue_32i(index, value); } void SourceDataField::setFieldValue_32ui(word index, unsigned long value) { block[0].setFieldValue_32ui(index, value); } void SourceDataField::setFieldValue_32f(word index, float value) { block[0].setFieldValue_32f(index, value); } void SourceDataField::setFieldValue_64f(word index, double value) { block[0].setFieldValue_64f(index, value); } word SourceDataField::getNumberOfFields() Loading Loading @@ -189,4 +221,29 @@ void SourceDataField::set_reset_output_stream(bool value) reset_output_stream = value; } signed short SourceDataField::getFieldValue_16i(word index){ return block[0].getFieldValue_16i(index); } word SourceDataField::getFieldValue_16ui(word index){ return block[0].getFieldValue_16ui(index); } signed long SourceDataField::getFieldValue_32i(word index){ return block[0].getFieldValue_32i(index); } unsigned long SourceDataField::getFieldValue_32ui(word index) { return block[0].getFieldValue_32ui(index); } float SourceDataField::getFieldValue_32f(word index) { return block[0].getFieldValue_32f(index); } double SourceDataField::getFieldValue_64f(word index) { return block[0].getFieldValue_64f(index); } Loading
include/SDFBlock.h +103 −1 Original line number Diff line number Diff line Loading @@ -165,13 +165,61 @@ public: }; /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline word getFieldValue(word index) { return fixed.getFieldValue(index); }; /// Sets the value of a field in the list of fields of the fixed part. /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline signed short getFieldValue_16i(word index) { return fixed.getFieldValue_16i(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline word getFieldValue_16ui(word index) { return fixed.getFieldValue_16ui(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline signed long getFieldValue_32i(word index) { return fixed.getFieldValue_32i(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline unsigned long getFieldValue_32ui(word index) { return fixed.getFieldValue_32ui(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline float getFieldValue_32f(word index) { return fixed.getFieldValue_32f(index); } /// Returns the value of a field in the list of fields of the fixed part. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. virtual inline double getFieldValue_64f(word index) { return fixed.getFieldValue_64f(index); } /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual inline void setFieldValue(word index, word value) Loading @@ -179,6 +227,60 @@ public: fixed.setFieldValue(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16i(word index, signed short value) { fixed.setFieldValue_16i(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16ui(word index, word value) { fixed.setFieldValue_16ui(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32i(word index, signed long value) { fixed.setFieldValue_32i(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32ui(word index, unsigned long value) { fixed.setFieldValue_32ui(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32f(word index, float value) { fixed.setFieldValue_32f(index, value); }; /// Sets the value of a field in the list of fields of the fixed part of this block. /// See ParfOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_64f(word index, double value) { fixed.setFieldValue_64f(index, value); }; /// Returns the number of fields of this block (fixed and variable part). virtual inline word getNumberOfFields() { Loading
include/SourceDataField.h +62 −4 Original line number Diff line number Diff line Loading @@ -33,8 +33,6 @@ public: virtual ~SourceDataField(); virtual bool loadFields(InputText& fp) throw(PacketException*); /// Get a block of number nblock of the group of blocks of the rblock Loading @@ -53,17 +51,77 @@ public: /// \param index Represent the index in the list. virtual Field* getFields(word index); /// Returns the value of a field in the fixed part of this source data field. /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual word getFieldValue(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual signed short getFieldValue_16i(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual word getFieldValue_16ui(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual signed long getFieldValue_32i(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. unsigned long getFieldValue_32ui(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual float getFieldValue_32f(word index); /// See PartOfPacket for documentation /// \param index Represent the index in the list. virtual double getFieldValue_64f(word index); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue(word index, word value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16i(word index, signed short value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_16ui(word index, word value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32i(word index, signed long value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32ui(word index, unsigned long value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_32f(word index, float value); /// Sets the value of a field in the fixed part of this source data field. /// See PartOfPacket doc for more details /// \param index Represent the index in the list. /// \param value The value must be set. virtual void setFieldValue_64f(word index, double value); /// Returns the number of fields. virtual word getNumberOfFields(); Loading
src/SourceDataField.cpp +58 −1 Original line number Diff line number Diff line Loading @@ -154,7 +154,39 @@ word SourceDataField::getFieldValue(word index) void SourceDataField::setFieldValue(word index, word value) { return block[0].setFieldValue(index, value); block[0].setFieldValue(index, value); } void SourceDataField::setFieldValue_16i(word index, signed short value) { block[0].setFieldValue_16i(index, value); } void SourceDataField::setFieldValue_16ui(word index, word value) { block[0].setFieldValue_16ui(index, value); } void SourceDataField::setFieldValue_32i(word index, signed long value) { block[0].setFieldValue_32i(index, value); } void SourceDataField::setFieldValue_32ui(word index, unsigned long value) { block[0].setFieldValue_32ui(index, value); } void SourceDataField::setFieldValue_32f(word index, float value) { block[0].setFieldValue_32f(index, value); } void SourceDataField::setFieldValue_64f(word index, double value) { block[0].setFieldValue_64f(index, value); } word SourceDataField::getNumberOfFields() Loading Loading @@ -189,4 +221,29 @@ void SourceDataField::set_reset_output_stream(bool value) reset_output_stream = value; } signed short SourceDataField::getFieldValue_16i(word index){ return block[0].getFieldValue_16i(index); } word SourceDataField::getFieldValue_16ui(word index){ return block[0].getFieldValue_16ui(index); } signed long SourceDataField::getFieldValue_32i(word index){ return block[0].getFieldValue_32i(index); } unsigned long SourceDataField::getFieldValue_32ui(word index) { return block[0].getFieldValue_32ui(index); } float SourceDataField::getFieldValue_32f(word index) { return block[0].getFieldValue_32f(index); } double SourceDataField::getFieldValue_64f(word index) { return block[0].getFieldValue_64f(index); }