-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfilesCommands.hpp
More file actions
31 lines (25 loc) · 907 Bytes
/
Copy pathProfilesCommands.hpp
File metadata and controls
31 lines (25 loc) · 907 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
28
29
30
31
#ifndef RUNCPP2_DATA_PROFILES_COMMANDS_HPP
#define RUNCPP2_DATA_PROFILES_COMMANDS_HPP
#include "runcpp2/Data/ParseCommon.hpp"
#include "runcpp2/YamlLib.hpp"
#include <string>
#include <unordered_map>
#include <vector>
namespace runcpp2
{
namespace Data
{
class ProfilesCommands
{
public:
//TODO: Allow specifying command can fail
std::unordered_map<ProfileName, std::vector<std::string>> CommandSteps;
bool ParseYAML_Node(YAML::ConstNodePtr node);
bool ParseYAML_NodeWithProfile(YAML::ConstNodePtr node, ProfileName profile);
bool IsYAML_NodeParsableAsDefault(YAML::ConstNodePtr node) const;
std::string ToString(std::string indentation) const;
bool Equals(const ProfilesCommands& other) const;
};
}
}
#endif