[Bug 680] Mixed data and port items in reporting get reordered

On Nov 4, 2009, at 09:07 AM, Peter Soetens wrote:

> https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=680
>
>
> Peter Soetens <peter [..] ...> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |
> peter [..] ...
>
>
>
>
> --- Comment #2 from Peter Soetens <peter [..] ...>
> 2009-11-04 15:07:31 ---
> (In reply to comment #0)
>> If you mix 'data' and 'port' items in the ReportData block, the
>> ports items are
>> all reported first followed by the data items. Bug? Feature?
>> Certainly
>> unexpected ...
>>
>> &#10;&gt;&gt;  ...&#10;&gt;&gt;  &lt;struct name=&quot;ReportData&quot; type=&quot;PropertyBag&quot;&gt;&#10;&gt;&gt;    &lt;simple name=&quot;Port&quot; type=&quot;string&quot;&gt;&lt;value&gt;X.A&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;    &lt;simple name=&quot;Data&quot; type=&quot;string&quot;&gt;&lt;value&gt;X.B&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;    &lt;simple name=&quot;Port&quot; type=&quot;string&quot;&gt;&lt;value&gt;Y.F&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;    &lt;simple name=&quot;Data&quot; type=&quot;string&quot;&gt;&lt;value&gt;Y.G&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt; -    &lt;simple name=&quot;Port&quot; type=&quot;string&quot;&gt;&lt;value&gt;Y.H&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;  &lt;/struct&gt;&#10;&gt;&gt;   ...&#10;&gt;&gt;
>>
>> is reported in the order: X.A, Y.F, Y.H, X.B, Y.G.
>
> Are you using TinyXML or Xerces for marshalling the XML ?

I don't remember which computer this specifically cropped up on, but I
seldom load Xerces so I would guess TinyXML.

Sorry
Stephen

[Bug 680] Mixed data and port items in reporting get reordered

On Wed, Nov 4, 2009 at 15:10, S Roderick <kiwi [dot] net [..] ...> wrote:

> On Nov 4, 2009, at 09:07 AM, Peter Soetens wrote:
>
> https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=680
>>
>>
>> Peter Soetens <peter [..] ...> changed:
>>
>> What |Removed |Added
>>
>> ----------------------------------------------------------------------------
>> CC| |peter [..] ...
>>
>>
>>
>>
>> --- Comment #2 from Peter Soetens <peter [..] ...> 2009-11-04
>> 15:07:31 ---
>> (In reply to comment #0)
>>
>>> If you mix 'data' and 'port' items in the ReportData block, the ports
>>> items are
>>> all reported first followed by the data items. Bug? Feature? Certainly
>>> unexpected ...
>>>
>>> &#10;&gt;&gt;&gt;  ...&#10;&gt;&gt;&gt;  &lt;struct name=&quot;ReportData&quot; type=&quot;PropertyBag&quot;&gt;&#10;&gt;&gt;&gt;   &lt;simple name=&quot;Port&quot; type=&quot;string&quot;&gt;&lt;value&gt;X.A&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;&gt;   &lt;simple name=&quot;Data&quot; type=&quot;string&quot;&gt;&lt;value&gt;X.B&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;&gt;   &lt;simple name=&quot;Port&quot; type=&quot;string&quot;&gt;&lt;value&gt;Y.F&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;&gt;   &lt;simple name=&quot;Data&quot; type=&quot;string&quot;&gt;&lt;value&gt;Y.G&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;&gt; -    &lt;simple name=&quot;Port&quot; type=&quot;string&quot;&gt;&lt;value&gt;Y.H&lt;/value&gt;&lt;/simple&gt;&#10;&gt;&gt;&gt;  &lt;/struct&gt;&#10;&gt;&gt;&gt;  ...&#10;&gt;&gt;&gt;
>>>
>>> is reported in the order: X.A, Y.F, Y.H, X.B, Y.G.
>>>
>>
>> Are you using TinyXML or Xerces for marshalling the XML ?
>>
>
> I don't remember which computer this specifically cropped up on, but I
> seldom load Xerces so I would guess TinyXML.
>

I have the suspicion that TinyXML is passing the properties in another
order than listed in the file... Need to write a unit test to check this.

Peter