Public Member Functions | |
const char * | getSortOrder () |
virtual SamHeaderRecord * | createCopy () const |
Return a pointer to a newly created header record of the appropriate type that is a copy of this record. |
Definition at line 23 of file SamHeaderHD.h.
SamHeaderRecord * SamHeaderHD::createCopy | ( | ) | const [virtual] |
Return a pointer to a newly created header record of the appropriate type that is a copy of this record.
The newly created record will not be deleted by this class and it is the responsibility of the calling method to handle the deletion. Returns NULL on failure to copy.
Implements SamHeaderRecord.
Definition at line 43 of file SamHeaderHD.cpp.
00044 { 00045 SamHeaderHD* newHD = new SamHeaderHD(); 00046 if(newHD == NULL) 00047 { 00048 std::cerr << "Failed to create a copy of an HD Header Record\n" ; 00049 return(NULL); 00050 } 00051 internalCopy(*newHD); 00052 00053 return(newHD); 00054 }