Limo
A simple mod manager
Loading...
Searching...
No Matches
VersionChangelog Class Reference

Contains all changes made in a single version of Limo. More...

#include <versionchangelog.h>

Public Member Functions

 VersionChangelog ()=default
 Default constructor.
 
 VersionChangelog (const Json::Value &json)
 Deserializes the changelog for a version from the given JSON object.
 
std::string getVersion () const
 Getter for the version string.
 
std::time_t getDate () const
 Getter for the publishing date of the version.
 
std::string getTitle () const
 Getter for the version title.
 
const std::vector< ChangelogEntry > & getChanges () const
 Getter for the changes made in this version.
 
std::string versionAndDateString () const
 Constructs a string from the version and the date timestamp.
 
bool operator< (const VersionChangelog &other) const
 Compares publishing time of this with other.
 

Private Attributes

std::string version_
 Version number of this changelog.
 
std::time_t date_
 Publishing date for this version.
 
std::string title_
 Title for this version.
 
std::vector< ChangelogEntrychanges_
 Contains all changes made in this version.
 

Detailed Description

Contains all changes made in a single version of Limo.

Constructor & Destructor Documentation

◆ VersionChangelog()

VersionChangelog::VersionChangelog ( const Json::Value & json)

Deserializes the changelog for a version from the given JSON object.

Parameters
jsonJSON object containing the changelog.

Member Function Documentation

◆ getChanges()

const std::vector< ChangelogEntry > & VersionChangelog::getChanges ( ) const

Getter for the changes made in this version.

Returns
The changes.

◆ getDate()

std::time_t VersionChangelog::getDate ( ) const

Getter for the publishing date of the version.

Returns
The date.

◆ getTitle()

std::string VersionChangelog::getTitle ( ) const

Getter for the version title.

Returns
The title.

◆ getVersion()

std::string VersionChangelog::getVersion ( ) const

Getter for the version string.

Returns
The version string.

◆ operator<()

bool VersionChangelog::operator< ( const VersionChangelog & other) const

Compares publishing time of this with other.

Parameters
otherChangelog to compare to.
Returns
True if date of this is earlier than date of other.

◆ versionAndDateString()

std::string VersionChangelog::versionAndDateString ( ) const

Constructs a string from the version and the date timestamp.

Returns
The string.

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