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

Stores information about a mod as well as the group and deployers it belongs to. More...

#include <modinfo.h>

Collaboration diagram for ModInfo:

Public Member Functions

 ModInfo (int id, const std::string &name, const std::string &version, const std::time_t &install_time, const std::filesystem::path &local_source, const std::string &remote_source, const std::time_t &remote_update_time, unsigned long size, const std::time_t &suppress_time, const std::vector< std::string > &deployer_names, const std::vector< int > &deployer_ids, const std::vector< bool > &statuses, int group, bool is_active_member, const std::vector< std::string > &man_tags, const std::vector< std::string > &au_tags)
 Constructor. Simply initializes members.
 

Public Attributes

Mod mod
 Contains information about the mod itself.
 
std::vector< std::string > deployers
 Names of all deployers the mod belongs to.
 
std::vector< int > deployer_ids
 Ids of all deployers the mod belongs to.
 
std::vector< bool > deployer_statuses
 The mods activation status for every deployer it belongs to.
 
int group = -1
 Group this mod belongs to. If == -1: Mod belongs to no group.
 
bool is_active_group_member = false
 If true: Mod is the active member of its group.
 
std::vector< std::string > manual_tags
 Contains the names of all manual tags added to this mod.
 
std::vector< std::string > auto_tags
 Contains the names of all auto tags added to this mod.
 

Detailed Description

Stores information about a mod as well as the group and deployers it belongs to.

Constructor & Destructor Documentation

◆ ModInfo()

ModInfo::ModInfo ( int id,
const std::string & name,
const std::string & version,
const std::time_t & install_time,
const std::filesystem::path & local_source,
const std::string & remote_source,
const std::time_t & remote_update_time,
unsigned long size,
const std::time_t & suppress_time,
const std::vector< std::string > & deployer_names,
const std::vector< int > & deployer_ids,
const std::vector< bool > & statuses,
int group,
bool is_active_member,
const std::vector< std::string > & man_tags,
const std::vector< std::string > & au_tags )
inline

Constructor. Simply initializes members.

Parameters
idThe mod's id.
nameThe mod's name.
versionThe mod's version.
install_timeTimestamp indicating when the mod was installed.
local_sourceSource archive for the mod.
remote_sourceURL from where the mod was downloaded.
remote_update_timeTimestamp for when the mod was updated at the remote source.
sizeTotal size of the installed mod on disk.
suppress_timeTimestamp for when the user requested to suppress current update notifications.
deployer_namesNames of all deployers the mod belongs to.
deployer_idsIds of all deployers the mod belongs to.
statusesThe mods activation status for every deployer it belongs to.
groupGroup this mod belongs to. If == -1: Mod belongs to no group.
is_active_memberIf true: Mod is the active member of it's group.
man_tagsThe names of all manual tags for this mod.

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