29 lines
607 B
C++
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
|