Reformat config.hpp with clang-format.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c0ac446be1
commit
739f5d4b3b
|
@ -29,11 +29,11 @@
|
||||||
namespace mastorss
|
namespace mastorss
|
||||||
{
|
{
|
||||||
namespace fs = boost::filesystem;
|
namespace fs = boost::filesystem;
|
||||||
using std::uint32_t;
|
|
||||||
using std::list;
|
using std::list;
|
||||||
|
using std::pair;
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::string_view;
|
using std::string_view;
|
||||||
using std::pair;
|
using std::uint32_t;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief The configuration for a profile as data structure.
|
* @brief The configuration for a profile as data structure.
|
||||||
|
@ -56,8 +56,7 @@ struct ProfileData
|
||||||
bool titles_only{false};
|
bool titles_only{false};
|
||||||
list<pair<string, string>> replacements;
|
list<pair<string, string>> replacements;
|
||||||
|
|
||||||
friend std::ostream &operator <<(std::ostream &out,
|
friend std::ostream &operator<<(std::ostream &out, const ProfileData &data);
|
||||||
const ProfileData &data);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -74,17 +73,14 @@ public:
|
||||||
ProfileData profiledata;
|
ProfileData profiledata;
|
||||||
|
|
||||||
void write();
|
void write();
|
||||||
[[nodiscard]]
|
[[nodiscard]] fs::path get_config_dir() const;
|
||||||
fs::path get_config_dir() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Json::Value _json;
|
Json::Value _json;
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]] fs::path get_filename() const;
|
||||||
fs::path get_filename() const;
|
|
||||||
void generate();
|
void generate();
|
||||||
[[nodiscard]]
|
[[nodiscard]] string get_access_token(const string &instance) const;
|
||||||
string get_access_token(const string &instance) const;
|
|
||||||
void parse();
|
void parse();
|
||||||
list<string> jsonarray_to_stringlist(const Json::Value &jsonarray) const;
|
list<string> jsonarray_to_stringlist(const Json::Value &jsonarray) const;
|
||||||
Json::Value stringlist_to_jsonarray(const list<string> &stringlist) const;
|
Json::Value stringlist_to_jsonarray(const list<string> &stringlist) const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user