Limo
A simple mod manager
Loading...
Searching...
No Matches
backuptarget.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <filesystem>
9#include <vector>
10
11
16{
18 std::filesystem::path path;
20 std::string target_name;
22 std::vector<std::string> backup_names;
24 std::vector<int> active_members;
27
35 BackupTarget(const std::filesystem::path& path,
36 const std::string& target_name,
37 const std::vector<std::string>& backup_names,
38 const std::vector<int>& active_members);
39
45 bool operator==(const BackupTarget& other) const;
46};
int cur_active_member
Active member for current profile.
Definition backuptarget.h:26
bool operator==(const BackupTarget &other) const
Tests every member of this and other for equality.
Definition backuptarget.cpp:10
std::vector< int > active_members
Contains the currently active backup for every profile.
Definition backuptarget.h:24
std::vector< std::string > backup_names
Contains display names for all backups for this target.
Definition backuptarget.h:22
std::filesystem::path path
Path to the target file or directory.
Definition backuptarget.h:18
std::string target_name
Display name for this backup target.
Definition backuptarget.h:20
BackupTarget(const std::filesystem::path &path, const std::string &target_name, const std::vector< std::string > &backup_names, const std::vector< int > &active_members)
Constructor.
Definition backuptarget.cpp:3