SamHeaderSQ Class Reference

Inheritance diagram for SamHeaderSQ:
Inheritance graph
[legend]
Collaboration diagram for SamHeaderSQ:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual SamHeaderRecordcreateCopy () const
 Return a pointer to a newly created header record of the appropriate type that is a copy of this record.

Detailed Description

Definition at line 23 of file SamHeaderSQ.h.


Member Function Documentation

SamHeaderRecord * SamHeaderSQ::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 38 of file SamHeaderSQ.cpp.

00039 {
00040     SamHeaderSQ* newSQ = new SamHeaderSQ();
00041     if(newSQ == NULL)
00042     {
00043         std::cerr << "Failed to create a copy of an SQ Header Record\n" ;
00044         return(NULL);
00045     }
00046     internalCopy(*newSQ);
00047 
00048     return(newSQ);
00049 }


The documentation for this class was generated from the following files:
Generated on Mon Feb 11 13:45:27 2013 for libStatGen Software by  doxygen 1.6.3