Represents a SAM program record. More...
#include <SamProgram.h>
Public Member Functions | |
SamProgram (void) | |
default constructor | |
SamProgram (const std::string &id) | |
constructs program record with id | |
SamProgram (const SamProgram &other) | |
copy constructor | |
~SamProgram (void) | |
destructor | |
void | Clear (void) |
Clears all data fields. | |
bool | HasCommandLine (void) const |
Returns true if program record contains @PG: CL:<CommandLine> | |
bool | HasID (void) const |
Returns true if program record contains @PG: ID:<ID> | |
bool | HasName (void) const |
Returns true if program record contains @PG: PN:<Name> | |
bool | HasPreviousProgramID (void) const |
Returns true if program record contains @PG: PP:<PreviousProgramID> | |
bool | HasVersion (void) const |
Returns true if program record contains @PG: VN:<Version> | |
Public Attributes | |
std::string | CommandLine |
corresponds to @PG CL:<CommandLine> | |
std::string | ID |
corresponds to @PG ID:<ID> | |
std::string | Name |
corresponds to @PG PN:<Name> | |
std::string | PreviousProgramID |
corresponds to @PG PP:<PreviousProgramID> | |
std::string | Version |
corresponds to @PG VN:<Version> | |
Friends | |
class | BamTools::SamProgramChain |
Represents a SAM program record.
Provides direct read/write access to the SAM header program records.
SamProgram::SamProgram | ( | void | ) |
default constructor
SamProgram::SamProgram | ( | const std::string & | id | ) |
constructs program record with id
id | desired program record ID |
SamProgram::SamProgram | ( | const SamProgram & | other | ) |
copy constructor
SamProgram::~SamProgram | ( | void | ) |
destructor
void SamProgram::Clear | ( | void | ) |
Clears all data fields.
bool SamProgram::HasCommandLine | ( | void | ) | const |
Returns true
if program record contains @PG: CL:<CommandLine>
bool SamProgram::HasID | ( | void | ) | const |
Returns true
if program record contains @PG: ID:<ID>
bool SamProgram::HasName | ( | void | ) | const |
Returns true
if program record contains @PG: PN:<Name>
bool SamProgram::HasPreviousProgramID | ( | void | ) | const |
Returns true
if program record contains @PG: PP:<PreviousProgramID>
bool SamProgram::HasVersion | ( | void | ) | const |
Returns true
if program record contains @PG: VN:<Version>
friend class BamTools::SamProgramChain [friend] |
corresponds to @PG CL:<CommandLine>
corresponds to @PG ID:<ID>
Required for valid SAM header.
corresponds to @PG PN:<Name>
corresponds to @PG PP:<PreviousProgramID>
corresponds to @PG VN:<Version>