class IO2GTableColumn

Parents
IAddRef

Brief

The class provides access to a trading table column.

Details

Each column of the trading tables has a unique identifier and a data type. These properties of a column can be accessed by using the getID and the getType methods of the class, respectively.

To get an instance of the class, use one of the implementations of the IO2GTableColumnCollection get methods.

Example

Get column identifiers and data types [hide]

void useGenericReader(IO2GGenericTableResponseReader *genericReader)
{
   O2G2Ptr<IO2GTableColumnCollection> columns = genericReader->getColumns();
   for (int i = 0; i < columns->size(); i++)
   {
       O2G2Ptr<IO2GTableColumn> column = columns->get(i);
       std::cout << "Identifier: " << column->getID() << " Data Type: " << column->getType() << std::endl;
   }
}

Public Methods

getID

Gets the unique identifier of a column.

getType

Gets the data type of a column.

back