public method IO2GMessagesTable.getRow

Brief

Gets a row from the IO2GMessagesTable by its index.

Declaration
C++
virtual IO2GMessageTableRow getRow (int index) = 0

Parameters
index

The index of the row. The index must be between 0 and size() - 1.

Details

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

Example

Get rows from the Messages table [hide]

    O2G2Ptr<IO2GMessagesTable> messagesTable = (IO2GMessagesTable *)tableManager->getTable(Messages);
    for (int i = 0; i < messagesTable->size(); ++i)
    {
        O2G2Ptr<IO2GMessageTableRow> message = messagesTable->getRow(i);
        std::cout << "MessageID: " << message->getMsgID() <<
                     " From = " << message->getFrom() <<
                     " Text = " << message->getText() << std::endl;
    }

Declared in IO2GMessagesTable

back