libStatGen Software 1
|
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. | |
![]() | |
SamHeaderRecord () | |
Constructor. | |
virtual | ~SamHeaderRecord () |
Destructor. | |
bool | setFields (const StringArray &tokens) |
Set the fields from the passed in line. | |
bool | isValid () |
Check to see if the record is valid. | |
const char * | getTagValue (const char *tag) const |
Return the value associated with the specified tag. | |
bool | setTag (const char *tag, const char *value) |
Set the value of the specified tag to the specified value, deletes the tag when value is NULL. | |
void | reset () |
Reset this header record to an empty state with no tags. | |
bool | appendString (std::string &header) |
Appends the string representation of this header record to the passed in string. | |
bool | addKey (const char *value) |
Add the key tag with the specified value (not for HD headers). | |
const char * | getKeyValue () const |
Get the value associated with the key tag. Returns "" if it is not set. | |
bool | isActiveHeaderRecord () |
This record is active (true) if there is at least one tag set. | |
const char * | getTypeString () |
Return the type of this header record (HD, SQ, RG, or PG) as a string. | |
SamHeaderRecordType | getType () |
Return the type of this header record (HD, SQ, RG, or PG) as an enum. | |
Additional Inherited Members | |
![]() | |
enum | SamHeaderRecordType { HD , SQ , RG , PG } |
Specifies the Type for the sam header record (line). More... | |
![]() | |
void | addRequiredTag (const char *requiredTag) |
virtual void | internalCopy (SamHeaderRecord &newRec) const |
![]() | |
std::string | myTypeString |
SamHeaderRecordType | myType |
std::string | myKeyTag |
Definition at line 23 of file SamHeaderSQ.h.
SamHeaderSQ::SamHeaderSQ | ( | ) |
Definition at line 21 of file SamHeaderSQ.cpp.
|
virtual |
Definition at line 33 of file SamHeaderSQ.cpp.
|
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.