![]() |
Limo
A simple mod manager
|
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< ChangelogEntry > | changes_ |
Contains all changes made in this version. | |
Contains all changes made in a single version of Limo.
VersionChangelog::VersionChangelog | ( | const Json::Value & | json | ) |
Deserializes the changelog for a version from the given JSON object.
json | JSON object containing the changelog. |
const std::vector< ChangelogEntry > & VersionChangelog::getChanges | ( | ) | const |
Getter for the changes made in this version.
std::time_t VersionChangelog::getDate | ( | ) | const |
Getter for the publishing date of the version.
std::string VersionChangelog::getTitle | ( | ) | const |
Getter for the version title.
std::string VersionChangelog::getVersion | ( | ) | const |
Getter for the version string.
bool VersionChangelog::operator< | ( | const VersionChangelog & | other | ) | const |
Compares publishing time of this with other.
other | Changelog to compare to. |
std::string VersionChangelog::versionAndDateString | ( | ) | const |
Constructs a string from the version and the date timestamp.