/** * \file SettingsData.h * \brief stored multifit settings data * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #ifndef IMPMULTIFIT_SETTINGS_DATA_H #define IMPMULTIFIT_SETTINGS_DATA_H #include #include "multifit_config.h" #include #include #include IMPMULTIFIT_BEGIN_NAMESPACE //! Holds data about a component needed for optimization class IMPMULTIFITEXPORT ComponentHeader { public: ComponentHeader() { name_=""; filename_=""; pdb_ap_fn_=""; num_ap_=0; transformations_fn_=""; cmm_ap_fn_=""; reference_fn_=""; } void set_name(const std::string &name) {name_=name;} inline std::string get_name() const {return name_;} void set_filename(const std::string &filename){filename_=filename;} inline std::string get_filename() const {return filename_;} void set_pdb_ap_fn(const std::string &pdb_ap_fn) {pdb_ap_fn_=pdb_ap_fn;} inline std::string get_pdb_ap_fn() const {return pdb_ap_fn_;} void set_num_ap(int num_ap) {num_ap_=num_ap;} inline int get_num_ap() const {return num_ap_;} void set_transformations_fn(std::string transformations_fn) { transformations_fn_=transformations_fn;} std::string get_transformations_fn() const {return transformations_fn_;} void set_cmm_ap_fn(const std::string &cmm_fn) {cmm_ap_fn_=cmm_fn;} std::string get_cmm_ap_fn() const {return cmm_ap_fn_;} void set_reference_fn(const std::string &ref_fn){reference_fn_=ref_fn;} std::string get_reference_fn() const {return reference_fn_;} void show(std::ostream& out = std::cout) const { out< comp_data_; AssemblyHeader dens_data_; std::string asmb_fn_; std::string data_path_; }; IMPMULTIFITEXPORT SettingsData read_settings( const char *filename,const char *data_path); IMPMULTIFITEXPORT void write_settings( const char *filename, const SettingsData &sd); IMPMULTIFIT_END_NAMESPACE #endif /* IMPMULTIFIT_SETTINGS_DATA_H */