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);
GlfRefSection & operator=(const GlfRefSection &refSection)
Overload operator= to copy the passed in refSection into this one.
bool write(IFILE filePtr) const
Write the refSection to the specified file.
uint32_t getRefLen() const
Get the length of the reference sequence.
This class allows a user to easily get/set the fields in a GLF section/chromosome header...
bool setName(const std::string &name)
Set the reference name.
void resetRefSection()
Clear this reference section back to the default setting.
void print() const
Print the reference section in a readable format.
bool setRefLen(uint32_t refLen)
Set the length of the reference sequence.
bool read(IFILE filePtr)
Read the refSection from the specified file (file MUST be in the correct position for reading a refSe...
bool getName(std::string &name) const
Get the reference name.
bool copy(const GlfRefSection &refSection)
Copy the passed in refSection into this refSection.