| 40 | } |
| 41 | |
| 42 | const char* MovieFile::errorString(int error_code) { |
| 43 | static std::string err; |
| 44 | |
| 45 | switch (error_code) { |
| 46 | case ENOMOVIE: |
| 47 | return "Could not find the movie file"; |
| 48 | case EBADARCHIVE: |
| 49 | err = "The movie file could not be extracted or build: "; |
| 50 | err += strerror(errno); |
| 51 | return err.c_str(); |
| 52 | case ENOINPUTS: |
| 53 | return "The movie file does not contain the inputs file"; |
| 54 | case ENOCONFIG: |
| 55 | return "The movie file does not contain the config file"; |
| 56 | default: |
| 57 | return "Unknown error"; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void MovieFile::clear() |
| 62 | { |
no test coverage detected