BamTools::SamProgram Struct Reference

Represents a SAM program record. More...

#include <SamProgram.h>

List of all members.

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

Detailed Description

Represents a SAM program record.

Provides direct read/write access to the SAM header program records.

See also:
http://samtools.sourceforge.net/SAM1.pdf

Constructor & Destructor Documentation

SamProgram::SamProgram ( void   ) 

default constructor

SamProgram::SamProgram ( const std::string &  id  ) 

constructs program record with id

Parameters:
id desired program record ID
SamProgram::SamProgram ( const SamProgram other  ) 

copy constructor

SamProgram::~SamProgram ( void   ) 

destructor


Member Function Documentation

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>


Friends And Related Function Documentation

friend class BamTools::SamProgramChain [friend]

Member Data Documentation

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>


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Aug 29 17:43:46 2012 for BamTools by  doxygen 1.6.3