qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Khan <rajeshkhan...@gmail.com>
Subject Re: Sending objects to receivers
Date Tue, 16 Oct 2012 16:46:33 GMT
Thats an idea. However I was curious is there a better way to do this ?
What if my object has lots of properties

On Tue, Oct 16, 2012 at 10:44 AM, Andy Goldstein
<andy.goldstein@redhat.com>wrote:

> Could you just take your class's properties and place them in a map?
>
> Andy
>
> On Oct 16, 2012, at 12:29 PM, Rajesh Khan wrote:
>
> > While studying QPIDD I realized that I could send maps and lists to
> > receivers like this
> >
> >            qpid::types::Variant::Map content;
> >            content["id"] = 987654321;
> >            content["name"] = "Widget";
> >            content["percent"] = 0.99;
> >            encode(content, message);
> >            sender.send(message);
> >
> >
> > I wanted to know How could I send a customized object I created from a
> > class. ?  Any suggestions ?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message