-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfile.hpp
More file actions
42 lines (34 loc) · 1.23 KB
/
Copy pathProfile.hpp
File metadata and controls
42 lines (34 loc) · 1.23 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
#ifndef RUNCPP2_DATA_PROFILE_HPP
#define RUNCPP2_DATA_PROFILE_HPP
#include "runcpp2/Data/ParseCommon.hpp"
#include "runcpp2/Data/FilesTypesInfo.hpp"
#include "runcpp2/Data/StageInfo.hpp"
#include "runcpp2/YamlLib.hpp"
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
namespace runcpp2
{
namespace Data
{
class Profile
{
public:
std::string Name;
std::unordered_set<std::string> NameAliases;
std::unordered_set<std::string> FileExtensions;
std::unordered_set<std::string> Languages;
std::unordered_map<PlatformName, std::vector<std::string>> Setup;
std::unordered_map<PlatformName, std::vector<std::string>> Cleanup;
FilesTypesInfo FilesTypes;
StageInfo Compiler;
StageInfo Linker;
void GetNames(std::vector<std::string>& outNames) const;
bool ParseYAML_Node(YAML::ConstNodePtr profileNode);
std::string ToString(std::string indentation) const;
bool Equals(const Profile& other) const;
};
}
}
#endif