From Genome Analysis Wiki
Jump to navigationJump to search
16 bytes added
, 15:26, 10 June 2010
Line 12: |
Line 12: |
| ** This allows calling code to set that option and then not have to check for failures since the code it calls would abort on a failure. | | ** This allows calling code to set that option and then not have to check for failures since the code it calls would abort on a failure. |
| ** Could/should this be achieved using exceptions? User can decide to catch them or let them terminate the program. | | ** Could/should this be achieved using exceptions? User can decide to catch them or let them terminate the program. |
− | *SamFile add a constructor that takes the filename. | + | *SamFile add a constructor that takes the filename and a flag to indicate open for read/write. (abort on failure to open) |
− | ** Also takes a flag to indicate open for read/write.
| |
| ** Also have 2 subclasses one that opens for read, one for write: SamReadFile, SamWriteFile? Or SamFileRead, SamFileWrite? | | ** Also have 2 subclasses one that opens for read, one for write: SamReadFile, SamWriteFile? Or SamFileRead, SamFileWrite? |
| * Add a function that says: skipInvalidRecords, validateRecords, etc. | | * Add a function that says: skipInvalidRecords, validateRecords, etc. |