model_server/gala_communications/src/ResourceNameIterator.cxx
// ResourceNameIterator method to determine if the interation is complete.
// Also updates token_ for GetNext.
ResourceNameIterator method to determine if the interation is complete.
Also updates token_ for GetNext.
ResourceNameIterator method to determine if the interation is complete . Also updates token_ for GetNext .
vbool ResourceNameIterator::Next() {
    vbool status = vTRUE;
    switch (state_) {
        case ResourceNameIterator::FIRST	:
            token_ = vcharGetFirstToken(resourceName_,
                                        ResourceNameIterator::Seperator_List);
            break;
        case ResourceNameIterator::NEXT:
            token_ = vcharGetNextToken(ResourceNameIterator::Seperator_List);
            break;
        case ResourceNameIterator::DONE	:
            break;
    }
    if (token_) {
        next_ = vnameInternGlobal(token_);
        state_ = ResourceNameIterator::NEXT;
    } else {
        state_ = ResourceNameIterator::DONE;
        status = vFALSE;
    }
    return(status);
}
vbool ResourceNameIterator :: Next ( ) { vbool status = vTRUE ; switch ( state_ ) { case ResourceNameIterator :: FIRST : token_ = vcharGetFirstToken ( resourceName_ , ResourceNameIterator :: Seperator_List ) ; break ; case ResourceNameIterator :: NEXT : token_ = vcharGetNextToken ( ResourceNameIterator :: Seperator_List ) ; break ; case ResourceNameIterator :: DONE : break ; } if ( token_ ) { next_ = vnameInternGlobal ( token_ ) ; state_ = ResourceNameIterator :: NEXT ; } else { state_ = ResourceNameIterator :: DONE ; status = vFALSE ; } return ( status ) ; }
ResourceNameIterator method to determine if the interation is complete.
ResourceNameIterator method to determine if the interation is complete .