Public Member Functions | |
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 24 of file SamHeaderPG.h.
SamHeaderRecord * SamHeaderPG::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 37 of file SamHeaderPG.cpp.
00038 { 00039 SamHeaderPG* newPG = new SamHeaderPG(); 00040 if(newPG == NULL) 00041 { 00042 std::cerr << "Failed to create a copy of an PG Header Record\n" ; 00043 return(NULL); 00044 } 00045 internalCopy(*newPG); 00046 00047 return(newPG); 00048 }