[QFJ-564] Operating on (modifying) repeating groups Created: 10/Nov/10 Updated: 10/Nov/10 |
|
| Status: | Open |
| Project: | QuickFIX/J |
| Component/s: | Engine |
| Affects Version/s: | 1.5.0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Default |
| Reporter: | Addy Bhardwaj | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
N/A |
||
| Description |
|
Currently if you want to add a value in a repeating group, there isn't a straightforward way of doing so. For instance, //Just for illustration, if noSides group is read from TCR //add account information in TCR This action doesn't modify the original TCR message as the group returned by getGroup() method is a copy of the actual group object. Is there a reason for this behaviour? Also, I noticed that when we add a typed group object it is copied into a Group object and then stored in the underlying TreeMap of groups. The only reason I could find is that String to Object parsing doesn't create concrete group objects hence copy is required but I hoping there is another reason that I have overlooked. ps: I have modified source code locally to improve this behaviour by
|