35 #ifndef OPENMS_FORMAT_FASTAFILE_H 36 #define OPENMS_FORMAT_FASTAFILE_H 96 identifier(rhs.identifier),
97 description(rhs.description),
98 sequence(rhs.sequence)
104 identifier(::std::move(rhs.identifier)),
105 description(::std::move(rhs.description)),
106 sequence(::std::move(rhs.sequence))
112 if (*
this == rhs)
return *
this;
150 void readStart(
const String& filename);
169 void writeStart(
const String& filename);
195 void static load(
const String& filename, std::vector<FASTAEntry>& data);
204 void static store(
const String& filename,
const std::vector<FASTAEntry>& data);
209 std::unique_ptr<void, std::function<void(void*) > >
reader_;
215 #endif // OPENMS_FORMAT_FASTAFILE_H Size entries_read_
Definition: FASTAFile.h:210
A more convenient string class.
Definition: String.h:57
FASTAEntry()
Definition: FASTAFile.h:80
bool operator==(const FASTAEntry &rhs) const
Definition: FASTAFile.h:119
bool sequenceMatches(const FASTAEntry &rhs) const
Definition: FASTAFile.h:132
FASTAEntry(FASTAEntry &&rhs) noexcept
Definition: FASTAFile.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::fstream infile_
Definition: FASTAFile.h:207
bool headerMatches(const FASTAEntry &rhs) const
Definition: FASTAFile.h:126
FASTAEntry & operator=(const FASTAEntry &rhs)
Definition: FASTAFile.h:110
FASTAEntry(String id, String desc, String seq)
Definition: FASTAFile.h:87
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
String sequence
Definition: FASTAFile.h:78
std::ofstream outfile_
Definition: FASTAFile.h:208
FASTA entry type (identifier, description and sequence)
Definition: FASTAFile.h:74
std::unique_ptr< void, std::function< void(void *) > > reader_
Definition: FASTAFile.h:209
String identifier
Definition: FASTAFile.h:76
This class serves for reading in and writing FASTA files.
Definition: FASTAFile.h:62
String description
Definition: FASTAFile.h:77
FASTAEntry(const FASTAEntry &rhs)
Definition: FASTAFile.h:94