public method IO2GOrdersTable.getNextRow

Brief

Gets the next row from the IO2GOrdersTable.

Declaration
C++
virtual bool  getNextRow (IO2GTableIterator & iterator, IO2GOrderTableRow *& 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 Orders table [hide]

    O2G2Ptr<IO2GOrdersTable> ordersTable = (IO2GOrdersTable *)tableManager->getTable(Orders);
    IO2GTableIterator iterator;
    IO2GOrderTableRow *order = NULL;
    while (ordersTable->getNextRow(iterator, order))
    {
        std::cout << "OrderID: " << order->getOrderID() <<
                     " Amount = " << order->getAmount() <<
                     " BuySell = " << order->getBuySell() << std::endl;
        order->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 IO2GOrdersTable

back