Limo
A simple mod manager
Loading...
Searching...
No Matches
BackupTarget Struct Reference

Stores information about a backup target. More...

#include <backuptarget.h>

Public Member Functions

 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.
 
bool operator== (const BackupTarget &other) const
 Tests every member of this and other for equality.
 

Public Attributes

std::filesystem::path path
 Path to the target file or directory.
 
std::string target_name
 Display name for this backup target.
 
std::vector< std::string > backup_names
 Contains display names for all backups for this target.
 
std::vector< int > active_members
 Contains the currently active backup for every profile.
 
int cur_active_member = 0
 Active member for current profile.
 

Detailed Description

Stores information about a backup target.

Constructor & Destructor Documentation

◆ BackupTarget()

BackupTarget::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.

Parameters
pathPath to the target file or directory.
target_nameDisplay name for this backup target.
backup_namesContains display names for all backups for this target.
active_membersContains the currently active backup for every profile.

Member Function Documentation

◆ operator==()

bool BackupTarget::operator== ( const BackupTarget & other) const

Tests every member of this and other for equality.

Parameters
otherBackupTarget to compare this to.
Returns
True only if every member of this is equal to the respective member in other.

The documentation for this struct was generated from the following files: