LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
FileDisposition.cc
Go to the documentation of this file.
2 
3 #include <iomanip>
4 #include <sstream>
5 #include <string>
6 
7 std::string
9 {
10  switch (fd) {
11  default: {
12  std::ostringstream os;
13  os << "UNKNOWN" << std::setfill('0') << std::setw(3)
14  << static_cast<int>(fd);
15  return os.str();
16  }
18  return "PENDING";
19  case FileDisposition::TRANSFERRED:
20  return "TRANSFERED";
21  case FileDisposition::CONSUMED:
22  return "CONSUMED";
23  case FileDisposition::SKIPPED:
24  return "SKIPPED";
25  case FileDisposition::INCOMPLETE:
26  return "INCOMPLETE";
27  }
28 }
FileDisposition
std::string translateFileDisposition(FileDisposition fd)