-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencySource.hpp
More file actions
31 lines (26 loc) · 833 Bytes
/
Copy pathDependencySource.hpp
File metadata and controls
31 lines (26 loc) · 833 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_DEPENDENCY_SOURCE_HPP
#define RUNCPP2_DATA_DEPENDENCY_SOURCE_HPP
#include "runcpp2/Data/GitSource.hpp"
#include "runcpp2/Data/LocalSource.hpp"
#include "runcpp2/YamlLib.hpp"
#include "ghc/filesystem.hpp"
#include "mpark/variant.hpp"
#include <memory>
#include <vector>
namespace runcpp2
{
namespace Data
{
class DependencySource
{
public:
mpark::variant<GitSource, LocalSource> Source;
ghc::filesystem::path ImportPath;
std::vector<std::shared_ptr<DependencySource>> ImportedSources;
bool ParseYAML_Node(YAML::ConstNodePtr node);
std::string ToString(std::string indentation) const;
bool Equals(const DependencySource& other) const;
};
}
}
#endif