model_server/gala_communications/src/SelectionIterator.cxx
// SelectionIterator method to determine if the interation is complete.
SelectionIterator method to determine if the interation is complete.
SelectionIterator method to determine if the interation is complete .
vbool SelectionIterator::Next() {
    vbool status = vTRUE;
    switch (state_) {
        case SelectionIterator::FIRST	:
            token_ = vcharGetFirstToken(selection_, ",");
            state_ = (SelectionIterator::IteratorState) handleToken(token_);
            break;
        case SelectionIterator::SIMPLE_TOKEN:
            token_ = vcharGetNextToken(",");
            state_ = (SelectionIterator::IteratorState) handleToken(token_);
            break;
        case SelectionIterator::RANGE_TOKEN	:
            state_ = (SelectionIterator::IteratorState) getNextFromRange();
            break;
        case SelectionIterator::DONE	:
            break;
    }
    if (state_ == SelectionIterator::DONE) status = vFALSE;
    return(status);
}
vbool SelectionIterator :: Next ( ) { vbool status = vTRUE ; switch ( state_ ) { case SelectionIterator :: FIRST : token_ = vcharGetFirstToken ( selection_ , " " ) ; state_ = ( SelectionIterator :: IteratorState ) handleToken ( token_ ) ; break ; case SelectionIterator :: SIMPLE_TOKEN : token_ = vcharGetNextToken ( " " ) ; state_ = ( SelectionIterator :: IteratorState ) handleToken ( token_ ) ; break ; case SelectionIterator :: RANGE_TOKEN : state_ = ( SelectionIterator :: IteratorState ) getNextFromRange ( ) ; break ; case SelectionIterator :: DONE : break ; } if ( state_ == SelectionIterator :: DONE ) status = vFALSE ; return ( status ) ; }
SelectionIterator method to determine if the interation is complete.
SelectionIterator method to determine if the interation is complete .