libStatGen Software  1
SamHeaderRG Class Reference
Inheritance diagram for SamHeaderRG:
Collaboration diagram for SamHeaderRG:

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 SamHeaderRG.h.


Member Function Documentation

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 SamHeaderRG.cpp.

{
    SamHeaderRG* newRG = new SamHeaderRG();
    if(newRG == NULL)
    {
        std::cerr << "Failed to create a copy of an RG Header Record\n" ;
        return(NULL);
    }
    internalCopy(*newRG);

    return(newRG);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends