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);
38 while(in >> name >> not_ignored) {
40 names.push_back(name);
53 unsigned long count=1;
54 while(count <= number) {
60 for (
unsigned int i=0;i<number;++i) {
61 std::ostringstream strm;
62 strm << basic_name <<
"-";
66 strm <<
"." << extension;
67 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.