18#ifndef __GLF_REFSECTION_H__
19#define __GLF_REFSECTION_H__
24#include "CharBuffer.h"
71 bool getName(std::string& name)
const;
80 bool setName(
const std::string& name);
This class allows a user to easily get/set the fields in a GLF section/chromosome header.
void resetRefSection()
Clear this reference section back to the default setting.
bool setName(const std::string &name)
Set the reference name.
bool copy(const GlfRefSection &refSection)
Copy the passed in refSection into this refSection.
bool read(IFILE filePtr)
Read the refSection from the specified file (file MUST be in the correct position for reading a refSe...
GlfRefSection & operator=(const GlfRefSection &refSection)
Overload operator= to copy the passed in refSection into this one.
void print() const
Print the reference section in a readable format.
bool write(IFILE filePtr) const
Write the refSection to the specified file.
bool setRefLen(uint32_t refLen)
Set the length of the reference sequence.
uint32_t getRefLen() const
Get the length of the reference sequence.
bool getName(std::string &name) const
Get the reference name.