From Genome Analysis Wiki
Jump to navigationJump to search
319 bytes added
, 14:25, 20 September 2010
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: |