14 std::cout <<
"Adding " << filename <<
" to list of input files" << std::endl;
26 if (std::filesystem::is_regular_file(filename.c_str()))
32 std::cout << filename <<
" is not a regular file" << std::endl;
38 std::cout <<
PHWHERE <<
"Could not open " << filename << std::endl;
45 std::cout <<
PHWHERE <<
"Could not open " << filename << std::endl;
50 getline(infile, FullLine);
53 if (!std::all_of(FullLine.begin(), FullLine.end(), ::isprint))
55 std::cout <<
PHWHERE <<
"file " << filename
56 <<
" contains non printable characters, it is likely a binary file" << std::endl;
59 if (!FullLine.empty() && FullLine[0] !=
'#')
64 else if (!FullLine.empty())
68 std::cout <<
"Found Comment: " << FullLine << std::endl;
71 getline(infile, FullLine);
76 std::cout <<
" listfile " << filename <<
" does not contain filenames "
77 <<
"if this is the only list you load into this Input Manager your code will exit very soon" << std::endl;
86 std::list<std::string>::const_iterator iter =
m_FileList.begin();
89 std::cout <<
PHWHERE <<
" opening next file: " << *iter << std::endl;
93 std::cout <<
PHWHERE <<
" could not open file: " << *iter << std::endl;
106 std::cout <<
"file list: " << std::endl;
109 std::cout << iter << std::endl;