/** * \file Gnuplot.h \brief A class for printing gnuplot scripts * for profile viewing * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #ifndef IMP_GNUPLOT_H #define IMP_GNUPLOT_H #include #include #if defined(_WIN32) || defined(_WIN64) // Simple basename implementation on platforms that don't have libgen.h const char *basename(const char *path) { int i; for (i = path ? strlen(path) : 0; i > 0; --i) { if (path[i] == '/' || path[i] == '\\') { return &path[i + 1]; } } return path; } #else #include #endif class Gnuplot { public: static void print_profile_script(const std::string pdb, bool interactive=true); static void print_profile_script(const std::vector& pdbs, bool interactive=true); static void print_fit_script(const std::string pdb, const std::string profile_file, bool interactive=true); static void print_fit_script(const std::vector& pdbs, const std::string profile_file, bool interactive=true); }; std::string trim_extension(const std::string file_name); #endif /* IMP_GNUPLOT_H */