MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / writeStart

Method writeStart

src/openms/source/FORMAT/FASTAFile.cpp:217–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 void FASTAFile::writeStart(const String &filename)
218 {
219 if (!FileHandler::hasValidExtension(filename, FileTypes::FASTA))
220 {
221 throw Exception::UnableToCreateFile(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, filename,
222 "invalid file extension; expected '" +
223 FileTypes::typeToName(FileTypes::FASTA) + "'");
224 }
225
226 outfile_.open(filename.c_str(), ofstream::out);
227
228 if (!outfile_.good())
229 {
230 throw Exception::UnableToCreateFile(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, filename);
231 }
232 }
233
234 void FASTAFile::writeNext(const FASTAEntry &protein)
235 {

Callers 4

main_Method · 0.80
main_Method · 0.80
main_Method · 0.80
storeMethod · 0.80

Calls 1

openMethod · 0.45

Tested by

no test coverage detected