Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2423

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.7
    • C++ Client
    • 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

      Attachments

        Activity

          People

            tross Ted Ross
            tross Ted Ross
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: