Go to the SVN repository for this file.
35 #ifndef CU_FASTA_IO_WRAPPER__HPP 36 #define CU_FASTA_IO_WRAPPER__HPP 51 static const char gt;
52 static const char nl;
57m_cacheRawFasta = cacheRawString;
58m_rawFastaString =
"";
59m_activeFastaString =
"";
60m_useBioseqSet =
true;
68ostream << m_activeFastaString;
69 return(m_activeFastaString.length() > 0);
74 virtual unsigned intGetNumRead()
const;
75 virtual stringGetActiveDefline(
unsigned intindex)
const;
76 virtual stringGetActiveSequence(
unsigned intindex,
boolremoveWhitespace =
true)
const;
77 virtual stringGetRawDefline(
unsigned intindex)
const;
78 virtual stringGetRawSequence(
unsigned intindex,
boolremoveWhitespace =
true)
const;
87 returnm_activeFastaString;
92 returnm_rawFastaString;
100m_activeFastaString = m_rawFastaString;
121 stringGetSubstring(
const string& s,
unsigned intindex,
boolisDefline)
const;
136m_readFastaFlags = fastaFlags;
156m_readFastaFlags |= flagsToSet;
159m_readFastaFlags &= (0xFFFFFFFF^flagsToUnset);
Concrete implementations of the CFastaIOWrapper virtual class.
virtual ~CBasicFastaWrapper()
TReadFastaFlags m_readFastaFlags
void SetFastaFlags(TReadFastaFlags flagsToSet)
void UnsetFastaFlags(TReadFastaFlags flagsToUnset)
CBasicFastaWrapper(TReadFastaFlags fastaFlags, bool cacheRawFasta)
string m_activeFastaString
const string & GetRawFastaString()
virtual string & GetActiveFastaString()
const CRef< CSeq_entry > & GetSeqEntry() const
virtual ~CFastaIOWrapper()
virtual bool Write(CNcbiOstream &ostream)
CFastaIOWrapper(bool cacheRawString=false)
void SetUseBioseqSet(bool useBioseqSet)
virtual bool ReadFile(CNcbiIstream &iStream)=0
CRef< CSeq_entry > m_seqEntry
bool IsUseBioseqSet() const
Include a standard set of the NCBI C++ Toolkit most basic headers.
Operators to edit gaps in sequences.
CFastaReader::TFlags TReadFastaFlags
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
IO_PREFIX::istream CNcbiIstream
Portable alias for istream.
#define NCBI_CDUTILS_EXPORT
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4