The RLE C++ Sequence methods take one (except
rleDecode()
) input argument and produce a result sequence or scalar type as described in the table below:
mco_seq_rle_count_t rleCount(int pos) const Returns the number of repeating items in the current tile for the iterator in the position pos. For regular non-rle sequences it always returns 1 Sequence<T> rleDecode() const Convert an RLE sequence to a "normal" sequence
Example
Following is an example code snippet demonstrating an RLE function:
{ mco_trans_h trans; mco_cursor_t quote_cursor; Quote quote; mco_seq_iterator_t rle_high_iterator, normal_high_iterator; MCO_RET rc; ... for (rc = mco_cursor_first(trans, "e_cursor); rc != MCO_S_CURSOR_END; rc = mco_cursor_next(trans, "e_cursor)) { Quote_from_cursor(trans, "e_cursor, "e); Quote_high_iterator("e, &rle_high_iterator); normal_high_iterator = rle_high_iterator.rleDecode(); ... } ... }