|
OpenMS
2.6.0
|
Go to the documentation of this file.
98 identifier(rhs.identifier),
99 description(rhs.description),
100 sequence(rhs.sequence)
106 identifier(::std::move(rhs.identifier)),
107 description(::std::move(rhs.description)),
108 sequence(::std::move(rhs.sequence))
114 if (*
this == rhs)
return *
this;
152 void readStart(
const String& filename);
163 bool readNext(FASTAEntry& protein);
172 bool setPosition(
const std::streampos& pos);
179 void writeStart(
const String& filename);
188 void writeNext(
const FASTAEntry& protein);
205 void static load(
const String& filename, std::vector<FASTAEntry>& data);
214 void static store(
const String& filename,
const std::vector<FASTAEntry>& data);
219 std::unique_ptr<void, std::function<void(
void*) > >
reader_;
String identifier
Definition: FASTAFile.h:78
This class serves for reading in and writing FASTA files.
Definition: FASTAFile.h:64
String sequence
Definition: FASTAFile.h:80
FASTAEntry & operator=(const FASTAEntry &rhs)
Definition: FASTAFile.h:112
A more convenient string class.
Definition: String.h:59
String description
Definition: FASTAFile.h:79
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
FASTA entry type (identifier, description and sequence)
Definition: FASTAFile.h:76
std::unique_ptr< void, std::function< void(void *) > > reader_
filestream for reading; init using FastaFile::readStart(); needs to be a pointer, since its not copy-...
Definition: FASTAFile.h:219
FASTAEntry(String id, String desc, String seq)
Definition: FASTAFile.h:89
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool operator==(const FASTAEntry &rhs) const
Definition: FASTAFile.h:121
bool sequenceMatches(const FASTAEntry &rhs) const
Definition: FASTAFile.h:134
FASTAEntry(FASTAEntry &&rhs) noexcept
Definition: FASTAFile.h:104
std::fstream infile_
filestream for reading; init using FastaFile::readStart()
Definition: FASTAFile.h:217
FASTAEntry(const FASTAEntry &rhs)
Definition: FASTAFile.h:96
bool headerMatches(const FASTAEntry &rhs) const
Definition: FASTAFile.h:128
std::ofstream outfile_
filestream for writing; init using FastaFile::writeStart()
Definition: FASTAFile.h:218
FASTAEntry()
Definition: FASTAFile.h:82
Size< TNeedle >::Type position(const PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:561
Size entries_read_
some internal book-keeping during reading
Definition: FASTAFile.h:220