Hello,
you can iterate objects of collection using .begin() and .end().
To make code shorter, use boost foreach:
#include <boost/foreach.hpp>
BOOST_FOREACH (dbo::ptr<Model> object, collection) { ... }
or C++11 for:
for (dbo::ptr<Model> object : collection) { ... }
Regards,
Boris Nagaev
On Fri, Feb 28, 2014 at 9:59 PM, Muhammad Nasser Al-Noimi
<[email protected]> wrote:
> Hi,
>
> I have small question about how to get model from dbo collection, Is there
> any easy to use way to get that? such as the getting dbo object from model
> using resultRow function.
>
> Thanx,
> Nasser Al-Noimi
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest