member functions

View: New views
4 Messages — Rating Filter:   Alert me  

member functions

by Bobby Richards-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html


When using the recommended method to "get" a field where can I find the member functions a certain tag class has?

I am obviously a little confused on how to actually reference these values.  Some I am ok on but others not.

For instance I can do:
FIX::Symbol symbol;
msg.get(symbol);

printf("symbol: %s", symbol.getString().c_str()); works

When I try to get CumQty for instance I cannot get it to work properly.
FIX::CumQty cumQty;
msg.get(cumQty);

printf("quantitiy: %f", cumQty); //doesnt work because cumQty is a class
printf("quantitiy: %f", cumQty.getValue()); //doesnt work, yields 0

Where can I find out what member functions can be used to get this data?

Thanks,
Bobby

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Quickfix-users mailing list
Quickfix-users@...
https://lists.sourceforge.net/lists/listinfo/quickfix-users

Re: member functions

by Hei Chan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

Try to use some IDE for dev. It helps a lot.

Bobby Richards wrote:
> When using the recommended method to "get" a field where can I find the member functions a certain tag class has? I am obviously a little confused on how to actually reference these values.  Some I am ok on but others not.
>  For instance I can do: FIX::Symbol symbol; msg.get(symbol); printf("symbol: %s", symbol.getString().c_str()); works When I try to get CumQty for instance I cannot get it to work properly.
>  FIX::CumQty cumQty; msg.get(cumQty); printf("quantitiy: %f", cumQty); //doesnt work because cumQty is a class printf("quantitiy: %f", cumQty.getValue()); //doesnt work, yields 0
>  Where can I find out what member functions can be used to get this data? Thanks, Bobby



     

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Quickfix-users mailing list
Quickfix-users@...
https://lists.sourceforge.net/lists/listinfo/quickfix-users

Re: member functions

by Kenny Stone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html


Looks right to me.  Are you sure CumQty isn't zero?

On Wed, Oct 14, 2009 at 8:49 PM, Hei Chan <structurechart@...> wrote:
Try to use some IDE for dev. It helps a lot.

Bobby Richards wrote:
> When using the recommended method to "get" a field where can I find the member functions a certain tag class has? I am obviously a little confused on how to actually reference these values.  Some I am ok on but others not.
>  For instance I can do: FIX::Symbol symbol; msg.get(symbol); printf("symbol: %s", symbol.getString().c_str()); works When I try to get CumQty for instance I cannot get it to work properly.
>  FIX::CumQty cumQty; msg.get(cumQty); printf("quantitiy: %f", cumQty); //doesnt work because cumQty is a class printf("quantitiy: %f", cumQty.getValue()); //doesnt work, yields 0
>  Where can I find out what member functions can be used to get this data? Thanks, Bobby





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Quickfix-users mailing list
Quickfix-users@...
https://lists.sourceforge.net/lists/listinfo/quickfix-users



--
Kenny Stone
Connamara Systems, LLC

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Quickfix-users mailing list
Quickfix-users@...
https://lists.sourceforge.net/lists/listinfo/quickfix-users

Re: member functions

by Tximo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

Hi Bobby,

What I do is, for example:

FIX::LastShares qty;
float shares

message.get(qty);
shares = qty;

Now I can do whatever I want with "shares", as it is a float variable.

I hope that helps.

B

El 15/10/2009, a las 1:11, Bobby Richards escribió:

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

When using the recommended method to "get" a field where can I find  
the member functions a certain tag class has?

I am obviously a little confused on how to actually reference these  
values.  Some I am ok on but others not.

For instance I can do:
FIX::Symbol symbol;
msg.get(symbol);

printf("symbol: %s", symbol.getString().c_str()); works

When I try to get CumQty for instance I cannot get it to work properly.
FIX::CumQty cumQty;
msg.get(cumQty);

printf("quantitiy: %f", cumQty); //doesnt work because cumQty is a class
printf("quantitiy: %f", cumQty.getValue()); //doesnt work, yields 0

Where can I find out what member functions can be used to get this data?

Thanks,
Bobby
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and  
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Quickfix-users mailing list
Quickfix-users@...
https://lists.sourceforge.net/lists/listinfo/quickfix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Quickfix-users mailing list
Quickfix-users@...
https://lists.sourceforge.net/lists/listinfo/quickfix-users