public method IO2GMessagesTable.findRow

Brief

Finds a row in the IO2GMessagesTable by MsgID.

Declaration
C++
virtual bool  findRow (const char * id, IO2GMessageTableRow *& row) = 0

Parameters
id

The unique identification number of a message. The number is unique within the same database that stores the account trader. For example, MINIDEMO or U100D1. The uniqueness of the message itself is assured by the combination of the database ID and the value of this field.

row

[out] The row fetched.

Details

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

Example

Find message by MsgID [hide]

    O2G2Ptr<IO2GMessagesTable> messagesTable = (IO2GMessagesTable *)tableManager->getTable(Messages);
    IO2GMessageTableRow *message = NULL;
    if (messagesTable.findRow(mMsgID.c_str(), message))
    {
        std::cout << "MessageID: " << message->getMsgID() <<
                     " From = " << message->getFrom() <<
                     " Text = " << message->getText() << std::endl;
        message->release();
    }

Declared in IO2GMessagesTable

back