/** * \file fitting_solutions_reader_writer.h * \brief handles reading and writing MultiFit fitting solutions file * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #ifndef IMPMULTIFIT_FITTING_SOLUTIONS_READER_WRITER_H #define IMPMULTIFIT_FITTING_SOLUTIONS_READER_WRITER_H #include #include #include #include #include #include "multifit_config.h" #include "FittingSolutionRecord.h" IMPMULTIFIT_BEGIN_NAMESPACE //! Fitting solutions reader /** \todo consider using TextInput */ IMPMULTIFITEXPORT FittingSolutionRecords read_fitting_solutions( const char *fitting_fn); //! Write fitting solutions to a file /** \param[in] fitting_fn the fitting filename \param[in] fit_sols the fitting solutions to write to file \param[in] num_sols optional, only write the first num_sols fits. */ IMPMULTIFITEXPORT void write_fitting_solutions( const char *fitting_fn, const FittingSolutionRecords &fit_sols, int num_sols=-1); IMPMULTIFIT_END_NAMESPACE #endif /* IMPMULTIFIT_FITTING_SOLUTIONS_READER_WRITER_H */