in src/tick_cursor.cpp [50:68]
bool TickCursor::next() {
if (cursor_ == nullptr)
THROW("Cursor is null.");
if (cursor_->isClosed())
THROW("Cursor is closed.");
if (cursor_->isAtEnd())
return false;
if (instrument_message_ == nullptr)
instrument_message_ = std::shared_ptr<DxApi::InstrumentMessage>(new DxApi::InstrumentMessage());
bool has_next = cursor_->next(instrument_message_.get());
if (has_next)
decodeCurrentMessage();
return has_next;
}