#include <gnFileSource.h>
Inheritance diagram for gnFileSource::
Public Methods | |
gnFileSource () | |
gnFileSource (const gnFileSource &gnfs) | |
virtual | ~gnFileSource () |
virtual gnFileSource* | Clone () const=0 |
virtual void | Open (string openString) |
Opens the source given in "openString" for reading. More... | |
virtual void | Open () |
Opens this source for reading. More... | |
virtual void | Close () |
Closes the file or connection this source is reading from. More... | |
virtual string | GetOpenString () const |
Get the location of the source that is being used. More... | |
virtual const gnFilter* | GetFilter () const |
Get the filter currently being used to filter unwanted characters out of read sequences. More... | |
virtual void | SetFilter (gnFilter *filter) |
Set the filter that will be used to filter unwanted characters out of the sequence data. More... | |
virtual boolean | Read (const uint64 pos, char *buf, uint32 &bufLen) |
Gets raw input from this source. More... | |
virtual gnFileContig* | GetFileContig (const uint32 contigI) const=0 |
Returns a pointer to the file contig corresponding to contigI or null if none exists. More... | |
Protected Attributes | |
string | m_openString |
ifstream | m_ifstream |
const gnFilter* | m_pFilter |
gnNewlineType | m_newlineType |
uint32 | m_newlineSize |
Private Methods | |
virtual boolean | ParseStream (istream &fin)=0 |
All file source classes are derived from this class.
Definition at line 28 of file gnFileSource.h.
|
Definition at line 31 of file gnFileSource.h. |
|
Definition at line 19 of file gnFileSource.cpp. |
|
Definition at line 33 of file gnFileSource.h. |
|
Reimplemented from gnBaseSource. Reimplemented in gnABISource, gnDNXSource, gnFASSource, gnGBKSource, gnRAWSource, and gnSEQSource. |
|
Closes the file or connection this source is reading from.
Reimplemented from gnBaseSource. Definition at line 57 of file gnFileSource.cpp. |
|
Returns a pointer to the file contig corresponding to contigI or null if none exists.
Reimplemented in gnABISource, gnDNXSource, gnFASSource, gnGBKSource, gnRAWSource, and gnSEQSource. |
|
Get the filter currently being used to filter unwanted characters out of read sequences.
Reimplemented from gnBaseSource. Definition at line 67 of file gnFileSource.h. |
|
Get the location of the source that is being used.
Reimplemented from gnBaseSource. Definition at line 61 of file gnFileSource.h. |
|
Opens this source for reading.
Reimplemented from gnBaseSource. Definition at line 49 of file gnFileSource.cpp. Referenced by main().
|
|
Opens the source given in "openString" for reading.
Reimplemented from gnBaseSource. Definition at line 30 of file gnFileSource.cpp. |
|
Reimplemented in gnABISource, gnDNXSource, gnFASSource, gnGBKSource, gnRAWSource, and gnSEQSource. Referenced by Open().
|
|
Gets raw input from this source. Read will attempt to read "bufLen" bytes starting at "pos" directly from the source. It stores the data in "buf", and returns the actual number of bytes read in bufLen. Read will return false if a serious error occurs.
Reimplemented from gnBaseSource. Definition at line 64 of file gnFileSource.cpp. Referenced by gnRAWSource::SeqRead().
|
|
Set the filter that will be used to filter unwanted characters out of the sequence data.
Reimplemented from gnBaseSource. Definition at line 73 of file gnFileSource.h. |
|
Definition at line 52 of file gnFileSource.h. |
|
Definition at line 55 of file gnFileSource.h. |
|
Definition at line 54 of file gnFileSource.h. |
|
Definition at line 51 of file gnFileSource.h. |
|
Definition at line 53 of file gnFileSource.h. |