From Genome Analysis Wiki
Jump to navigationJump to search
124 bytes added
, 14:00, 1 July 2010
Line 170: |
Line 170: |
| NOTE: both getNextHeaderRecord and getNextHeaderLine increment the same iterator. | | NOTE: both getNextHeaderRecord and getNextHeaderLine increment the same iterator. |
| |- | | |- |
− | | <code>const char* SamFileHeader::getNextHeaderLine()</code> | + | | <code>bool SamFileHeader::getNextHeaderLine(std::string& headerLine)</code> |
− | | Returns the string version of the next header record. After all headers have been retrieved, "" is returned until a reset is called. | + | | Set the passed in string to the next header line. The passed in string will be overwritten. If there are no more header lines or there is an error, false is returned and the passed in string is set to "" until a rest is called. Will also return the comment lines. |
− | Return the comment lines.
| |
| | | |
| NOTE: both getNextHeaderRecord and getNextHeaderLine increment the same iterator. | | NOTE: both getNextHeaderRecord and getNextHeaderLine increment the same iterator. |