* Set the mode and file type of the file to save or load. * @param ft File type. * @param fop File operation being performed. */
| 3419 | * @param fop File operation being performed. |
| 3420 | */ |
| 3421 | void FileToSaveLoad::SetMode(const FiosType &ft, SaveLoadOperation fop) |
| 3422 | { |
| 3423 | if (ft.abstract == FT_INVALID || ft.abstract == FT_NONE) { |
| 3424 | this->file_op = SLO_INVALID; |
| 3425 | this->ftype = FIOS_TYPE_INVALID; |
| 3426 | return; |
| 3427 | } |
| 3428 | |
| 3429 | this->file_op = fop; |
| 3430 | this->ftype = ft; |
| 3431 | } |
| 3432 | |
| 3433 | /** |
| 3434 | * Set the title of the file. |
no outgoing calls
no test coverage detected