public method IO2GOffersTable.getNextRow

Brief

Gets the next row from the IO2GOffersTable.

Declaration
C++
virtual bool  getNextRow (IO2GTableIterator & iterator, IO2GOfferTableRow *& row) = 0

Parameters
iterator

The table iterator.

row

[out] The row fetched.

Details

If the row is not found, the method returns false.

Example

Get next row from the Offers table [hide]

    O2G2Ptr<IO2GOffersTable> offersTable = (IO2GOffersTable *)tableManager->getTable(Offers);
    IO2GTableIterator iterator;
    IO2GOfferTableRow *offer = NULL;
    while (offersTable->getNextRow(iterator, offer))
    {
        std::cout << "Instrument: " << offer->getInstrument() <<
                     " Bid = " << offer->getBid() <<
                     " Ask = " << offer->getAsk() << std::endl;
        offer->release();
    }

Note: The returned row contains the current values of fields. The values are not automatically updated. To monitor changes, use IO2GTableListener.onChanged. The row interface is thread-safe. One can use the returned row in different threads without synchronization.

Declared in IO2GOffersTable

back