-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruncpp2.hpp
More file actions
62 lines (51 loc) · 2.61 KB
/
Copy pathruncpp2.hpp
File metadata and controls
62 lines (51 loc) · 2.61 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef RUNCPP2_RUNCPP2_HPP
#define RUNCPP2_RUNCPP2_HPP
#include "runcpp2/Data/CmdOptions.hpp"
#include "runcpp2/Data/Profile.hpp"
#include "runcpp2/Data/ScriptInfo.hpp"
#include "runcpp2/Data/PipelineResult.hpp"
#include <string>
#include <vector>
namespace runcpp2
{
struct OptionInfo
{
CmdOptions Option;
bool ValueExists;
std::string Value;
inline OptionInfo( CmdOptions option,
bool valueExists = false,
const std::string& value = "") : Option(option),
ValueExists(valueExists),
Value(value)
{}
};
void GetDefaultScriptInfo(std::string& scriptInfo);
void SetLogLevel(const std::string& logLevel);
//NOTE: This should be run after running StartPipeline first
PipelineResult
CheckSourcesNeedUpdate( const std::string& scriptPath,
const std::vector<Data::Profile>& profiles,
const std::string& configPreferredProfile,
const Data::ScriptInfo& scriptInfo,
const std::unordered_map< CmdOptions,
std::string>& currentOptions,
const ghc::filesystem::file_time_type& prevFinalSourceWriteTime,
const ghc::filesystem::file_time_type& prevFinalIncludeWriteTime,
bool& outNeedsUpdate);
PipelineResult StartPipeline( const std::string& scriptPath,
const std::vector<Data::Profile>& profiles,
const std::string& configPreferredProfile,
const std::unordered_map< CmdOptions,
std::string>& currentOptions,
const std::vector<std::string>& runArgs,
const Data::ScriptInfo* lastScriptInfo,
const std::string& buildOutputDir,
Data::ScriptInfo& outScriptInfo,
ghc::filesystem::file_time_type& outFinalSourceWriteTime,
ghc::filesystem::file_time_type& outFinalIncludeWriteTime,
int& returnStatus);
std::string PipelineResultToString(PipelineResult result);
bool DownloadTutorial(char* runcppPath);
}
#endif