Changes

From Genome Analysis Wiki
Jump to navigationJump to search
Line 103: Line 103:  
     return mySequence.c_str();
 
     return mySequence.c_str();
 
}
 
}
 +
const std::string& SamRecord::getSequence()
 +
{
 +
    myStatus = SamStatus::SUCCESS;
 +
    if(mySequence.Length() == 0)
 +
    {
 +
        // 0 Length, means that it is in the buffer, but has not yet
 +
        // been synced to the string, so do the sync.
 +
        setSequenceAndQualityFromBuffer();
 +
    }
 +
    return &mySequence;
 +
}
 +
 
</source>
 
</source>
 
and passing in references to strings, like:
 
and passing in references to strings, like:

Navigation menu