7 #ifndef IMPEM2D_FILENAMES_MANIPULATION_H
8 #define IMPEM2D_FILENAMES_MANIPULATION_H
15 #include <boost/filesystem/path.hpp>
16 #include <boost/filesystem/exception.hpp>
17 #include <boost/version.hpp>
19 IMPEM2D_BEGIN_NAMESPACE
32 in.open(fn.c_str(), std::ios::in);
34 IMP_THROW(
"Unable to read file " << fn, IOException);
37 while (in >> name >> not_ignored) {
39 names.push_back(name);
52 unsigned long count = 1;
53 while (count <= number) {
59 for (
unsigned int i = 0; i < number; ++i) {
60 std::ostringstream strm;
61 strm << basic_name <<
"-";
65 strm <<
"." << extension;
66 proj_names[i] = strm.str();
Import IMP/kernel/base_types.h in the namespace.
IMPEM2D_BEGIN_NAMESPACE Strings read_selection_file(String fn)
Reads a selection file.
Strings create_filenames(unsigned long number, String basic_name, String extension)
IMP::base::Vector< String > Strings
Standard way to pass a bunch of String values.
Exception definitions and assertions.
#define IMP_THROW(message, exception_name)
Throw an exception with a message.
std::string String
Basic string value.