1#ifndef TAG_PARSER_BACKUPHELPER_H
2#define TAG_PARSER_BACKUPHELPER_H
6#include <c++utilities/io/nativefilestream.h>
13namespace BackupHelper {
16 CppUtilities::NativeFileStream &originalStream, CppUtilities::NativeFileStream &backupStream);
18 CppUtilities::NativeFileStream &originalStream, CppUtilities::NativeFileStream &backupStream);
20 CppUtilities::NativeFileStream &originalStream, CppUtilities::NativeFileStream &backupStream);
22 CppUtilities::NativeFileStream &outputStream, CppUtilities::NativeFileStream &backupStream,
Diagnostics &diag,
23 const std::string &context =
"making file");
25 const std::string &backupPath, CppUtilities::NativeFileStream &outputStream, CppUtilities::NativeFileStream &backupStream,
Diagnostics &diag,
26 const std::string &context =
"making file");
The Diagnostics class is a container for DiagMessage.
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
TAG_PARSER_EXPORT void createBackupFile(const std::string &backupDir, const std::string &originalPath, std::string &backupPath, CppUtilities::NativeFileStream &originalStream, CppUtilities::NativeFileStream &backupStream)
TAG_PARSER_EXPORT void handleFailureAfterFileModifiedCanonical(MediaFileInfo &fileInfo, const std::string &originalPath, const std::string &backupPath, CppUtilities::NativeFileStream &outputStream, CppUtilities::NativeFileStream &backupStream, Diagnostics &diag, const std::string &context="making file")
Handles a failure/abort which occurred after the file has been modified.
TAG_PARSER_EXPORT void restoreOriginalFileFromBackupFile(const std::string &originalPath, const std::string &backupPath, CppUtilities::NativeFileStream &originalStream, CppUtilities::NativeFileStream &backupStream)
TAG_PARSER_EXPORT void createBackupFileCanonical(const std::string &backupDir, std::string &originalPath, std::string &backupPath, CppUtilities::NativeFileStream &originalStream, CppUtilities::NativeFileStream &backupStream)
Creates a backup file like createBackupFile() but canonicalizes originalPath before doing the backup.
TAG_PARSER_EXPORT void handleFailureAfterFileModified(MediaFileInfo &fileInfo, const std::string &backupPath, CppUtilities::NativeFileStream &outputStream, CppUtilities::NativeFileStream &backupStream, Diagnostics &diag, const std::string &context="making file")
Contains all classes and functions of the TagInfo library.