Qpid
  1. Qpid
  2. QPID-2423

Add Constructors to set initial value of content for MapContent and ListContent

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: C++ Client
    • Labels:
      None

      Description

      MapContent and ListContent (helper classes in the qpid::messaging API) don't have a convenient way of being initialized with an already-existing map or list.

      I propose that in addition to the

      {Map,List}Content(Message&) constructor, a new constructor be added that also takes a const Variant::{Map,List}

      & as an initial value.

      Note that the current constructors will decode map/list content already in the message. That will remain unchanged but the new constructors will clear the message content, if there is any.

      -Ted

        Activity

        Justin Ross made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ted Ross made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ted Ross created issue -

          People

          • Assignee:
            Ted Ross
            Reporter:
            Ted Ross
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development