This repository has been archived on 2021-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
modetw/include/installationmanager.hpp

29 lines
607 B
C++

#ifndef INSTALLATIONMANAGER_HPP
#define INSTALLATIONMANAGER_HPP
#include <string>
#include <vector>
#include "rapidjson/document.h"
class InstallationManager
{
public:
InstallationManager(const std::string&, const std::string&);
void execute();
private:
std::string _hd, _mod, _modname, _ver;
int _campaigns, _turns;
std::vector<bool> _packs;
rapidjson::Document _cfg;
void _print_title(const std::string&);
void _print_selection(const int);
void _grab_json(const std::string&, rapidjson::Document&);
void _version_query();
void _campaign_query();
void _pack_query();
};
#endif