-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigParsing.hpp
More file actions
27 lines (20 loc) · 812 Bytes
/
Copy pathConfigParsing.hpp
File metadata and controls
27 lines (20 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef RUNCPP2_CONFIG_PARSING_HPP
#define RUNCPP2_CONFIG_PARSING_HPP
#include "runcpp2/Data/Profile.hpp"
#include "runcpp2/Data/ScriptInfo.hpp"
#include "ghc/filesystem.hpp"
#include <string>
#include <vector>
namespace runcpp2
{
std::string GetConfigFilePath();
bool WriteDefaultConfigs( const ghc::filesystem::path& userConfigPath,
const bool writeUserConfig,
const bool writeDefaultConfigs);
bool ReadUserConfig(std::vector<Data::Profile>& outProfiles,
std::string& outPreferredProfile,
const std::string& customConfigPath = "");
bool ParseScriptInfo( const std::string& scriptInfo,
Data::ScriptInfo& outScriptInfo);
}
#endif