You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by trivedi_ravi13 <tr...@yahoo.co.in> on 2013/06/27 17:12:24 UTC

C++ client API.. How to set uint8 value in FieldTable?

Is it possible to set uint8 value in FieldTable class?
setInt() method seem to be taking uint32_t



--
View this message in context: http://qpid.2158936.n2.nabble.com/C-client-API-How-to-set-uint8-value-in-FieldTable-tp7594657.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: C++ client API.. How to set uint8 value in FieldTable?

Posted by Gordon Sim <gs...@redhat.com>.
On 06/27/2013 04:12 PM, trivedi_ravi13 wrote:
> Is it possible to set uint8 value in FieldTable class?
> setInt() method seem to be taking uint32_t

You can set the value to a shared_pointer to an instance of 
Unsigned8Value, e.g.

ft.set("my-key", boost::shared_ptr<FieldValue>(new Unsigned8Value(i)));

However, you should be aware that there is a proposal to remove the 
qpid::client API (including all the qpid::framing classes) after the 
next release (next release is 0.24, if the proposal goes ahead the 
qpid::client API will not be installed for subsequent releases).

How entrenched in the qpid::client API are you?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org